-
-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (27 loc) · 922 Bytes
/
eslint.config.js
File metadata and controls
28 lines (27 loc) · 922 Bytes
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
import vue from 'eslint-plugin-vue'
import vueTs from '@vue/eslint-config-typescript'
import tseslint from 'typescript-eslint'
export default tseslint.config(
{
ignores: ['dist/**', 'public/injected/**', 'node_modules/**', 'build-scripts/**', 'eslint.config.js']
},
...tseslint.configs.recommended,
...vue.configs['flat/essential'],
...vueTs(),
{
files: ['src/**/*.{ts,vue}'],
languageOptions: {
globals: {
chrome: 'readonly'
}
},
rules: {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/ban-ts-comment': ['warn', { 'ts-nocheck': false, 'ts-ignore': true, 'ts-expect-error': false }],
'vue/multi-word-component-names': 'off',
'no-empty': ['error', { allowEmptyCatch: true }],
'no-useless-escape': 'off'
}
}
)