This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
97 lines (97 loc) · 2.48 KB
/
index.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
module.exports = {
env: {
es6: true
},
parserOptions: {
ecmaVersion: 7,
sourceType: 'module'
},
plugins: [
'wpcalypso'
],
rules: {
'array-bracket-spacing': [ 2, 'always' ],
'brace-style': [ 2, '1tbs' ],
camelcase: 2,
'comma-dangle': 0,
'comma-spacing': 2,
'comma-style': 2,
'computed-property-spacing': [ 2, 'always' ],
'constructor-super': 2,
// Allows returning early as undefined
'consistent-return': 0,
curly: 2,
'dot-notation': 2,
eqeqeq: [ 2, 'allow-null' ],
'eol-last': 2,
indent: [ 2, 'tab', { SwitchCase: 1 } ],
'jsx-quotes': [ 2, 'prefer-double' ],
'key-spacing': 2,
'keyword-spacing': 2,
'max-len': [ 2, { code: 100 } ],
'new-cap': [ 2, { capIsNew: false, newIsCap: true } ],
'no-cond-assign': 2,
'no-const-assign': 2,
'no-console': 2,
'no-debugger': 2,
'no-dupe-args': 2,
'no-dupe-keys': 2,
'no-duplicate-case': 2,
'no-else-return': 2,
'no-empty': [ 2, { allowEmptyCatch: true } ],
'no-extra-semi': 2,
'no-fallthrough': 0,
'no-lonely-if': 2,
'no-mixed-requires': 0,
'no-mixed-spaces-and-tabs': 2,
'no-multiple-empty-lines': [ 2, { max: 1 } ],
'no-multi-spaces': 2,
'no-negated-in-lhs': 2,
'no-nested-ternary': 2,
'no-new': 2,
'no-process-exit': 2,
'no-redeclare': 2,
'no-shadow': 2,
'no-spaced-func': 2,
'no-trailing-spaces': 2,
'no-undef': 2,
'no-underscore-dangle': 0,
'no-unreachable': 2,
'no-unused-vars': 2,
// Allows function use before declaration
'no-use-before-define': [ 2, 'nofunc' ],
'no-var': 2,
'object-curly-spacing': [ 2, 'always' ],
'one-var': 0,
'operator-linebreak': [ 2, 'after', { overrides: {
'?': 'before',
':': 'before'
} } ],
'padded-blocks': [ 2, 'never' ],
'prefer-const': 2,
'quote-props': [ 2, 'as-needed', { keywords: true } ],
quotes: [ 2, 'single', 'avoid-escape' ],
semi: 2,
'semi-spacing': 2,
'space-before-blocks': [ 2, 'always' ],
'space-before-function-paren': [ 2, 'never' ],
'space-in-parens': [ 2, 'always' ],
'space-infix-ops': [ 2, { int32Hint: false } ],
'space-unary-ops': [ 2, {
overrides: {
'!': true
}
} ],
// Assumed by default with Babel
strict: [ 2, 'never' ],
'valid-jsdoc': [ 2, { requireReturn: false } ],
'wpcalypso/i18n-ellipsis': 2,
'wpcalypso/i18n-no-variables': 2,
'wpcalypso/i18n-no-placeholders-only': 2,
'wpcalypso/i18n-mismatched-placeholders': 2,
'wpcalypso/i18n-named-placeholders': 2,
'wpcalypso/jsx-gridicon-size': 2,
'wpcalypso/jsx-classname-namespace': 2,
yoda: 0
}
};