-
Notifications
You must be signed in to change notification settings - Fork 2k
/
.eslintrc.js
executable file
路22 lines (22 loc) 路 798 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: {
'@typescript-eslint/prefer-interface': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'no-return-assign': 0,
semi: ['error', 'always'],
'no-confusing-arrow': 0,
'no-console': 0,
'max-len': ['error', { code: 120, ignoreComments: true, ignoreStrings: true }],
// see https://github.com/prettier/prettier/issues/3847
'space-before-function-paren': ['error', { anonymous: 'never', named: 'never', asyncArrow: 'always' }],
'no-underscore-dangle': 0,
'no-plusplus': 0,
},
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
createDefaultProgram: true,
},
};