Skip to content

Commit 2c4e72f

Browse files
committed
build: oxc.rs linting
1 parent 649f9d1 commit 2c4e72f

File tree

7 files changed

+526
-866
lines changed

7 files changed

+526
-866
lines changed

.oxfmtrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"printWidth": 100,
6+
"sortPackageJson": false,
7+
"ignorePatterns": ["*.md", "*.yml"]
8+
}

.oxlintrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"options": {
4+
"typeAware": true
5+
},
6+
"env": {
7+
"builtin": true,
8+
"commonjs": true
9+
}
10+
}

.prettierrc.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,31 @@
1414
"ms": "^2.1.1"
1515
},
1616
"devDependencies": {
17-
"@eslint/js": "^9.15.0",
1817
"@types/github-url-to-object": "^4.0.1",
1918
"@types/jest": "^29.5.14",
2019
"@types/ms": "^0.7.31",
2120
"@types/node": "^22.10.1",
2221
"electron": "^39.8.4",
23-
"eslint": "^9.15.0",
24-
"eslint-config-prettier": "^9.1.0",
25-
"globals": "^15.13.0",
2622
"husky": "^9.1.7",
2723
"jest": "^29.0.0",
2824
"lint-staged": "^16.4.0",
29-
"prettier": "^3.0.3",
30-
"ts-jest": "^29.2.5",
31-
"typescript": "^5.7.2",
32-
"typescript-eslint": "^8.16.0"
25+
"oxfmt": "^0.42.0",
26+
"oxlint": "^1.57.0",
27+
"oxlint-tsgolint": "^0.18.1",
28+
"ts-jest": "^29.2.5"
3329
},
3430
"scripts": {
3531
"build": "tsc",
36-
"lint": "eslint src test && prettier '**/*.{ts,js,mts,mjs,cjs,cts}' --check",
32+
"lint": "oxlint && oxfmt --check .",
3733
"prepack": "yarn build",
3834
"prepare": "husky",
3935
"test": "jest",
4036
"watch": "jest --watch --notify --notifyMode=change --coverage"
4137
},
4238
"lint-staged": {
4339
"*.{js,ts,cjs,cts,mjs,mts}": [
44-
"eslint --cache --fix",
45-
"prettier --write"
40+
"oxlint --fix",
41+
"oxfmt"
4642
]
4743
},
4844
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"

tsconfig.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,15 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "es2017",
5-
"lib": [
6-
"es2017",
7-
"dom"
8-
],
5+
"lib": ["es2017", "dom"],
96
"sourceMap": true,
107
"strict": true,
118
"outDir": "dist",
12-
"types": [
13-
"node",
14-
"jest"
15-
],
9+
"types": ["node", "jest"],
1610
"allowSyntheticDefaultImports": true,
1711
"esModuleInterop": true,
1812
"moduleResolution": "node",
1913
"declaration": true
2014
},
21-
"include": [
22-
"src"
23-
]
15+
"include": ["src"]
2416
}

0 commit comments

Comments
 (0)