-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
executable file
·100 lines (100 loc) · 2.29 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module.exports = {
env: {
browser: true,
es2020: true,
node: true,
jest: true,
},
extends: [
"standard",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier/standard",
"prettier/react",
"plugin:css/all",
],
globals: {
Atomics: "readonly",
SharedArrayBuffer: "readonly",
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: [
"@typescript-eslint",
"prettier",
"import-helpers",
"react",
"react-hooks",
"css",
],
rules: {
"react/display-name": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-explicit-any": "off",
"prettier/prettier": "error",
"space-before-function-paren": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"no-new": "off",
"import/no-unresolved": "off",
"no-underscore-dangle": "off",
"class-methods-use-this": "off",
"no-await-in-loop": "off",
"no-console": "off",
camelcase: "off",
"@typescript-eslint/ban-types": "off",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
ts: "never",
tsx: "never",
},
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/camelcase": "off",
"import-helpers/order-imports": [
"warn",
{
newlinesBetween: "always",
groups: ["module", ["parent", "sibling", "index"]],
alphabetize: { order: "asc", ignoreCase: true },
},
],
},
overrides: [
{
files: ["*.js"],
rules: {
"@typescript-eslint/no-var-requires": "off",
},
},
],
settings: {
"import/extensions": [".ts", ".js"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".js"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true,
},
},
react: {
version: "detect",
},
},
};