forked from RedEagleAP/Meow-Boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc-dev.js
54 lines (53 loc) · 1.15 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
54
// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint',
ecmaVersion: 2017,
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',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:prettier/recommended',
],
// check if imports actually resolve
settings: {
'import/resolver': {
webpack: {
config: 'webpack/webpack.config.base.babel.js',
},
},
},
rules: {
// don't require .vue extension when importing
'import/extensions': [
'error',
'always',
{
js: 'never',
},
],
'arrow-parens': 1,
'no-multi-spaces': 1,
'key-spacing': 1,
'no-unused-vars': 0,
'no-undef': 0,
indent: 1,
'no-console': 1,
'no-new': 0,
'object-curly-spacing': 0,
'arrow-body-style': [2, 'as-needed'],
'no-param-reassign': [2, { props: false }],
'func-names': 1,
'space-before-function-paren': 0,
},
};