forked from RunOnFlux/flux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
63 lines (63 loc) · 1.23 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
module.exports = {
root: true,
env: {
commonjs: true,
node: true,
mocha: true,
},
extends: [
'plugin:vue/recommended',
'@vue/airbnb',
],
rules: {
'max-len': [
'error',
{
code: 300,
ignoreUrls: true,
ignoreTrailingComments: true,
},
],
'no-console': 'off',
'linebreak-style': [
'error',
'unix',
],
'prefer-destructuring': ['error', { object: true, array: false }],
'import/no-extraneous-dependencies': ['error', {
devDependencies: true, optionalDependencies: true, peerDependencies: false,
}],
camelcase: ['error', { properties: 'never', ignoreDestructuring: true, ignoreImports: true }],
'import/extensions': ['error', 'ignorePackages', { vue: 'always', js: 'never' }],
},
parserOptions: {
parser: 'babel-eslint',
},
settings: {
'import/resolver': {
node: {
extensions: [
'.js',
'.jsx',
'.vue',
],
},
},
},
overrides: [
{
files: [
'**/__tests__/*.{j,t}s?(x)',
],
env: {
mocha: true,
},
},
{
files: ['*.html'],
rules: {
'vue/comment-directive': 'off'
}
}
],
};