forked from polito/students-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
55 lines (55 loc) · 1.36 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
{
"root": true,
"extends": [
"eslint-config-react-typescript/lib/react",
"plugin:react/jsx-runtime",
"prettier"
],
"plugins": [
"unused-imports",
"react-native"
],
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"rules": {
"react-native/split-platform-components": 2,
"react-native/no-color-literals": 1,
"react-native/no-raw-text": 0,
"react-native/no-single-element-style-arrays": 2
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"rules": {
"@typescript-eslint/no-shadow": ["error"],
"no-shadow": "off",
"no-unused-vars": "off",
"unused-imports/no-unused-imports": "error",
"unused-imports/no-unused-vars": [
"warn",
{
"vars": "all",
"varsIgnorePattern": "^_",
"args": "after-used",
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-console": ["error", {
"allow": ["warn", "error", "debug"]
}],
"react/jsx-curly-brace-presence": "error",
"react/jsx-no-useless-fragment": "error"
}
}
],
"settings": {
"react": {
"version": "detect"
}
}
}