Skip to content
Open
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
5 changes: 0 additions & 5 deletions clients/js-legacy/.eslintignore

This file was deleted.

34 changes: 0 additions & 34 deletions clients/js-legacy/.eslintrc

This file was deleted.

14 changes: 14 additions & 0 deletions clients/js-legacy/.oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"arrowParens": "avoid",
"bracketSameLine": false,
"bracketSpacing": true,
"jsxSingleQuote": false,
"printWidth": 120,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"tabWidth": 4,
"useTabs": false,
"sortPackageJson": false,
"ignorePatterns": []
}
25 changes: 25 additions & 0 deletions clients/js-legacy/.oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "unicorn", "oxc", "import"],
"categories": {
"correctness": "error"
},
"rules": {
"typescript/ban-ts-comment": "off",
"typescript/no-explicit-any": "off",
"typescript/no-unused-vars": "off",
"no-unused-vars": "off",
"typescript/no-empty-object-type": "off",
"typescript/consistent-type-imports": "error",
"import/extensions": ["error", "ignorePackages"]
},
"ignorePatterns": ["dist", "docs", "lib", "test-ledger"],
"overrides": [
{
"files": ["examples/**/*", "test/**/*"],
"rules": {
"import/extensions": "off"
}
}
]
}
21 changes: 7 additions & 14 deletions clients/js-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
"deploy": "npm run deploy:docs",
"deploy:docs": "npm run docs && gh-pages --dest token-group/js --dist docs --dotfiles",
"docs": "shx rm -rf docs && typedoc && shx cp .nojekyll docs/",
"lint": "eslint --max-warnings 0 .",
"lint:fix": "eslint --fix .",
"format": "prettier --check src test",
"format:fix": "prettier --write src test",
"lint": "oxlint --max-warnings 0",
"lint:fix": "oxlint --fix",
"format": "oxfmt --check src test",
"format:fix": "oxfmt --write src test",
"nuke": "shx rm -rf node_modules package-lock.json || true",
"postbuild": "shx echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"reinstall": "npm run nuke && npm install",
Expand All @@ -52,27 +52,20 @@
"@solana/codecs": "7.0.0"
},
"devDependencies": {
"@solana/prettier-config-solana": "0.0.7",
"@solana/spl-type-length-value": "0.2.0",
"@solana/web3.js": "^1.95.5",
"@types/chai": "^5.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "^26.0.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"chai": "^6.2.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-require-extensions": "^0.1.1",
"gh-pages": "^6.2.0",
"mocha": "^11.0.1",
"prettier": "^3.4.2",
"oxfmt": "^0.60.0",
"oxlint": "^1.75.0",
"shx": "^0.4.0",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typedoc": "^0.28.19",
"typescript": "^6.0.3"
},
"prettier": "@solana/prettier-config-solana"
}
}
Loading