-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update eslint to v9, related deps, config
- Loading branch information
1 parent
614b641
commit a99ef94
Showing
5 changed files
with
379 additions
and
306 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import js from '@eslint/js'; | ||
import eslintPluginSvelte from 'eslint-plugin-svelte'; | ||
import * as svelteParser from 'svelte-eslint-parser'; | ||
import * as typescriptParser from '@typescript-eslint/parser'; | ||
|
||
export default [ | ||
js.configs.recommended, | ||
...eslintPluginSvelte.configs.recommended, | ||
{ | ||
files: ['**/*.svelte'], | ||
languageOptions: { | ||
parser: svelteParser, | ||
parserOptions: { | ||
parser: typescriptParser, | ||
project: './tsconfig.json', | ||
extraFileExtensions: ['.svelte'] | ||
} | ||
} | ||
}, | ||
{ | ||
ignores: ['.netlify', '.svelte-kit', 'static', 'build'] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.