Skip to content

Commit

Permalink
style: upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Mar 3, 2024
1 parent 563f9cb commit 30b05f0
Show file tree
Hide file tree
Showing 16 changed files with 4,982 additions and 3,602 deletions.
14 changes: 14 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// @ts-check

import eslint from "@eslint/js";
import prettier from "eslint-config-prettier";
import tseslint from "typescript-eslint";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
prettier,
{
ignores: ["dist/**.js", "lib/**.js"],
},
);
13 changes: 2 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240222.0",
"@eslint/js": "^8.57.0",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
Expand All @@ -50,6 +51,7 @@
"selflare": "^1.0.0",
"tsup": "8.0.2",
"typescript": "^5.3.3",
"typescript-eslint": "^7.1.0",
"vitest": "^1.3.1",
"wrangler": "^3.30.1"
},
Expand All @@ -62,17 +64,6 @@
},
"homepage": "https://github.com/JacobLinCool/LeetCode-Stats-Card#readme",
"packageManager": "[email protected]",
"eslintConfig": {
"root": true,
"extends": [
"typescript",
"prettier"
],
"ignorePatterns": [
"dist/**.js",
"lib/**.js"
]
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix",
Expand Down
Loading

0 comments on commit 30b05f0

Please sign in to comment.