-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
22 lines (22 loc) · 805 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
rules: {
'import/no-extraneous-dependencies': 0,
'import/no-unresolved': 0,
'prefer-object-spread': 0,
'import/order': 2,
'no-param-reassign': 0,
'@typescript-eslint/no-unused-expressions': 0,
'no-underscore-dangle': 0,
'@typescript-eslint/no-this-alias': 0,
'@typescript-eslint/no-shadow': 0,
'prefer-const': [0, { destructuring: 'all' }],
'no-restricted-syntax': 0,
'consistent-return': [0, { treatUndefinedAsUnspecified: true }],
'@typescript-eslint/no-use-before-define': [0, { functions: true }],
'global-require': 0,
'import/no-dynamic-require': 0,
'no-eval': 0,
},
ignorePatterns: ['src/__tests__/**', 'rollup.config.js', 'commitlint.config.js'],
};