🔨 Update eslint config.

This commit is contained in:
pheralb 2023-07-07 09:16:54 +01:00
parent 874876fc8e
commit ba3e228a4d

View File

@ -1,20 +1,30 @@
module.exports = { module.exports = {
root: true, root: true,
parser: '@typescript-eslint/parser', extends: [
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], 'eslint:recommended',
plugins: ['svelte3', '@typescript-eslint'], 'plugin:@typescript-eslint/recommended',
ignorePatterns: ['*.cjs'], 'plugin:svelte/recommended',
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], 'prettier'
settings: { ],
'svelte3/typescript': () => require('typescript') parser: '@typescript-eslint/parser',
}, plugins: ['@typescript-eslint'],
parserOptions: { parserOptions: {
sourceType: 'module', sourceType: 'module',
ecmaVersion: 2020 ecmaVersion: 2020,
}, extraFileExtensions: ['.svelte']
env: { },
browser: true, env: {
es2017: true, browser: true,
node: true es2017: true,
} node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
}; };