-
-
Save pxeger/d78281e835aedda94fd58c2b685e9fad to your computer and use it in GitHub Desktop.
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
// @ts-check | |
import js from "@eslint/js"; | |
import ts from "typescript-eslint"; | |
import svelte from "eslint-plugin-svelte"; | |
export default ts.config( | |
{ | |
ignores: ["build", ".svelte-kit", "package"], | |
}, | |
{ | |
linterOptions: { reportUnusedDisableDirectives: true }, | |
}, | |
js.configs.recommended, | |
{ | |
rules: { | |
"no-empty-pattern": ["error", { allowObjectPatternsAsParameters: true }], | |
}, | |
}, | |
...ts.configs.recommendedTypeChecked, | |
{ | |
languageOptions: { | |
parserOptions: { | |
project: true, | |
tsconfigRootDir: import.meta.dirname, | |
} | |
}, | |
rules: { | |
"@typescript-eslint/no-unused-vars": [ | |
"error", | |
{ | |
args: "all", | |
argsIgnorePattern: "^_", | |
caughtErrors: "all", | |
caughtErrorsIgnorePattern: "^_", | |
destructuredArrayIgnorePattern: "^_", | |
varsIgnorePattern: "^_", | |
ignoreRestSiblings: true, | |
}, | |
], | |
}, | |
}, | |
...svelte.configs["flat/recommended"], | |
...svelte.configs["flat/prettier"], | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
note:
package.json
contains these relevantdevDependencies
: