-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.eslintrc.cjs
74 lines (74 loc) · 1.91 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
requireConfigFile: false,
babelOptions: {
babelrc: false,
configFile: false,
cwd: __dirname,
},
},
ignorePatterns: [
'**/*.d.ts',
'**/__mocks__',
'**/node_modules',
'**/build',
'**/dist',
'**/es',
'**/lib',
'**/.codebase',
'**/.changeset',
'**/config',
'**/common/scripts',
'**/output',
'error-log-str.js',
'*.bundle.js',
'*.min.js',
'*.js.map',
'**/output',
'**/*.log',
'**/tsconfig.tsbuildinfo',
'**/vitest.config.ts',
'package.json',
'*.json',
],
rules: {
'no-console': 'off',
'react/no-deprecated': 'off',
'import/prefer-default-export': 'off',
'lines-between-class-members': 'warn',
'react/jsx-no-useless-fragment': 'off',
'no-unused-vars': 'off',
'no-redeclare': 'off',
'no-empty-fuNction': 'off',
'prefer-destructurin': 'off',
'no-underscore-dangle': 'off',
'no-empty-function': 'off',
'no-multi-assign': 'off',
'arrow-body-style': 'warn',
'no-useless-constructor': 'off',
'no-param-reassign': 'off',
'max-classes-per-file': 'off',
'grouped-accessor-pairs': 'off',
'no-plusplus': 'off',
'no-restricted-syntax': 'off',
'react/destructuring-assignment': 'off',
'import/extensions': 'off',
'consistent-return': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'no-use-before-define': 'off',
'no-bitwise': 'off',
'no-case-declarations': 'off',
'react/no-array-index-key': 'off',
'react/require-default-props': 'off',
'no-dupe-class-members': 'off',
'react/jsx-props-no-spreading': 'off',
'no-console': 'off',
'no-shadow': 'off',
'class-methods-use-this': 'off',
'default-param-last': 'off',
'no-unused-vars': 'off',
'import/prefer-default-export': 'off',
'import/extensions': 'off',
},
}