diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f89e492..c95b224 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,20 +1,24 @@ module.exports = { root: true, parser: '@typescript-eslint/parser', - extends: [ - 'eslint:recommended', - // 'plugin:@typescript-eslint/recommended', // todo: https://stackoverflow.com/questions/57597142/how-to-run-typescript-eslint-on-ts-files-and-eslint-on-js-files-in-the-same-pr - 'prettier', - ], - plugins: ['svelte3', '@typescript-eslint'], + extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'], + plugins: ['@typescript-eslint'], ignorePatterns: ['*.cjs'], - overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }], - settings: { - 'svelte3/typescript': () => require('typescript'), - }, + overrides: [ + { + files: ['*.svelte'], + parser: 'svelte-eslint-parser', + // Parse the `