-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
703becb
commit 1425a65
Showing
7 changed files
with
269 additions
and
201 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import eslint from "@eslint/js"; | ||
import tseslint from "typescript-eslint"; | ||
import prettier from "eslint-config-prettier"; | ||
import { includeIgnoreFile } from "@eslint/compat"; | ||
import path from "node:path"; | ||
import { fileURLToPath } from "node:url"; | ||
|
||
// @ts-expect-error ESM compat error | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const gitignorePath = path.resolve(__dirname, ".gitignore"); | ||
|
||
export default tseslint.config( | ||
includeIgnoreFile(gitignorePath), | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
prettier, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
"build": "rimraf dist && tsc -p tsconfig.build.json", | ||
"format": "prettier -w .", | ||
"format:check": "prettier -c .", | ||
"lint": "eslint --ignore-path .gitignore --max-warnings 0 .", | ||
"lint:fix": "pnpm run lint -- --fix", | ||
"lint": "eslint --max-warnings 0 .", | ||
"lint:fix": "pnpm run lint --fix", | ||
"prepublishOnly": "pnpm run build", | ||
"test": "nyc -r=lcov -r=text node --trace-warnings -r ts-node/register --test \"**/*.test.ts\"", | ||
"typecheck": "tsc" | ||
|
@@ -37,19 +37,22 @@ | |
"jest-diff": "^29.7.0" | ||
}, | ||
"devDependencies": { | ||
"@eslint/compat": "^1.1.1", | ||
"@eslint/js": "^9.9.1", | ||
"@types/body-parser": "^1.19.5", | ||
"@types/deep-equal": "^1.0.4", | ||
"@typescript-eslint/eslint-plugin": "^7.7.0", | ||
"@typescript-eslint/parser": "^7.7.0", | ||
"eslint": "^8.57.0", | ||
"@types/eslint-config-prettier": "^6.11.3", | ||
"@types/eslint__js": "^8.42.3", | ||
"eslint": "^9.9.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"get-port-please": "^3.1.2", | ||
"node-mocks-http": "^1.14.1", | ||
"nyc": "^15.1.0", | ||
"prettier": "^3.2.5", | ||
"rimraf": "^5.0.5", | ||
"node-mocks-http": "^1.15.1", | ||
"nyc": "^17.0.0", | ||
"prettier": "^3.3.3", | ||
"rimraf": "^5.0.10", | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.4.5" | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.2.0" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.