-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
38 lines (38 loc) · 1.1 KB
/
.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
38
module.exports = {
root: true,
env: {
node: true,
'vue/setup-compiler-macros': true,
},
extends: [
'plugin:vue/vue3-essential',
'@vue/airbnb',
'@vue/typescript/recommended',
'@vue/eslint-config-typescript',
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2022,
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-empty-function': 'off',
'class-methods-use-this': 'off',
'no-mixed-operators': 'off',
'no-plusplus': 'off',
'no-param-reassign': 'off',
'import/no-unresolved': 'off',
'max-len': 'off',
'vue/multi-word-component-names': 'off',
'import/no-webpack-loader-syntax': 'off',
'import/no-named-as-default': 'off',
'max-classes-per-file': 'off',
'import/no-extraneous-dependencies': 'off',
'import/no-cycle': 'off',
'import/extensions': 'off',
'vue/no-reserved-component-names': 'warn',
'vue/require-default-prop': 'warn',
},
};