-
-
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.
- Loading branch information
Showing
11 changed files
with
418 additions
and
406 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,29 +1,37 @@ | ||
import eslintPluginSvelte from 'eslint-plugin-svelte'; | ||
import eslint from '@eslint/js'; | ||
import prettier from 'eslint-config-prettier'; | ||
import svelte from 'eslint-plugin-svelte'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
import svelteParser from 'svelte-eslint-parser'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
|
||
export default tseslint.config( | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...eslintPluginSvelte.configs['flat/recommended'], | ||
...svelte.configs['flat/recommended'], | ||
prettier, | ||
...svelte.configs['flat/prettier'], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.svelte'], | ||
languageOptions: { | ||
parser: svelteParser, | ||
sourceType: 'module', | ||
ecmaVersion: 2022, | ||
parserOptions: { | ||
sourceType: 'module', | ||
ecmaVersion: 2022, | ||
parser: tsParser, | ||
parser: tseslint.parser, | ||
}, | ||
}, | ||
processor: 'svelte/svelte', | ||
}, | ||
{ | ||
ignores: ['build/', '.svelte-kit/', 'dist/'], | ||
}, | ||
{ | ||
rules: { | ||
'no-undef': 'off', | ||
'svelte/sort-attributes': 'warn', | ||
'@typescript-eslint/no-unused-expressions': 'off', | ||
}, | ||
} | ||
); |
Oops, something went wrong.