chore: update eslint
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Damillora 2023-08-08 20:00:50 +07:00
parent b103804c73
commit b1528da772

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'
}
}
]
}; };