Commit 3504b631f9e5e168533a77b8f6469b36881c3405
1 parent
d294b7dc48
Exists in
master
add eslint rule for allowing variable alignment spacing
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
.eslintrc.js
1 | module.exports = { | 1 | module.exports = { |
2 | 'env': { | 2 | 'env': { |
3 | 'es6': true, | 3 | 'es6': true, |
4 | 'browser': true, | 4 | 'browser': true, |
5 | 'meteor': true, | 5 | 'meteor': true, |
6 | 'node': true | 6 | 'node': true |
7 | }, | 7 | }, |
8 | 'extends': 'eslint:recommended', | 8 | 'extends': 'eslint:recommended', |
9 | 'ecmaFeatures': { | 9 | 'ecmaFeatures': { |
10 | 'jsx': true, | 10 | 'jsx': true, |
11 | 'experimentalObjectRestSpread': true | 11 | 'experimentalObjectRestSpread': true |
12 | }, | 12 | }, |
13 | 'plugins': [ | 13 | 'plugins': [ |
14 | 'react' | 14 | 'react' |
15 | ], | 15 | ], |
16 | 'globals': { | 16 | 'globals': { |
17 | 'BlazeLayout': true, | 17 | 'BlazeLayout': true, |
18 | 'Documents': true, | 18 | 'Documents': true, |
19 | 'FlowRouter': true | 19 | 'FlowRouter': true |
20 | }, | 20 | }, |
21 | 'rules': { | 21 | 'rules': { |
22 | 'comma-dangle': [2, 'never'], | 22 | 'comma-dangle': [2, 'never'], |
23 | 'eqeqeq': [2, 'smart'], | 23 | 'eqeqeq': [2, 'smart'], |
24 | 'indent': [2, 2], | 24 | 'indent': [2, 2], |
25 | 'linebreak-style': [2, 'unix'], | 25 | 'linebreak-style': [2, 'unix'], |
26 | 'no-multi-spaces': [1, { 'exceptions': { 'VariableDeclarator': true } } ], | ||
26 | 'no-unneeded-ternary': [2], | 27 | 'no-unneeded-ternary': [2], |
27 | 'quotes': [2, 'single'], | 28 | 'quotes': [2, 'single'], |
28 | 'semi': [2, 'always'], | 29 | 'semi': [2, 'always'], |
29 | 'space-infix-ops': [2], | 30 | 'space-infix-ops': [2], |
30 | 'space-in-parens': [2, 'always', { 'exceptions': ['{}'] }] | 31 | 'space-in-parens': [2, 'always', { 'exceptions': ['{}'] }] |
31 | } | 32 | } |
32 | }; | 33 | }; |
33 | 34 |