Skip to content

Commit

Permalink
eslint: Switch to eslint-plugin-svelte
Browse files Browse the repository at this point in the history
Even though it's the "official" svelte eslint plugin,
`eslint-plugin-svelte` has problems and is in the process of
deprecation:

* sveltejs/eslint-plugin-svelte3#134
* sveltejs/eslint-plugin-svelte3#184
  • Loading branch information
nikolas committed Sep 16, 2022
1 parent 8fedb9b commit 54d5f5d
Show file tree
Hide file tree
Showing 5 changed files with 272 additions and 55 deletions.
20 changes: 3 additions & 17 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,8 @@ module.exports = {
browser: true
},
extends: [
// TODO: turn this on
'plugin:svelte/recommended',
// TODO: enable these rules
// 'eslint:recommended'
],
plugins: [
'svelte3'
],
overrides: [
{
files: ['*.svelte'],
processor: 'svelte3/svelte3'
}
],
rules: {
// ...
},
settings: {
// ...
}
]
};
Loading

0 comments on commit 54d5f5d

Please sign in to comment.