-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
50 lines (50 loc) · 1.47 KB
/
.eslintrc.cjs
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react/react-in-jsx-scope': 'off',
'react/self-closing-comp': ['error', {
'component': true,
'html': false
}],
'react/no-unescaped-entities': 'off',
'indent': ['error', 2],
'semi': ["error", "always"],
'comma-dangle': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'import/no-relative-packages': 'off',
'arrow-body-style': ['error', 'as-needed'],
'object-curly-newline': 'off',
'no-unused-expressions': 'off',
'array-callback-return': 'off',
'no-param-reassign': 'off',
'no-shadow': 'off',
'no-unused-vars': ['error', { 'vars': 'all', 'args': 'none' }],
'import/extensions': 'off',
'import/prefer-default-export': ['off', { 'target': 'any' }],
'implicit-arrow-linebreak': 'off',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'prefer-const': [
'warn',
{
'destructuring': 'all'
}
],
'no-underscore-dangle': 'off',
'no-trailing-spaces': 'error',
'@typescript-eslint/ban-ts-comment': [{
'ts-expect-error': 'allow-with-description',
'ts-ignore': true
}]
},
}