Skip to content

Commit

Permalink
chore: 🤖 move towards TypeScript eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Nov 1, 2024
1 parent d5ee3ce commit 0bed45d
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .lefthook.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": {
"lint": {
"glob": "*.ts",
"run": "pnpm exec eslint --fix {staged_files}",
"run": "pnpm exec eslint --flag unstable_ts_config --fix {staged_files}",
"stage_fixed": true
},
"format": {
Expand Down
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.experimental.useFlatConfig": true
"eslint.useFlatConfig": true,
"eslint.validate": ["javascript", "typescript"],
"eslint.options": {
"flags": ["unstable_ts_config"]
}
}
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"esbuild",
"gitzy",
"gruntfuggly",
"jiti",
"lcov",
"lefthook",
"nvmrc",
Expand Down
4 changes: 0 additions & 4 deletions eslint.config.js

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import jimmyDotCodes from "@jimmy.codes/eslint-config";

export default jimmyDotCodes();
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dev": "pkgroll --watch",
"format": "prettier --check --cache .",
"format:fix": "prettier --write --cache .",
"lint": "eslint --cache --cache-location node_modules/.cache/eslint --color .",
"lint": "eslint --flag unstable_ts_config --cache --cache-location node_modules/.cache/eslint --color .",
"lint:fix": "pnpm lint --fix",
"test": "vitest",
"coverage": "vitest run --coverage",
Expand All @@ -56,6 +56,7 @@
"eslint": "9.14.0",
"gitzy": "5.5.0",
"is-ci": "3.0.1",
"jiti": "2.4.0",
"lefthook": "1.8.2",
"pkgroll": "2.5.1",
"prettier": "3.3.3",
Expand Down
207 changes: 108 additions & 99 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit 0bed45d

Please sign in to comment.