-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc-dev.js
53 lines (52 loc) · 1.13 KB
/
.eslintrc-dev.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
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
env: {
'browser': true,
'node': true,
'es6': true,
'jquery': true
},
extends: [
// https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style
'standard',
'vue',
'plugin:import/errors',
'plugin:import/warnings'
],
// check if imports actually resolve
settings: {
'import/resolver': {
'webpack': {
'config': 'webpack/webpack.config.babel.js'
}
}
},
plugins: [
'html'
],
rules: {
// don't require .vue extension when importing
'import/extensions': ['error', 'always', {
'js': 'never',
'vue': 'never'
}],
'arrow-parens': 1,
'no-multi-spaces': 1,
'key-spacing': 1,
'no-unused-vars': 1,
'no-undef': 1,
'indent': 1,
'no-console': 1,
'no-new': 1,
'object-curly-spacing': 1,
'arrow-body-style': [2, 'as-needed'],
'no-param-reassign': [2, { 'props' : false }],
'func-names': 1,
'space-before-function-paren': 1
}
}