forked from jellyfin/jellyfin-expo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
71 lines (70 loc) · 1.86 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
{
"env": {
"es2020": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:promise/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:eslint-comments/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"react",
"promise",
"import",
"eslint-comments"
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": ["error"],
"block-spacing": ["error"],
"brace-style": ["error"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error"],
"eol-last": ["error"],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"keyword-spacing": ["error"],
"max-statements-per-line": ["error"],
"no-floating-decimal": ["error"],
"no-multi-spaces": ["error"],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"no-trailing-spaces": ["error"],
"one-var": ["error", "never"],
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
"semi": ["error"],
"space-before-blocks": ["error"],
"space-infix-ops": ["error"]
},
"overrides": [
{
"files": [ "./**/*.js" ],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
}
},
{
"files": [ "./assets/**/*.staticjs" ],
"env": {
"node": false,
"browser": true
}
}
]
}