-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
54 lines (54 loc) · 1.35 KB
/
.eslintrc.json
File metadata and controls
54 lines (54 loc) · 1.35 KB
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
{
"env": {
"node": true,
"browser": true,
"es6": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends" : [
"eslint:recommended",
"airbnb"
],
"plugins": [
"react-native"
],
"rules": {
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/forbid-prop-types": 0,
"no-use-before-define": [1, { "variables": false }],
"no-warning-comments": [1, {
"terms": ["todo", "fixme", "xxx"],
"location": "start"
}],
"react-native/no-unused-styles": 2,
"react-native/no-color-literals": 2,
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["**/*.test.js", "**/*.spec.js", "jest/*.js"]
}],
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"react/jsx-one-expression-per-line": 0,
"object-curly-newline": 0,
"no-else-return": 0,
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 0,
"react/jsx-wrap-multilines": 0,
"react/static-property-placement": 0,
"operator-linebreak": 0,
"react/no-access-state-in-setstate": 0,
"prefer-object-spread": 0,
"implicit-arrow-linebreak": 0
},
"settings": {
"import/resolver": "reactnative"
}
}