Skip to content

Commit

Permalink
chore: upgrade eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Oct 14, 2024
1 parent 23e6e2e commit a97498e
Show file tree
Hide file tree
Showing 7 changed files with 517 additions and 600 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ updates:
- dependency-name: "@types/node"
update-types:
- "version-update:semver-major"
- dependency-name: "eslint"
update-types:
- "version-update:semver-major"

- package-ecosystem: github-actions
directory: "/"
Expand Down
1 change: 0 additions & 1 deletion .prettierrc

This file was deleted.

8 changes: 8 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import tseslint from "typescript-eslint";

import sharedConfig from "@nihalgonsalves/esconfig/eslint.config.shared.js";

export default tseslint.config(
{ ignores: ["eslint.config.js", "build/**/*"] },
...sharedConfig,
);
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,24 @@
"type": "module",
"author": "",
"license": "",
"packageManager": "yarn@4.1.1+sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781",
"packageManager": "yarn@4.5.0+sha512.837566d24eec14ec0f5f1411adb544e892b3454255e61fdef8fd05f3429480102806bac7446bc9daff3896b01ae4b62d00096c7e989f1596f2af10b927532f39",
"scripts": {
"dev": "ts-node-dev src/index.ts",
"dev": "tsx src/index.ts",
"start": "NODE_ENV=production node build/index.js",
"build": "tsc",
"test": "exit 0",
"lint": "eslint --ext .js,.jsx,.ts,.tsx ./src/",
"lint": "eslint",
"format": "prettier . --write",
"format:check": "prettier . --check"
},
"devDependencies": {
"@nihalgonsalves/esconfig": "^0.10.11",
"@nihalgonsalves/esconfig": "^0.10.12",
"@types/node": "20",
"eslint": "^8.57.0",
"eslint": "^9.12.0",
"lefthook": "^1.7.18",
"prettier": "^3.3.3",
"ts-node-dev": "^2.0.0",
"typescript": "^5.6.3"
"tsx": "^4.19.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.9.0"
}
}
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
// eslint-disable-next-line no-console
console.log("🚀");
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@nihalgonsalves/esconfig",
"extends": "@nihalgonsalves/esconfig/tsconfig.shared.json",
"compilerOptions": {
"outDir": "./build",
"rootDir": "./src"
Expand Down
Loading

0 comments on commit a97498e

Please sign in to comment.