-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.cjs
37 lines (35 loc) · 871 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
33
34
35
36
37
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution');
const { includeIgnoreFile } = require('@eslint/compat');
const path = require('node:path');
const gitignorePath = path.resolve(__dirname, '.gitignore');
module.exports = {
root: true,
env: {
browser: true,
node: true
},
ignorePatterns: includeIgnoreFile(gitignorePath).ignores,
extends: [
'./packages/web/.eslintrc-auto-import.json',
'@unocss',
'plugin:vue/vue3-recommended',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier'
],
parserOptions: {
ecmaVersion: 'latest'
},
rules: {
'vue/multi-word-component-names': 0,
'vue/no-v-html': 0,
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_'
}
]
}
};