forked from deseretdigital-ui/ddm-react-cropperjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
73 lines (73 loc) · 1.95 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
{
"root": true,
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"jquery": true,
"es6": true
},
"rules": {
"block-scoped-var": 2,
"camelcase": [2, {"properties": "never"}],
"default-case": 2,
"no-else-return": 2,
"vars-on-top": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"brace-style": [2, "1tbs"],
"consistent-this": [2, "self"],
"no-lonely-if": 2,
"no-console": 2,
"no-script-url": 0,
"quotes": [2, "single"],
"keyword-spacing": [2],
"space-before-blocks": [2, "always"],
"object-curly-spacing": [2, "never"],
"array-bracket-spacing": [2, "never"],
"computed-property-spacing": [2, "never"],
"space-in-parens": [2, "never"],
"spaced-comment": [2, "always", {
"line": {
"exceptions": ["/", "-", "+"]
},
"block": {
"exceptions": ["*"]
}
}],
"max-len": [2, {"code": 80, "tabWidth": 2, "ignoreUrls": true}],
"eol-last": 2,
"no-trailing-spaces": 2,
"strict": 0,
"no-use-before-define": [2, "nofunc"],
"no-inline-comments": 2,
"jsx-quotes": [2, "prefer-double"],
"react/jsx-no-duplicate-props": 2,
"react/jsx-boolean-value": [2, "always"],
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/react-in-jsx-scope": 2,
"react/prop-types": [2, {"ignore": ["params", "location"]}],
"react/jsx-wrap-multilines": 2,
"react/no-multi-comp": 2,
"react/no-unknown-property": 2,
"react/self-closing-comp": 2,
"react/no-direct-mutation-state": 2,
"react/no-deprecated": 1,
"react/jsx-tag-spacing": 2,
"react/prefer-stateless-function": 2,
"react/require-render-return": 2,
"react/no-did-update-set-state": 2,
"react/no-did-mount-set-state": 2
},
"plugins": [
"react"
]
}