Skip to content

Commit 72851b2

Browse files
committed
chore: switching to OXLint & OXfmt
1 parent fffe3e9 commit 72851b2

5 files changed

Lines changed: 319 additions & 2076 deletions

File tree

.oxfmtrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxfmt/configuration_schema.json",
3+
"arrowParens": "always",
4+
"printWidth": 100,
5+
"quoteProps": "consistent",
6+
"semi": false,
7+
"singleQuote": true,
8+
"trailingComma": "es5",
9+
"useTabs": false,
10+
"ignorePatterns": ["**/package.json"]
11+
}

.oxlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript"]
4+
}

eslint.config.js

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

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
"benchmark:full": "node --import=@poppinss/ts-exec benchmark/run.ts --full",
2020
"build": "yarn clean && tsup-node",
2121
"clean": "del-cli build",
22-
"format": "prettier --write .",
23-
"lint": "eslint .",
22+
"lint": "oxlint",
23+
"lint:fix": "oxlint --fix",
24+
"format": "oxfmt --check .",
25+
"format:fix": "oxfmt --write .",
2426
"prepublishOnly": "yarn build",
2527
"release": "yarn dlx release-it",
2628
"test": "node --import=@poppinss/ts-exec --enable-source-maps bin/test.ts --reporters=dot",
@@ -33,8 +35,6 @@
3335
"cron-parser": "^5.4.0"
3436
},
3537
"devDependencies": {
36-
"@adonisjs/eslint-config": "^2.1.2",
37-
"@adonisjs/prettier-config": "^1.4.5",
3838
"@adonisjs/tsconfig": "^2.0.0-next.3",
3939
"@japa/assert": "^4.1.1",
4040
"@japa/expect-type": "^2.0.3",
@@ -48,13 +48,13 @@
4848
"bullmq": "^5.65.1",
4949
"c8": "^10.1.3",
5050
"del-cli": "^7.0.0",
51-
"eslint": "^9.35.0",
5251
"ioredis": "^5.7.0",
5352
"knex": "^3.1.0",
53+
"oxfmt": "^0.26.0",
54+
"oxlint": "^1.41.0",
55+
"oxlint-tsgolint": "^0.11.1",
5456
"pg": "^8.16.3",
55-
"prettier": "^3.6.2",
5657
"release-it": "^19.0.4",
57-
"testcontainers": "^11.5.1",
5858
"tsup": "^8.5.1",
5959
"typescript": "^5.9.2"
6060
},
@@ -79,7 +79,6 @@
7979
"worker",
8080
"redis"
8181
],
82-
"prettier": "@adonisjs/prettier-config",
8382
"publishConfig": {
8483
"access": "public",
8584
"tag": "latest"

0 commit comments

Comments
 (0)