forked from artalar/reatom
/
.eslintrc
100 lines (93 loc) · 2.11 KB
/
.eslintrc
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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["jest", "prettier", "@typescript-eslint", "react"],
"extends": [
"airbnb-base",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
],
"rules": {
"@typescript-eslint/camelcase": [
"warn",
{
"allow": ["^UNSAFE_", "^_"]
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-function": [
"error",
{
"allow": ["functions", "arrowFunctions"]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"class-methods-use-this": "off",
"consistent-return": "off",
"import/no-cycle": "warn",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.{js,jsx,ts,tsx}",
"**/*.spec.{js,jsx,ts,tsx}",
"**/benchmark/**/*.{js,jsx,ts,tsx}"
]
}
],
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"max-classes-per-file": "warn",
"no-continue": "off",
"no-nested-ternary": "warn",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-prototype-builtins": "off",
"no-return-assign": "off",
"no-sequences": "off",
"no-underscore-dangle": "off",
"no-void": "off",
"prettier/prettier": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"env": {
"jest/globals": true
},
"settings": {
"react": {
"pragma": "React"
}
}
}