-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.36 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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
extends: [
'airbnb-base',
'plugin:vue/essential',
'plugin:vue/strongly-recommended',
],
parserOptions: {
parser: 'babel-eslint',
},
plugins: [
'vue',
],
rules: {
indent: ['error', 4],
'max-len': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-console': 'off',
'no-shadow': 'off', // Investigate
'no-continue': 'off',
'no-alert': 'off', // TODO
'no-param-reassign': 'off',
'no-restricted-syntax': 'off',
'class-methods-use-this': 'off', // We need to use abstract methods
'import/no-unresolved': 'off', // https://github.com/nuxt/eslint-config/blob/master/packages/eslint-config/index.js#L39
'import/extensions': 'off',
'vue/html-indent': ['error', 4],
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/multiline-html-element-content-newline': ['error', {
allowEmptyLines: true,
}],
'vue/max-attributes-per-line': ['error', {
multiline: {
allowFirstLine: true,
},
}],
},
ignorePatterns: [
'static/**/*',
],
};