-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
44 lines (44 loc) · 1.06 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
overrides: [{
files: [ './**/*.{ts,vue}' ]
}],
env: {
browser: true
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: "@typescript-eslint/parser",
sourceType: 'module',
project: true,
tsconfigRootDir: __dirname,
extraFileExtensions: [ '.vue' ],
vueFeatures: {
interpolationAsNonHTML: false
}
},
plugins: [ '@typescript-eslint' ],
extends: [
'plugin:vue/vue3-recommended',
'plugin:@typescript-eslint/recommended-type-checked',
],
rules: {
'@typescript-eslint/no-unsafe-argument': 'off',
indent: [ 'error', 2 ],
'max-len': [ 'error', {
code: 80,
tabWidth: 2
}],
'vue/block-order': ['warn', {
order: [ 'template', 'style', 'script' ]
}],
'vue/component-tags-order': 'off',
'vue/html-closing-bracket-spacing': 'error',
'vue/html-indent': 'error',
'vue/max-attributes-per-line': ['warn', {
singleline: { max: 12 },
multiline: { max: 1 }
}],
'vue/multi-word-component-names': 'off',
}
}