Commit 5c981db8 by liguokang

feat: 🎨

parent ff7d39e4
......@@ -2,7 +2,7 @@
* @Author: liguokang
* @Date: 2021-07-14 20:38:28
* @LastEditors: liguokang
* @LastEditTime: 2021-07-29 17:56:46
* @LastEditTime: 2021-07-29 17:58:58
* @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/
......@@ -33,48 +33,85 @@ module.exports = {
allowTemplateLiterals: true,
},
],
'import/extensions': [
'arrow-parens': 0,
'global-require': 0,
'max-nested-callbacks': [0, 3],
'max-depth': [2, 5],
'max-len': [2, 160],
'react/react-in-jsx-scope': 0,
'class-methods-use-this': 0,
'object-shorthand': 0,
'func-names': 0,
'spaced-comment': 0,
'prefer-template': 0,
'prefer-arrow-callback': 0,
'arrow-body-style': 0,
'guard-for-in': 0,
'space-before-function-paren': 0,
'linebreak-style': [0, 2, 'windows'],
'comma-dangle': [
1,
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
},
],
'prefer-destructuring': [
0,
{
array: true,
object: true,
},
],
'prefer-const': 1,
'dot-notation': 0,
'prefer-const': 0,
'object-curly-newline': 0,
camelcase: 0,
'@typescript-eslint/prefer-interface': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/indent': [0, 2],
'operator-linebreak': 0,
'import/prefer-default-export': 0,
'import/no-named-as-default-member': 0,
'import/no-named-as-default': 0,
'import/first': 0,
'import/extensions': [
2,
'always',
{
js: 'never',
ts: 'never',
tsx: 'never',
jsx: 'never',
vue: 'never',
},
],
'import/no-extraneous-dependencies': [
0,
2,
{
optionalDependencies: ['test/unit/index.js'],
},
],
'arrow-parens': 0,
'global-require': 0,
'no-param-reassign': 0,
'no-plusplus': 0,
'max-nested-callbacks': [0, 3],
'max-depth': [0, 5],
'max-len': [0, 160],
'no-nested-ternary': 2,
'no-alert': process.env.NODE_ENV === 'prod' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'prod' ? 2 : 0,
'no-debugger': process.env.NODE_ENV === 'prod' ? 2 : 0,
'default-case': 2,
'no-shadow': 2,
'no-nested-ternary': 1,
'no-alert': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-shadow': 0,
'no-underscore-dangle': 0,
'react/react-in-jsx-scope': 0,
'class-methods-use-this': 0,
'no-restricted-syntax': [0, 'LabeledStatement', 'WithStatement'],
'object-shorthand': 0,
'func-names': 0,
'no-restricted-syntax': [2, 'LabeledStatement', 'WithStatement'],
'no-unused-vars': 0,
'spaced-comment': 0,
'prefer-template': 0,
'prefer-arrow-callback': 0,
'no-use-before-define': 0,
'arrow-body-style': 0,
'no-lonely-if': 0,
'no-unused-expressions': 0,
'guard-for-in': 0,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-dupe-args': 2,
......@@ -82,20 +119,13 @@ module.exports = {
'no-unused-vars': 0,
'no-var': 2,
'no-empty': 0,
'space-before-function-paren': 0,
'no-else-return': 0,
'no-new': 0,
'linebreak-style': [0, 0, 'windows'],
'comma-dangle': [
1,
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'always-multiline',
},
],
'no-continue': 0,
'no-void': 0,
'no-nested-ternary': 0,
'no-mixed-operators': 0,
'no-unneeded-ternary': 0,
'no-restricted-globals': [
0,
{
......@@ -103,16 +133,10 @@ module.exports = {
message: 'Use local parameter instead.',
},
],
'prefer-destructuring': [
0,
{
array: true,
object: true,
},
],
'prefer-const': 1,
'dot-notation': 0,
'object-curly-newline': 0,
'import/prefer-default-export': 0,
'default-case': 0,
'consistent-return': 0,
'operator-assignment': 0,
'function-paren-newline': 0,
'array-callback-return': 0,
},
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment