generated from Merlin218/vite-template-vue3-typescript
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
27 lines (27 loc) · 873 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
module.exports = {
env: {
browser: true,
es2021: true,
'vue/setup-compiler-macros': true,
},
extends: ['plugin:vue/vue3-recommended', 'eslint:recommended', 'airbnb-base', 'plugin:prettier/recommended', 'prettier'],
parserOptions: {
ecmaVersion: 13,
parser: '@typescript-eslint/parser',
sourceType: 'module',
},
plugins: ['vue', '@typescript-eslint'],
rules: {
'no-console': process.env.NODE_ENV === 'development' ? 'off' : 'warn',
'no-debugger': process.env.NODE_ENV === 'development' ? 'off' : 'warn',
'no-alert': process.env.NODE_ENV === 'development' ? 'off' : 'warn',
'import/resolver': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'no-unused-expressions': 'off',
'no-param-reassign': 'off',
'prettier/prettier': 'off',
'import/prefer-default-export': 'off',
'vue/multi-word-component-names': 'off',
},
};