-
Notifications
You must be signed in to change notification settings - Fork 73
/
.eslintrc
44 lines (44 loc) · 1.26 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
{
"parser": "babel-eslint",
"plugins": ["react", "react-native", "jsx-a11y"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"prettier",
"plugin:jest/recommended"
],
"rules": {
"import/prefer-default-export": 0,
"react/state-in-constructor": 0,
"react/display-name": 0,
"react/prop-types": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-indent-props": ["error", 2],
"react/jsx-indent": ["error", 2],
"react/jsx-one-expression-per-line": 0,
"react/jsx-curly-newline": 0,
"react/destructuring-assignment": 0,
"react-native/no-unused-styles": 2,
"react-native/no-inline-styles": 2,
"react-native/no-color-literals": 2,
"react-native/no-raw-text": 2,
"import/no-extraneous-dependencies": [0],
"import/extensions": ["error", { "js": "never", "json": "always" }],
"no-undef": 0,
"no-shadow": 0,
"no-nested-ternary": 0,
"no-restricted-syntax": 0,
"no-prototype-builtins": 0,
"radix": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"arrow-parens": 0
}
}