forked from dnnsoftware/Dnn.React.Common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
67 lines (67 loc) · 1.98 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
59
60
61
62
63
64
65
66
67
module.exports = {
"plugins": [
"react",
"spellcheck",
"import",
"filenames",
"babel"
],
"settings": {
"import/resolver":{
"webpack": {},
"node":{
"extensions":[".js", ".jsx"]
}
},
"react": {
"createClass": "createReactClass",
"pragma": "React",
"version": "16.4.2",
"flowVersion": "0.53"
},
"propWrapperFunctions": [ "forbidExtraProps" ]
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"regexUFlag": true,
"regexYFlag": true,
"spread": true,
"superInFunctions": false,
"templateStrings": true
},
"ecmaVersion": 6,
"sourceType": "module"
},
"rules": {
"semi": "error",
"no-var": "error",
"quotes": ["warn", "double" ],
"indent": ["warn", 4, {"SwitchCase": 1}],
"no-console": "warn",
"keyword-spacing": "warn",
"eqeqeq": "warn",
"space-before-function-paren": ["warn", { "anonymous": "always", "named": "never" }],
"space-before-blocks": "warn",
"no-multiple-empty-lines": "warn",
"react/jsx-equals-spacing": ["warn", "never"],
"id-match": ["error", "^([A-Za-z0-9_])+$", {"properties": true}],
"import/no-unresolved": 2,
"import/named": 2,
"import/default": 2,
"filenames/match-exported": 2,
"react/no-deprecated": "error",
"no-dupe-class-members": "error"
}
};