-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (64 loc) · 2.12 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
{
"parser": "babel-eslint",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"env": {
"node": true,
"es6": true,
"browser": true,
"mocha": true,
"react-native/react-native": true
},
"plugins": [
"react",
"react-native",
"jsx-a11y",
"import"
],
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false,
"ecmaFeatures": {
"modules": true,
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"rules": {
"comma-dangle": ["error", "never"],
"no-const-assign": ["error"],
"no-extra-semi": ["error"],
"semi": ["error", "never"],
"no-fallthrough": ["error"],
"no-empty": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-redeclare": ["error"],
"no-this-before-super": ["error"],
"no-undef": ["error"],
"no-unreachable": ["error"],
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"no-use-before-define": ["error", { "functions": false, "classes": false, "variables": true }],
"constructor-super": ["error"],
"curly": ["error", "all"],
"eqeqeq": ["error", "always"],
"func-names": ["error", "never"],
"valid-typeof": ["error"],
"no-console": ["error"],
"strict": ["error", "safe"],
"camelcase": ["error", { "properties": "always" }],
"arrow-parens": ["error", "as-needed"],
"object-shorthand": ["error", "always", { "avoidQuotes": true, "ignoreConstructors": true }],
"arrow-body-style": ["error", "as-needed"],
"react-native/no-unused-styles": ["error"],
"react-native/split-platform-components": ["error"],
"react-native/no-inline-styles": ["error"],
"react-native/no-color-literals": ["error"]
}
}