diff --git a/.eslintrc.cjs b/.eslintrc.cjs index eaf19f561..abf1e6db4 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,13 +1,18 @@ module.exports = { root: true, parser: '@typescript-eslint/parser', - extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], - plugins: ['svelte3', '@typescript-eslint'], + extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier', 'plugin:svelte/recommended'], + plugins: ['@typescript-eslint'], ignorePatterns: ['*.cjs'], - overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], - settings: { - 'svelte3/typescript': () => require('typescript') - }, + overrides: [ + { + files: ['*.svelte'], + parser: 'svelte-eslint-parser', + parserOptions: { + parser: '@typescript-eslint/parser' + } + } + ], parserOptions: { sourceType: 'module', ecmaVersion: 2020 diff --git a/.gitignore b/.gitignore index 6d51ee152..51a9eeaa3 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ yarn.lock src/routes/testdir/* +.idea/