-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Svead head component Added links to Svead, the Svelte head component for adding head metadata to your project pages * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * add Svead to readme and make screenshots * update eslint commit hook and migrate to flat config * skip eslint in ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information
1 parent
d896f16
commit 54d2791
Showing
13 changed files
with
122 additions
and
54 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
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
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,32 @@ | ||
import svelte from 'eslint-plugin-svelte' | ||
import tslint from 'typescript-eslint' | ||
|
||
/** @type { import("eslint").Linter.FlatConfig[] } */ | ||
export default [ | ||
...tslint.configs.recommended, | ||
...svelte.configs[`flat/recommended`], | ||
{ | ||
rules: { | ||
'@typescript-eslint/no-unused-vars': [ | ||
`error`, | ||
{ argsIgnorePattern: `^_`, varsIgnorePattern: `^_` }, | ||
], | ||
'@typescript-eslint/quotes': [`error`, `backtick`, { avoidEscape: true }], | ||
'svelte/no-at-html-tags': `off`, | ||
}, | ||
}, | ||
{ | ||
languageOptions: { ecmaVersion: 2020 }, | ||
}, | ||
{ | ||
files: [`**/*.svelte`], | ||
languageOptions: { | ||
parserOptions: { | ||
parser: tslint.parser, | ||
}, | ||
}, | ||
}, | ||
{ | ||
ignores: [`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
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
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
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
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
Binary file not shown.
Binary file not shown.
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
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