forked from jsdf/react-native-htmlview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
58 lines (57 loc) · 1.26 KB
/
.eslintrc.js
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
module.exports = {
"extends": ["eslint:recommended", "plugin:react/recommended"],
env: {
browser: true,
node: true,
es6: true,
jasmine: true,
},
globals: {
"jest": true,
"shallowRender": true,
},
parser: "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
plugins: [
"react",
],
"rules": {
"no-console": 0,
"no-shadow": 2,
"no-var": 2,
// style
"semi": [2, 'always'],
"comma-dangle": [2, "always-multiline"],
"no-extra-semi": 2,
"no-multi-spaces": 2,
"array-bracket-spacing": 2,
"block-spacing": 2,
"comma-spacing": 2,
"computed-property-spacing": 2,
"eol-last": 2,
"indent": [2, 2],
"keyword-spacing": 2,
"linebreak-style": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"object-curly-spacing": 2,
"quotes": [2, "single", "avoid-escape"],
"semi-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": 2,
"space-infix-ops": 2,
"space-unary-ops": 2,
"arrow-spacing": 2,
"generator-star-spacing": 2,
"template-curly-spacing": 2,
"yield-star-spacing": 2,
"react/prop-types": 0,
}
};