forked from spree/spree_starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
79 lines (70 loc) · 1.91 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
---
parser: babel-eslint
extends: eslint-config-airbnb
plugins:
- react
- import
globals:
__DEBUG_SERVER_ERRORS__: true
__SERVER_ERRORS__: true
Routes: true
I18n: true
analytics: true
ga: true
window: true
env:
browser: true
node: true
mocha: true
rules:
### Variables
no-undef: 2
no-unused-vars: [2, { vars: all, args: none }]
### Stylistic issues
indent: [1, 2, { SwitchCase: 1, VariableDeclarator: 2 }]
id-length: [1, { min: 2, exceptions: [_, e, i, k, v] }]
semi: [1, never]
comma-style: [1, last]
comma-dangle: [1, never]
object-curly-newline: 1
object-curly-spacing: 1
prefer-destructuring: 0
global-require: 1
prefer-template: 1
function-paren-newline: 1
no-mixed-operators: 1
max-len: [1, 150, 2]
arrow-parens: 1
no-else-return: 1
import/prefer-default-export: 0
import/first: 1
import/extensions: 0
import/no-extraneous-dependencies: 0 # this is messed with our client directory setup
import/no-unresolved: 0 # same as previous
impot/export: 0
### React
jsx-quotes: [1, prefer-double]
react/display-name: 0
react/jsx-boolean-value: [1, always]
react/jsx-curly-spacing: [1, never]
react/jsx-no-duplicate-props: [2, { ignoreCase: true }]
react/jsx-no-undef: 2
react/jsx-sort-prop-types: 0
react/jsx-sort-props: 0
react/jsx-uses-react: 2
react/jsx-uses-vars: 2
react/no-danger: 0
react/no-did-mount-set-state: 1
react/no-did-update-set-state: 0
react/no-multi-comp: 2
react/no-unknown-property: 2
react/prop-types: 2
react/react-in-jsx-scope: 2
react/jsx-filename-extension: [1, { extensions: [.js, .jsx] }]
react/self-closing-comp: 2
react/sort-comp: 0 # Should be 1. `statics` should be on top.
react/jsx-wrap-multilines: 2
react/prefer-stateless-function: 1
react/jsx-max-props-per-line: 1
react/forbid-prop-types: 0
react/require-default-props: 1