Commit 5c981db8 by liguokang

feat: 🎨

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