-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.json
94 lines (94 loc) · 2.62 KB
/
.eslintrc.json
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:node/recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:react-hooks/recommended",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"rules": {
"react/prop-types": 0,
"react/react-in-jsx-scope": 0,
"import/no-unresolved": 0,
"no-unused-vars": 0,
"max-len": ["warn", {"code": 150}],
"no-console": ["error", { "allow": ["debug", "warn", "error", "assert"] }],
"no-extend-native": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/label-has-associated-control": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"max-classes-per-file": "off",
"import/extensions": ["error", "ignorePackages", {
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}],
"node/no-missing-import": "off",
"node/no-unpublished-import": "off",
"node/no-unsupported-features/es-syntax": ["error", {
"ignores": ["modules"]
}],
"no-tabs": ["error", {"allowIndentationTabs": true}],
"@typescript-eslint/no-require-imports": "warn",
"@typescript-eslint/no-floating-promises": "off",
"import/prefer-default-export": "off"
},
"plugins": [
"react",
"@typescript-eslint",
"import",
"jsx-a11y",
"node"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"project": "./tsconfig.json",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"webextensions": true,
"node": true
},
"globals": {
"JSX": "readonly"
},
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".ts",
".tsx",
".json"
]
}
},
"import/ignore": ["node_modules"],
"import/extensions": [".js", ".mjs", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
}
},
"ignorePatterns": ["extension/**"]
}