-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.eslintrc.js
More file actions
68 lines (67 loc) · 1.95 KB
/
.eslintrc.js
File metadata and controls
68 lines (67 loc) · 1.95 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
parserOptions: {
ecmaVersion: 7,
ecmaFeatures: {
impliedStrict: true,
jsx: true,
experimentalObjectRestSpread: true
},
sourceType: 'module'
},
parser: 'babel-eslint',
env: {
node: true,
es6: true
},
extends: [
// "@react-native-community",
'airbnb',
'plugin:react/recommended',
],
plugins: [
'react',
'react-native',
// "@react-native-community"
],
rules: {
'max-len': ["error", { "code": 200 }],
'comma-dangle': 0,
'radix': 0,
'global-require': 1,
'no-nested-ternary': 0,
'no-return-assign': 0,
'react/require-default-props': 0,
'react/prefer-stateless-function': 0,
'function-paren-newline': 0,
'import/prefer-default-export': 0,
'react/forbid-prop-types': 0,
'react/jsx-filename-extension': 0,
'arrow-body-style': 'warn',
'no-console': 0,
'react/prop-types': 0,
'react/no-string-refs': 0,
'no-undef': 'error',
'linebreak-style': 0,
'class-methods-use-this': 0,
'no-underscore-dangle': 0,
'import/no-extraneous-dependencies': ["error", { devDependencies: true }],
'react/no-did-mount-set-state': 0,
'react/sort-comp': 0,
'camelcase': 0,
// Indent with 4 spaces∂
"indent": ["error", 4],
// Indent JSX with 4 spaces
"react/jsx-indent": ["error", 4],
// Indent props with 4 spaces
"react/jsx-indent-props": ["error", 4],
// "import/no-unresolved": ["error", {commonjs: true, caseSensitive: true}],
"no-use-before-define": [2, { "functions": false, "classes": false, "variables": false }],
"react/jsx-props-no-spreading": [0, {}],
"consistent-return": [0],
"import/no-unresolved": [0],
"no-mixed-operators": [0],
"no-unused-expressions": [0],
"no-useless-constructor": [0],
"no-plusplus": [0]
}
}