webui/.eslintrc.cjs

34 lines
608 B
JavaScript
Raw Normal View History

2023-11-17 00:05:35 +00:00
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
2023-11-19 19:27:22 +00:00
rules: {
'no-empty': ['error', { allowEmptyCatch: true }]
},
2023-11-17 00:05:35 +00:00
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};