-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.js
46 lines (30 loc) · 1.04 KB
/
.eslintrc.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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
'env': {
'mocha': true, // Used for unit tests.
},
'globals': {
'expect': true, // Used for unit tests.
'sinon': true, // Used for unit tests.
},
parserOptions: {
sourceType: 'module'
},
extends: 'standard',
plugins: [
// Required to lint *.vue files.
// https://github.com/BenoitZugmeyer/eslint-plugin-html/tree/40c728#usage
'html',
],
rules: {
// https://eslint.org/docs/user-guide/migrating-to-4.0.0#-the-no-multi-spaces-rule-is-more-strict-by-default
'no-multi-spaces': ['error', {'ignoreEOLComments': true}],
// Require or disallow trailing commas http://eslint.org/docs/rules/comma-dangle
'comma-dangle': ['error', 'always-multiline'],
// Limit multiple empty lines http://eslint.org/docs/rules/no-multiple-empty-lines
'no-multiple-empty-lines': ['error', { 'max': 2 }],
// Disable padding within blocks http://eslint.org/docs/rules/padded-blocks.html
'padded-blocks': 'off',
}
}