-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
108 lines (108 loc) · 2.48 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
101
102
103
104
105
106
107
108
{
"env": {
"browser": true,
"es6": true,
"webextensions": true,
"amd": true,
"node": true,
"jest": true
},
"extends": [
"plugin:react/recommended",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:jest/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"chrome": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"@typescript-eslint",
"prettier",
"jest",
"react-hooks",
"import"
],
"ignorePatterns": [
"webpack.config.js"
],
"rules": {
"prettier/prettier": [
"error",
{
"bracket-same-line": true,
"printWidth": 120,
"endOfLine": "auto"
}
],
"ban-ts-comment": 0,
"quotes": 0,
"require-jsdoc": 0,
"camelcase": 0,
"object-curly-spacing": 0,
"comma-dangle": 0,
"react/prop-types": [
0
],
"space-before-function-paren": "off",
"endOfLine": "off",
"max-len": [
"error",
{
"code": 120,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-unused-vars": [
"error",
{
"args": "after-used",
"argsIgnorePattern": "_",
"varsIgnorePattern": "_"
}
],
"@typescript-eslint/ban-ts-comment": "warn",
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "variable",
"format": ["camelCase", "PascalCase", "UPPER_CASE"]
}
]
},
"settings": {
"react": {
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
}
}
}