generated from sapphi-red/vite-boilerplate-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (37 loc) · 903 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
31
32
33
34
35
36
37
// eslint-disable-next-line no-undef
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module'
},
env: {
browser: true,
es2017: true
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
'prettier'
],
rules: {
'no-console': 'warn',
'no-debugger': 'warn',
'no-restricted-imports': [
'error',
{
name: '/@/lib/apis/generated',
message: 'Please use /@/lib/apis instead.'
}
],
'@typescript-eslint/no-extra-semi': 'off',
'vue/max-attributes-per-line': 'off',
'vue/require-valid-default-prop': 'off',
'vue/multi-word-component-names': 'off',
'vue/no-reserved-component-names': 'off'
}
}