Skip to content

Commit

Permalink
update eslint-plugin-svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalpp committed May 4, 2024
1 parent 6751ee3 commit 56a7545
Show file tree
Hide file tree
Showing 3 changed files with 276 additions and 30 deletions.
19 changes: 12 additions & 7 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
module.exports = {
root: true,
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript'),
},
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
},
env: {
browser: true,
es2017: true,
node: true,
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
],
};
Loading

0 comments on commit 56a7545

Please sign in to comment.