Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions eslint.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ export default tseslint.config(
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/only-throw-error": "off",
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what enforces the preference for type.

"@typescript-eslint/no-unused-vars": [
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like having this rule around to mark unused things without eslint yelling at you, especially in array destructuring where the syntax would otherwise be [, something,]

"error",
{
args: "all",
argsIgnorePattern: "^_",
caughtErrors: "all",
caughtErrorsIgnorePattern: "^_",
destructuredArrayIgnorePattern: "^_",
varsIgnorePattern: "^_",
ignoreRestSiblings: true,
},
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{ allowNumber: true },
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
"dts": true
},
"dependencies": {
"@types/parsimmon": "^1.10.9",
"parsimmon": "^1.18.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@eslint/js": "^9.39.1",
"@types/node": "^24.10.1",
"@types/parsimmon": "^1.10.9",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been in devdeps from the beginning - we don't need this as a part of the exported deps.

"@typescript-eslint/parser": "^8.48.1",
"eslint": "^9.39.1",
"eslint-import-resolver-typescript": "^4.4.4",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

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

Loading
Loading