btclock-webui/.eslintrc.cjs

34 lines
608 B
JavaScript
Raw Normal View History

2023-11-17 01:05:35 +01: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 20:27:22 +01:00
rules: {
'no-empty': ['error', { allowEmptyCatch: true }]
},
2023-11-17 01:05:35 +01:00
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};