Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

86 changes: 0 additions & 86 deletions .github/linters/.eslintrc.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/linters/tsconfig.json

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ typings/
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

Expand Down
47 changes: 47 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "import", "vitest"],
"categories": {
"correctness": "error"
},
"env": {
"node": true,
"es2023": true
},
"rules": {
"no-var": "error",
"eqeqeq": "error",
"guard-for-in": "error",
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"typescript/no-explicit-any": "error",
"typescript/no-floating-promises": "error",
"typescript/array-type": "error",
"typescript/consistent-type-assertions": "error",
"typescript/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
],
"typescript/no-inferrable-types": "error",
"typescript/no-non-null-assertion": "warn",
"typescript/no-require-imports": "error",
"typescript/prefer-for-of": "warn",
"typescript/prefer-function-type": "warn",
"vitest/require-mock-type-parameters": "off"
},
"ignorePatterns": ["dist/", "coverage/", "node_modules/"]
}
18 changes: 5 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
"ci-test": "vitest run --coverage --reporter=verbose",
"format:write": "prettier --write .",
"format:check": "prettier --check .",
"lint": "eslint . -c ./.github/linters/.eslintrc.yml",
"package": "esbuild src/index.js src/post.js --bundle --outdir=dist --platform=node --target=node24",
"lint": "oxlint --type-aware",
"lint:fix": "oxlint --type-aware --fix",
"package": "esbuild ./src/index.ts ./src/post.ts --bundle --outdir=dist --platform=node --target=node24",
"package:watch": "yarn package --watch",
"test": "vitest run --coverage --reporter=verbose",
"all": "yarn format:write && yarn lint && yarn test && yarn package",
Expand All @@ -36,25 +37,16 @@
},
"devDependencies": {
"@types/node": "^20.5.6",
"@typescript-eslint/eslint-plugin": "^6.4.1",
"@typescript-eslint/parser": "^6.4.1",
"@vitest/coverage-v8": "^4.0.5",
"esbuild": "^0.28.1",
"eslint": "^8.48.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-github": "^4.9.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsonc": "^2.9.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vitest": "^0.5.4",
"husky": "^9.1.6",
"oxlint": "^1.81.0",
"oxlint-tsgolint": "^7.0.2001",
"prettier": "^3.0.2",
"prettier-eslint": "^15.0.1",
"typescript": "^5.2.2",
"vitest": "^4.1.11"
},
"resolutions": {
"@typescript-eslint/typescript-estree@npm:6.21.0/minimatch": "^9.0.7",
"fsevents": "npm:@electron/fsevents@2.3.3-fork"
},
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@ export async function run(): Promise<void> {
}
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
// oxlint-disable-next-line typescript/no-floating-promises
run();
2 changes: 1 addition & 1 deletion src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export async function post(): Promise<void> {
}
}

// eslint-disable-next-line @typescript-eslint/no-floating-promises
// oxlint-disable-next-line typescript/no-floating-promises
post();
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"module": "nodenext",
"rootDir": "./src",
"moduleResolution": "nodenext",
"baseUrl": "./",
"sourceMap": true,
"outDir": "./dist",
"noImplicitAny": true,
Expand Down
Loading