forked from martpie/museeks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
84 lines (84 loc) · 3.22 KB
/
.eslintrc
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
74
75
76
77
78
79
80
81
82
83
84
{
"extends": "eslint:recommended",
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"electron": true
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"array-callback-return": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": ["error", { "before": true, "after": true }],
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "always-multiline"],
"comma-style": ["error", "last"],
"eqeqeq": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"max-len": ["warn", 150],
"no-array-constructor": "error",
"no-case-declarations": "error",
"no-confusing-arrow": "error",
"no-console": ["error", { "allow": ["info", "warn", "error"] }],
"no-else-return": "error",
"no-duplicate-imports": "error",
"no-multiple-empty-lines": ["error", { "max": 2 }],
"no-multi-spaces": ["error", {"exceptions": { "AssignmentExpression": true, "VariableDeclarator": true, "ImportDeclaration": true, "Property": true }}],
"no-new-object": "error",
"no-param-reassign": "error",
"no-unused-vars": ["error", { "vars": "local", "args": "after-used" }],
"no-useless-escape": "error",
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"one-var": ["error", "never"],
"padded-blocks": ["error", "never"],
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-infix-ops": ["error", {"int32Hint": false}],
"react/jsx-closing-bracket-location": "error",
"react/jsx-curly-spacing": ["error", "always", {"allowMultiline": true}],
"react/jsx-filename-extension": ["error", { "extensions": [".react.js", ".js", ".jsx"] }],
"react/jsx-no-duplicate-props": "error",
"react/jsx-no-bind": "error",
"react/jsx-no-undef": "error",
"react/jsx-pascal-case": "error",
"react/jsx-space-before-closing": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/no-danger": "error",
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"react/no-direct-mutation-state": "error",
"react/no-is-mounted": "error",
"react/no-multi-comp": "error",
"react/prefer-es6-class": "error",
"react/prop-types": "error",
"react/require-render-return": "error",
"react/self-closing-comp": "error",
"import/no-mutable-exports": "error",
"import/prefer-default-export": "error",
"import/imports-first": "error"
},
"plugins": [
"react",
"import"
]
}