2020-01-02 21:04:40 +08:00
|
|
|
module.exports = {
|
2020-02-14 10:10:54 +08:00
|
|
|
extends: [require.resolve('@umijs/fabric/dist/eslint')],
|
|
|
|
globals: {
|
|
|
|
$: true,
|
|
|
|
_: true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'no-bitwise': 0,
|
|
|
|
'import/order': 0,
|
|
|
|
'no-plusplus': 0,
|
2020-08-17 14:51:02 +08:00
|
|
|
'no-console': ['error', { allow: ['warn', 'error'] }],
|
2020-02-14 10:10:54 +08:00
|
|
|
'operator-assignment': 0,
|
|
|
|
'consistent-return': 0,
|
|
|
|
'lines-between-class-members': 0,
|
|
|
|
'class-methods-use-this': 0,
|
|
|
|
'lines-between-class-members': 0,
|
|
|
|
'no-multi-assign': 0,
|
|
|
|
'no-continue': 0,
|
|
|
|
'no-underscore-dangle': 0,
|
|
|
|
'no-useless-constructor': 0,
|
|
|
|
'prefer-destructuring': 0,
|
|
|
|
'guard-for-in': 0,
|
|
|
|
'no-restricted-globals': 0,
|
2020-08-17 14:51:02 +08:00
|
|
|
'max-classes-per-file': 0,
|
2020-02-14 10:10:54 +08:00
|
|
|
// 后面需要去掉
|
|
|
|
'no-restricted-syntax': 0,
|
|
|
|
'prefer-spread': 0,
|
|
|
|
'@typescript-eslint/camelcase': 0,
|
|
|
|
'no-loop-func': 0,
|
2020-10-28 13:35:28 +08:00
|
|
|
'@typescript-eslint/no-loop-func': 0,
|
|
|
|
'@typescript-eslint/no-redeclare': 0,
|
|
|
|
'@typescript-eslint/no-shadow': 0,
|
2020-11-11 17:41:19 +08:00
|
|
|
'@typescript-eslint/no-unused-vars': 0,
|
2020-06-10 18:16:45 +08:00
|
|
|
'no-param-reassign': 0,
|
|
|
|
'import/no-extraneous-dependencies': 0,
|
|
|
|
'no-unused-expressions': 0,
|
|
|
|
'dot-notation': 0,
|
|
|
|
'array-callback-return': 0,
|
|
|
|
'one-var': 0,
|
2020-12-24 11:05:37 +08:00
|
|
|
'no-lonely-if': 0,
|
2020-02-14 10:10:54 +08:00
|
|
|
},
|
|
|
|
};
|