-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
41 lines (39 loc) · 1.02 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
/* eslint-env node */
// require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
env: {
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
},
extends: [
'plugin:vue/vue3-recommended',
'@vue/typescript/recommended',
'eslint:recommended',
'prettier',
],
plugins: ['prettier'],
rules: {
// Required rules
//////////////////////////////////////////////
'prettier/prettier': 'error',
'arrow-body-style': 0,
'prefer-arrow-callback': 0,
// "vue/order-in-components": "error",
//////////////////////////////////////////////
// Non-required rules
// Vue rules
'vue/no-reserved-component-names': 0,
'vue/multi-word-component-names': 0,
// @typescript-eslint rules
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/no-empty-function': 0,
// other rules
'no-async-promise-executor': 0,
'vue/no-v-html': 0,
},
};