Skip to content

Commit

Permalink
infra: Add type-safety to ESLint config (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
WarningImHack3r authored Oct 24, 2023
1 parent 6fbcf96 commit 01346d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
/** @type {import("eslint").Linter.Config} */
const config = {
root: true,
parser: "@typescript-eslint/parser",
extends: [
Expand All @@ -8,7 +9,6 @@ module.exports = {
"prettier"
],
plugins: ["@typescript-eslint"],
ignorePatterns: ["*.cjs"],
overrides: [
{
files: ["*.svelte"],
Expand All @@ -29,3 +29,5 @@ module.exports = {
node: true
}
};

module.exports = config;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/kit": "^1.27.0",
"@total-typescript/ts-reset": "^0.5.1",
"@types/eslint": "^8.44.6",
"@types/node": "^20.8.8",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01346d3

Please sign in to comment.