Skip to content

Commit f60ef22

Browse files
authored
Bump Eslint to v9 in JS client (#64)
1 parent 2b1126d commit f60ef22

File tree

5 files changed

+2775
-318
lines changed

5 files changed

+2775
-318
lines changed

clients/js/.eslintrc.cjs

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

clients/js/eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import solanaConfig from '@solana/eslint-config-solana';
2+
import { defineConfig } from 'eslint/config';
3+
4+
export default defineConfig([
5+
{ ignores: ['**/dist/**'] },
6+
{ files: ['**/*.ts', '**/*.(c|m)?js'], extends: [solanaConfig] },
7+
{
8+
languageOptions: { parserOptions: { project: null } },
9+
rules: {
10+
'@typescript-eslint/ban-types': 'off',
11+
'@typescript-eslint/sort-type-constituents': 'off',
12+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
13+
'@typescript-eslint/no-empty-object-type': 'off',
14+
'prefer-destructuring': 'off',
15+
'simple-import-sort/imports': 'off',
16+
'sort-keys-fix/sort-keys-fix': 'off',
17+
'typescript-sort-keys/interface': 'off',
18+
},
19+
},
20+
]);

clients/js/package.json

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
2323
"build:docs": "typedoc",
2424
"test": "ava",
25-
"lint": "eslint --ext js,ts,tsx src",
26-
"lint:fix": "eslint --fix --ext js,ts,tsx src",
25+
"lint": "eslint src",
26+
"lint:fix": "eslint --fix src",
2727
"format": "prettier --check src test",
2828
"format:fix": "prettier --write src test",
2929
"prepublishOnly": "pnpm build"
@@ -46,17 +46,15 @@
4646
},
4747
"devDependencies": {
4848
"@ava/typescript": "^4.1.0",
49-
"@solana/eslint-config-solana": "^3.0.3",
49+
"@solana/eslint-config-solana": "^5.0.0",
5050
"@solana/kit": "^5.0",
5151
"@types/node": "^24",
52-
"@typescript-eslint/eslint-plugin": "^7.16.1",
53-
"@typescript-eslint/parser": "^7.16.1",
5452
"ava": "^6.1.3",
55-
"eslint": "^8.57.0",
53+
"eslint": "^9.35.0",
5654
"prettier": "^3.7.4",
57-
"rimraf": "^5.0.5",
55+
"rimraf": "^6.1.2",
5856
"tsup": "^8.1.2",
59-
"typedoc": "^0.25.12",
57+
"typedoc": "^0.28.15",
6058
"typescript": "^5.5.3"
6159
},
6260
"ava": {
@@ -69,6 +67,5 @@
6967
"test/": "dist/test/"
7068
}
7169
}
72-
},
73-
"packageManager": "[email protected]"
70+
}
7471
}

0 commit comments

Comments
 (0)