forked from Automattic/jetpack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
86 lines (86 loc) · 2.49 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
85
86
{
"parser": "babel-eslint",
"extends": "wpcalypso/react-a11y",
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true,
"jquery": true
},
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"plugins": [
"eslint-plugin-react",
"lodash"
],
"rules": {
"array-bracket-spacing": [ 1, "always" ],
"brace-style": [ 1, "1tbs" ],
// REST API objects include underscores
"camelcase": 0,
"comma-spacing": 1,
"curly": 1,
"computed-property-spacing": [ 1, "always" ],
"func-call-spacing": 1,
"indent": [ 1, "tab", { "SwitchCase": 1 } ],
"jsx-quotes": [ 1, "prefer-double" ],
"key-spacing": 1,
"keyword-spacing": 1,
"lodash/import-scope": [ 2, "method" ],
"max-len": 0, // Ignored for Jetpack
"new-cap": [ 1, { "capIsNew": false, "newIsCap": true } ],
"no-else-return": 1,
"no-extra-semi": 1,
"no-multiple-empty-lines": [ 1, { max: 1 } ],
"no-multi-spaces": 1,
"no-restricted-imports": [ 1, "lib/sites-list", "lib/mixins/data-observe" ],
"no-restricted-modules": [ 1, "lib/sites-list", "lib/mixins/data-observe" ],
"no-shadow": 1,
"no-spaced-func": 1,
"no-trailing-spaces": 1,
// Allows Chai `expect` expressions
"no-unused-expressions": 0,
"no-var": 1,
"object-curly-spacing": [ 1, "always" ],
"operator-linebreak": [ 1, "after", { "overrides": {
"?": "before",
":": "before"
} } ],
"padded-blocks": [ 1, "never" ],
"prefer-const": 1,
"quote-props": [ 1, "as-needed", { "keywords": true } ],
"quotes": [ 1, "single", "avoid-escape" ],
"react/jsx-curly-spacing": [ 1, "always" ],
"react/jsx-no-bind": 1,
"react/jsx-space-before-closing": 1,
"react/no-danger": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-is-mounted": 1,
"react/prefer-es6-class": 1,
"semi": 1,
"semi-spacing": 1,
"space-before-blocks": [ 1, "always" ],
"space-before-function-paren": [ 1, "never" ],
"space-in-parens": [ 1, "always" ],
"space-infix-ops": [ 1, { "int32Hint": false } ],
"space-unary-ops": [ 1, {
"overrides": {
"!": true
}
} ],
"template-curly-spacing": [ 1, "always" ],
"valid-jsdoc": [ 1, { "requireReturn": false } ],
"wpcalypso/i18n-ellipsis": 1,
"wpcalypso/i18n-no-collapsible-whitespace": 1,
"wpcalypso/i18n-no-this-translate": 1,
"wpcalypso/i18n-no-variables": 1,
"wpcalypso/i18n-mismatched-placeholders": 1,
"wpcalypso/import-docblock": 1,
"wpcalypso/jsx-gridicon-size": 0, // Ignored for Jetpack
"wpcalypso/jsx-classname-namespace": 0 // Ignored for Jetpack
}
}