-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
47 lines (47 loc) · 1.06 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
module.exports = {
env: {
browser: true,
es2020: true,
jest: true,
},
extends: [
'plugin:vue/recommended',
'airbnb-base',
'plugin:@intlify/vue-i18n/recommended',
],
parserOptions: {
ecmaVersion: 11,
sourceType: 'module',
},
plugins: [
'vue',
],
rules: {
'arrow-parens': ['warn', 'as-needed'],
'dot-notation': 'off',
'no-console': 'off',
semi: ['error', 'never'],
'object-curly-newline': 'off',
'function-paren-newline': ['error', 'consistent'],
'import/extensions': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/script-indent': ['error', 2, { baseIndent: 1 }],
'vue/max-attributes-per-line': ['error', { singleline: 10 }],
'vue/first-attribute-linebreak': ['error', { multiline: 'beside' }],
'vue/no-v-for-template-key': 'off',
},
overrides: [
{
files: ['*.vue'],
rules: {
indent: 'off',
},
},
],
settings: {
'vue-i18n': {
// It should fail to parse json5
localeDir: './path/to/locales/*.json5',
},
},
}