-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
121 lines (121 loc) · 2.53 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
"root": true,
"env": {
"es6": true,
"node": true,
"shared-node-browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module"
},
"extends": [
"plugin:prettier/recommended",
"prettier"
],
"plugins": [
"@typescript-eslint/eslint-plugin",
"import",
"jest"
],
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"rules": {
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"destructuredArrayIgnorePattern": "^_"
}
],
"no-unused-vars": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": 1,
"no-undef": "off",
"func-call-spacing": "off",
"@typescript-eslint/func-call-spacing": 1
}
},
{
"files": [
"*.{spec,test}.{js,ts,tsx}",
"**/__{mocks,tests}__/**/*.{js,ts,tsx}"
],
"env": {
"jest": true,
"jest/globals": true
},
"rules": {
"react-native/no-inline-styles": 0,
"quotes": [
1,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
]
}
}
],
"globals": {
"define": false,
"obj_attrib": false,
"info": false,
"NodeJS": false,
"window": false,
"alert": false,
"document": false,
"HTMLElement": false,
"HTMLDivElement": false,
"WebGL2RenderingContext": false,
"WebGLTexture": false,
"HTMLCanvasElement": false,
"ResizeObserver": false,
"name": false,
"Element": false
},
"rules": {
"prettier/prettier": [
"error",
{
"quoteProps": "consistent",
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "warn",
"import/order": [
"error",
{
"newlines-between": "always-and-inside-groups",
"alphabetize": {
"order": "asc",
"orderImportKind": "asc"
}
}
],
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true,
"ignoreMemberSort": false
}
],
"jest/no-disabled-tests": 1,
"jest/no-focused-tests": 1,
"jest/no-identical-title": 1,
"jest/valid-expect": 1
}
}