Skip to content

Commit e587673

Browse files
committed
Upgrade & reconfigure ESLint
1 parent 2c73619 commit e587673

File tree

5 files changed

+266
-264
lines changed

5 files changed

+266
-264
lines changed

.eslintignore

-3
This file was deleted.

.eslintrc

-17
This file was deleted.

eslint.config.mjs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import eslintConfigPrettier from 'eslint-config-prettier';
5+
6+
/** @type {import('eslint').Linter.Config[]} */
7+
export default [
8+
{ files: ['**/*.{js,mjs,cjs,ts}'] },
9+
{ languageOptions: { globals: globals.browser } },
10+
pluginJs.configs.recommended,
11+
...tseslint.configs.recommended,
12+
eslintConfigPrettier,
13+
{
14+
ignores: ['node_modules/**/*.*', 'lib/**/*.*', 'tests'],
15+
},
16+
];

package.json

+6-4
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,20 @@
4343
"@aws-sdk/s3-request-presigner": "^3.709.0"
4444
},
4545
"devDependencies": {
46+
"@eslint/js": "^9.16.0",
4647
"@tsconfig/recommended": "^1.0.8",
4748
"@types/jest": "^29.5.14",
4849
"@types/node": "^22.10.1",
49-
"@typescript-eslint/eslint-plugin": "^7.18.0",
50-
"@typescript-eslint/parser": "^7.18.0",
5150
"dotenv": "^16.4.7",
52-
"eslint": "^8.57.1",
51+
"eslint": "^9.16.0",
5352
"eslint-config-prettier": "^9.1.0",
53+
"globals": "^15.13.0",
5454
"jest": "^29.7.0",
5555
"prettier": "^3.4.2",
5656
"rimraf": "^6.0.1",
5757
"ts-jest": "^29.2.5",
58-
"typescript": "^5.7.2"
58+
"typescript": "^5.7.2",
59+
"typescript-eslint": "^8.18.0"
5960
}
6061
}
62+

0 commit comments

Comments
 (0)