-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
100 lines (100 loc) · 2.47 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
95
96
97
98
99
100
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"extends": [
"airbnb",
"prettier",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": ["prettier", "react", "react-hooks", "import", "@typescript-eslint", "jsx-a11y"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"no-unused-vars": "warn",
"no-console": "warn",
"func-names": "off",
"no-process-exit": "off",
"object-shorthand": "warn",
"class-methods-use-this": "off",
"no-restricted-syntax": "off",
"react/display-name": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".ts", ".tsx"]
}
],
"react/prop-types": "off",
"react/no-this-in-sfc": 0,
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
],
"react/destructuring-assignment": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": "off",
"no-underscore-dangle": 0,
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"global-require": "off",
"no-use-before-define": "off",
"no-param-reassign": "off",
"no-unused-expressions": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "warn",
"@typescript-eslint/explicit-function-return-type": "warn",
"@typescript-eslint/no-non-null-assertion": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off"
},
"parserOptions": {
"ecmaFeatures": {
"tsx": true,
"modules": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"settings": {
"react": {
"version": "detect"
}
},
"overrides": [
{
"files": ["server/src/*.ts", "server/src/**/*.ts", "server/src/**/**/*.ts"],
"rules": {
"no-console": "off"
}
}
]
}