-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
66 lines (66 loc) · 1.79 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
module.exports = {
root: true,
env: {
browser: true,
jest: true,
amd: true
},
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
extends: 'standard',
// required to lint *.vue files
plugins: [
'html'
],
settings: {
'html/html-extensions': ['.html', '.vue']
},
// tpl
// http://info.meteor.com/blog/set-up-sublime-text-for-meteor-es6-es2015-and-jsx-syntax-and-linting
rules: {
semi: [1, 'always'],
// http://eslint.org/docs/rules
quotes: [
2, 'single', 'avoid-escape' // http://eslint.org/docs/rules/quotes
],
// http://eslint.org/docs/rules/no-unused-vars
'no-unused-vars': [
1, { vars: 'local', args: 'after-used' }
],
'eol-last': 1,
'no-debugger': 1,
'padded-blocks': 1,
'brace-style': [2, 'stroustrup'],
'comma-dangle': [2, 'only-multiline'],
'space-before-function-paren': [2, 'never'],
'no-multiple-empty-lines': [2, { max: 3 }],
'keyword-spacing': [
2, {
before: true,
after: true,
overrides: {
'catch': {
after: false
},
'for': {
after: false
},
'if': {
after: false
},
'while': {
after: false
}
}
}
],
indent: [2, 4, {
MemberExpression: 0
}],
eqeqeq: 2,
curly: 1
}
};