-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.json
102 lines (102 loc) · 2.13 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
"jest": true
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".ts", ".jsx", ".tsx"]
}
},
"react": {
"version": "detect"
}
},
"extends": [
"airbnb-typescript",
"plugin:prettier/recommended",
"plugin:react-hooks/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [
"react",
"prettier",
"@typescript-eslint"
],
"rules": {
"indent": [
"error",
2
],
"prettier/prettier": [2, {
"printWidth": 120
}],
"semi": [2, "never"],
"curly": [2, "all"],
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"max-len": [2, {
"code": 120,
"ignoreComments": true,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
}],
"object-curly-newline": ["error", {
"ObjectExpression": {
"consistent": true
},
"ObjectPattern": {
"consistent": true
},
"ImportDeclaration": {
"consistent": true,
},
"ExportDeclaration": {
"multiline": true,
"minProperties": 3
}
}],
"no-console": [2, {
"allow": ["info", "warn", "error", "group", "groupEnd"]
}],
"no-alert": [0],
"no-bitwise": [0],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".ts",
".tsx"
]
}
],
"react/jsx-wrap-multilines": "off",
"no-unused-vars": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"prefer-object-spread": "off"
}
}