-
Notifications
You must be signed in to change notification settings - Fork 121
/
.eslintrc.js
30 lines (29 loc) · 923 Bytes
/
.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
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'eslint:recommended',
'standard',
'plugin:vue/vue3-recommended',
'plugin:vue-scoped-css/vue3-recommended',
'@vue/eslint-config-typescript/recommended',
],
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'comma-dangle': ['error', 'always-multiline'],
'linebreak-style': ['error', 'unix'],
'no-multiple-empty-lines': 'error',
'object-curly-spacing': ['error', 'always'],
'sort-imports': ['error', { ignoreCase: true, ignoreDeclarationSort: true }],
'vue-scoped-css/enforce-style-type': ['error', { allows: ['scoped', 'plain'] }],
'vue/block-order': ['error', { order: ['template', 'script', 'style'] }],
'vue/component-name-in-template-casing': ['error', 'kebab-case'],
},
}