-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
32 lines (32 loc) · 865 Bytes
/
.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
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parserOptions: {
parser: '@babel/eslint-parser',
},
extends: [
'plugin:nuxt/recommended',
'plugin:vue/vue3-recommended',
'plugin:prettier/recommended',
],
plugins: ['unused-imports'],
// add your custom rules here
rules: {
'import/order': 'off',
// vue 2 still requires native modifier
'vue/no-deprecated-v-on-native-modifier': 'off',
'no-unused-vars': 'warn',
'unused-imports/no-unused-imports': 'warn',
'unused-imports/no-unused-vars': 'warn',
'no-restricted-imports': ['error', '@jest/globals'],
'no-empty-function': 'warn',
'no-shadow': 'warn',
'vue/multi-word-component-names': 0,
'vue/no-reserved-component-names': 0,
'vue/v-on-event-hyphenation': 0,
'vue/no-setup-props-destructure': 0,
},
}