-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
40 lines (38 loc) · 1023 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
38
39
40
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'plugin:oxlint/recommended',
],
overrides: [
{
files: [
'e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'
],
'extends': [
'plugin:playwright/recommended'
]
},
{
'files': ['*.json', '*.json5'],
'parser': 'jsonc-eslint-parser',
},
],
parserOptions: {
ecmaVersion: 'latest'
},
plugins: ['simple-import-sort', '@stylistic/ts', '@stylistic/js', 'unused-imports'],
rules: {
quotes: ['error', 'single'],
semi: ['error', 'never'],
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/no-unused-vars': 'error',
'@stylistic/js/no-multiple-empty-lines': ['error', { 'max': 2, 'maxEOF': 0, 'maxBOF': 0 }],
'unused-imports/no-unused-imports': 'error',
}
}