-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.js
53 lines (53 loc) · 1.5 KB
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
"es6": true,
"browser": true
},
parser: "@typescript-eslint/parser",
parserOptions: {
"project": "./tsconfig.json"
},
extends:
[
'@react-native-community'
],
rules: {
"no-restricted-syntax": "warn",
"react/jsx-curly-brace-presence": "off",
"react/jsx-wrap-multilines": "off",
"@typescript-eslint/semi": "warn",
"jsx-a11y/label-has-associated-control": "off",
"arrow-body-style": "off",
"no-trailing-spaces": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/comma-dangle": "off",
"class-methods-use-this": "off",
"comma-dangle": "off",
"import/no-cycle": "off",
"import/no-extraneous-dependencies": "off",
"import/order": "off",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"max-len": "off",
"no-console": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-return-assign": "off",
"object-curly-newline": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react-hooks/exhaustive-deps": "off",
"prettier/prettier": "off",
"react/jsx-max-props-per-line": [
1,
{
"when": "always"
}
],
"operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before", "&&": "before" } }],
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off"
}
};