forked from tachyons-css/react-native-style-tachyons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
120 lines (117 loc) · 3.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"parser": "babel-eslint",
"extends": [
"eslint:all",
"plugin:react/all",
"plugin:import/errors",
"plugin:import/warnings"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": [
"react"
],
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "src"]
}
},
"import/ignore": [
"node_modules"
]
},
"rules": {
"callback-return": 0,
"camelcase": 0,
"class-methods-use-this": 0,
"comma-dangle": 0,
"consistent-this": 0,
"default-case": 0,
"func-style": 0,
"global-require": 0,
"id-length": 0,
"init-declarations": 0,
"line-comment-position": 0,
"max-len": 0,
"max-lines": 0,
"max-params": 0,
"max-statements": 0,
"multiline-ternary": 0,
"newline-after-var": 0,
"newline-per-chained-call": 0,
"no-else-return": 0,
"no-empty-function": 0,
"no-extra-parens": 0,
"no-inline-comments": 0,
"no-invalid-this": 0,
"no-nested-ternary": 0,
"no-magic-numbers": 0,
"no-mixed-operators": 0,
"no-param-reassign": 0,
"no-plusplus": 0,
"no-ternary": 0,
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"no-sync": 0,
"object-property-newline": 0,
"object-curly-newline": 0,
"one-var": 0,
"padded-blocks": 0,
"prefer-reflect": 0,
"require-jsdoc": 0,
"semi": 0,
"sort-imports": 0,
"sort-keys": 0,
"sort-vars": 0,
"space-before-function-paren": 0,
"arrow-spacing": [2, { "before": true, "after": true }],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-spacing": [2, { "before": false, "after": true }],
"dot-location": [2, "property"],
"quote-props": [2, "as-needed"],
"object-curly-spacing": [2, "always"],
"arrow-parens": [2, "as-needed"],
"operator-linebreak": [2, "after", {
"overrides": {
"||": "ignore",
"&&": "ignore",
"?": "before",
":": "before"
}
}],
"indent": [2, 4, {
"VariableDeclarator": {
"var": 1,
"let": 1,
"const": 1
},
"SwitchCase": 1
}],
"react/prefer-stateless-function": 0,
"react/require-optimization": 0,
"react/sort-prop-types": 0,
"react/sort-comp": 0,
"react/no-set-state": 0,
"react/no-unused-prop-types": 0,
"react/no-multi-comp": 0,
"react/forbid-prop-types": 0,
"react/forbid-component-props": 0,
"react/jsx-handler-names": 0,
"react/jsx-sort-props": 0,
"react/jsx-no-literals": 0,
"react/jsx-filename-extension": 0,
"react/jsx-indent": [2, 4]
}
}