-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
25 lines (25 loc) · 829 Bytes
/
.eslintrc.js
File metadata and controls
25 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module.exports = {
extends: [require.resolve('umi/eslint')],
parser: require.resolve('@typescript-eslint/parser'),
plugins: ['@typescript-eslint', 'import', 'react'],
rules: {
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'no-console': ['warn', { allow: ['warn', 'error'] }],
'no-debugger': 'warn',
'no-duplicate-imports': 'error',
'no-unused-expressions': 'error',
'prefer-const': 'warn',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
'newlines-between': 'always',
alphabetize: { order: 'asc' },
},
],
'react/jsx-key': 'off',
},
};