forked from open5e/open5e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
44 lines (44 loc) · 1.11 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
42
43
44
module.exports = {
root: true,
env: {
browser: true,
node: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'espree',
ecmaVersion: 2022,
sourceType: 'module',
},
extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
'plugin:vue/vue3-strongly-recommended',
'plugin:vue/strongly-recommended',
'plugin:vue/vue3-recommended',
'plugin:vue/recommended',
'prettier',
],
// required to lint *.vue files
plugins: ['vue', '@typescript-eslint'],
// add your custom rules here
rules: {
eqeqeq: 'off',
// curly: 'error',
// sometimes you need to use double quotes. ie. string contains apostrophes
// quotes: ['error', 'single'],
'vue/multi-word-component-names': 'off',
'vue/html-self-closing': [
'error',
{
html: {
normal: 'always',
component: 'always',
/* Vue advises that void tags omit the terminal slash, but this
* conflicts with Prettier */
// void: 'never',
void: 'always',
},
},
],
},
};