-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
70 lines (70 loc) · 1.97 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
{
"extends": [
"airbnb",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"plugins": [
"react-native",
"@typescript-eslint"
],
"rules": {
"no-param-reassign": [2, { "props": false }],
"no-shadow": "off",
"jsx-a11y/href-no-hash": ["off"],
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"max-len": ["warn", {
"code": 240,
"tabWidth": 2,
"comments": 120,
"ignoreComments": false,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"comma-dangle": ["error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "never"
}],
"no-return-await": "error",
"object-curly-newline": "off",
"react/prop-types": "off",
"react/display-name": "off",
"react/jsx-curly-newline": "off",
"linebreak-style": "off",
"react/jsx-props-no-spreading": "off",
"react/destructuring-assignment": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-use-before-define": "off",
"import/no-unresolved": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"no-else-return": "off",
"global-require": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/ban-ts-comment": [
"warn",
{
"ts-ignore": "allow-with-description"
}
],
"no-underscore-dangle": "off",
"no-alert": "off",
"react/require-default-props": "off",
"react/jsx-one-expression-per-line": "off"
}
}