Skip to content

Commit a442541

Browse files
clankmaxxing-clodjoncinqueclaude
authored
Convert type-length-value-js to oxlint and oxfmt (#200)
Replaces ESLint + Prettier with oxlint and oxfmt for the type-length-value-js package. Co-authored-by: Jon <jon@anza.xyz> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 31dceb2 commit a442541

5 files changed

Lines changed: 459 additions & 699 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
23
"semi": true,
34
"singleQuote": true,
45
"trailingComma": "es5",
56
"useTabs": false,
67
"tabWidth": 4,
78
"arrowParens": "always",
8-
"printWidth": 80
9+
"printWidth": 80,
10+
"sortPackageJson": false,
11+
"ignorePatterns": []
912
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "oxc", "import"],
4+
"categories": {
5+
"correctness": "error"
6+
},
7+
"rules": {
8+
"typescript/ban-ts-comment": "off",
9+
"typescript/no-explicit-any": "off",
10+
"typescript/no-unused-vars": "off",
11+
"no-unused-vars": "off",
12+
"typescript/no-empty-object-type": "off",
13+
"typescript/consistent-type-imports": "error",
14+
"import/extensions": ["error", "ignorePackages"]
15+
},
16+
"ignorePatterns": ["dist", "docs", "lib", "test-ledger"],
17+
"overrides": [
18+
{
19+
"files": ["examples/**/*", "test/**/*"],
20+
"rules": {
21+
"import/extensions": "off"
22+
}
23+
}
24+
]
25+
}

type-length-value-js/eslint.config.mjs

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

type-length-value-js/package.json

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"deploy": "npm run deploy:docs",
3434
"deploy:docs": "npm run docs && gh-pages --dest type-length-value/js --dist docs --dotfiles",
3535
"docs": "shx rm -rf docs && typedoc && shx cp .nojekyll docs/",
36-
"format": "prettier --check src test",
37-
"format:fix": "prettier --write src test",
38-
"lint": "eslint --max-warnings 0 src test",
39-
"lint:fix": "eslint --fix src test",
36+
"format": "oxfmt --check src test",
37+
"format:fix": "oxfmt --write src test",
38+
"lint": "oxlint --max-warnings 0",
39+
"lint:fix": "oxlint --fix",
4040
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > lib/cjs/package.json",
4141
"reinstall": "npm run nuke && npm install",
4242
"release": "npm run clean && npm run build",
@@ -48,22 +48,17 @@
4848
"buffer": "^6.0.3"
4949
},
5050
"devDependencies": {
51-
"@eslint/eslintrc": "^3.3.1",
52-
"@eslint/js": "^9.24.0",
53-
"@solana/prettier-config-solana": "^0.0.5",
5451
"@types/chai": "^5.0.1",
5552
"@types/mocha": "^10.0.10",
5653
"@types/node": "^22.10.2",
5754
"chai": "^5.1.2",
58-
"eslint": "^9.24.0",
59-
"eslint-plugin-import-extensions": "^0.1.5",
6055
"gh-pages": "^6.2.0",
6156
"mocha": "^11.0.1",
62-
"prettier": "^3.4.2",
57+
"oxfmt": "^0.60.0",
58+
"oxlint": "^1.75.0",
6359
"shx": "^0.3.4",
6460
"ts-node": "^10.9.2",
6561
"typedoc": "^0.27.4",
66-
"typescript": "^5.8.3",
67-
"typescript-eslint": "^8.30.0"
62+
"typescript": "^5.8.3"
6863
}
6964
}

0 commit comments

Comments
 (0)