forked from geyserfund/geyser-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
63 lines (63 loc) · 1.66 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
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: ['plugin:react/recommended', 'plugin:@typescript-eslint/recommended', 'xo', 'plugin:jest-dom/recommended', 'plugin:react-hooks/recommended', 'plugin:testing-library/react', 'plugin:prettier/recommended', 'plugin:storybook/recommended'],
plugins: [
'react',
'simple-import-sort',
'@typescript-eslint',
'react-hooks',
'jest-dom',
'testing-library',
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off',
semi: 'off',
},
},
],
rules: {
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'prettier/prettier': ['error'],
'react/react-in-jsx-scope': 0,
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-unused-vars': 0,
'react-hooks/exhaustive-deps': 1,
'@typescript-eslint/ban-types': 0,
'object-curly-spacing': 0,
'no-negated-condition': 0,
'array-callback-return': 0,
'capitalized-comments:': 0,
'no-unused-vars': 0,
'capitalized-comments': 0,
camelcase: 'warn',
'react/prop-types': 0,
'react/display-name': 0,
'no-undef': 0,
'new-cap': 0,
'no-alert': 0,
'testing-library/render-result-naming-convention': 0,
'no-restricted-syntax': [
'off',
{
selector: 'TSEnumDeclaration',
message: "Don't declare enums",
},
],
},
root: true,
}