Skip to content

Commit c64187e

Browse files
author
Esen Sagynov
committed
Migrated ESLint configuration file to the flat format.
Flat format is required since ESLint v9.
1 parent bc9ed64 commit c64187e

File tree

5 files changed

+34
-22
lines changed

5 files changed

+34
-22
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc

-16
This file was deleted.

eslint.config.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const eslint = require("@eslint/js");
2+
const globals = require("globals");
3+
const tseslint = require('typescript-eslint');
4+
5+
module.exports = [
6+
eslint.configs.recommended,
7+
...tseslint.configs.recommended,
8+
{
9+
languageOptions: {
10+
globals: {
11+
...globals.node,
12+
...globals.jest,
13+
}
14+
},
15+
rules: {
16+
"@typescript-eslint/no-var-requires": "off",
17+
}
18+
}
19+
];

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"devDependencies": {
3939
"@aws-sdk/client-secrets-manager": "^3.567.0",
4040
"@aws-sdk/client-ssm": "^3.567.0",
41+
"@eslint/js": "^9.1.1",
4142
"@types/jest": "^29.5.12",
4243
"@types/node": "^20.12.8",
4344
"@typescript-eslint/eslint-plugin": "^7.8.0",
@@ -51,7 +52,8 @@
5152
"prettier": "^3.2.5",
5253
"rimraf": "^5.0.5",
5354
"ts-jest": "^29.1.2",
54-
"typescript": "^5.4.5"
55+
"typescript": "^5.4.5",
56+
"typescript-eslint": "^7.8.0"
5557
},
5658
"publishConfig": {
5759
"access": "public"

yarn.lock

+12-3
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@
778778
minimatch "^3.1.2"
779779
strip-json-comments "^3.1.1"
780780

781-
781+
"@eslint/[email protected]", "@eslint/js@^9.1.1":
782782
version "9.1.1"
783783
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-9.1.1.tgz#eb0f82461d12779bbafc1b5045cde3143d350a8a"
784784
integrity sha512-5WoDz3Y19Bg2BnErkZTp0en+c/i9PvgFS7MBe1+m60HjFr0hrphlAGp4yzI7pxpt4xShln4ZyYp4neJm8hmOkQ==
@@ -1652,7 +1652,7 @@
16521652
dependencies:
16531653
"@types/yargs-parser" "*"
16541654

1655-
"@typescript-eslint/eslint-plugin@^7.8.0":
1655+
"@typescript-eslint/eslint-plugin@7.8.0", "@typescript-eslint/eslint-plugin@^7.8.0":
16561656
version "7.8.0"
16571657
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz#c78e309fe967cb4de05b85cdc876fb95f8e01b6f"
16581658
integrity sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg==
@@ -1669,7 +1669,7 @@
16691669
semver "^7.6.0"
16701670
ts-api-utils "^1.3.0"
16711671

1672-
"@typescript-eslint/parser@^7.8.0":
1672+
"@typescript-eslint/parser@7.8.0", "@typescript-eslint/parser@^7.8.0":
16731673
version "7.8.0"
16741674
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.8.0.tgz#1e1db30c8ab832caffee5f37e677dbcb9357ddc8"
16751675
integrity sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ==
@@ -3894,6 +3894,15 @@ type-fest@^0.11.0:
38943894
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.11.0.tgz#97abf0872310fed88a5c466b25681576145e33f1"
38953895
integrity sha512-OdjXJxnCN1AvyLSzeKIgXTXxV+99ZuXl3Hpo9XpJAv9MBcHrrJOQ5kV7ypXOuQie+AmWG25hLbiKdwYTifzcfQ==
38963896

3897+
typescript-eslint@^7.8.0:
3898+
version "7.8.0"
3899+
resolved "https://registry.yarnpkg.com/typescript-eslint/-/typescript-eslint-7.8.0.tgz#d2a73d4caac35d4d9825bfdfac06a9bf2ba175e4"
3900+
integrity sha512-sheFG+/D8N/L7gC3WT0Q8sB97Nm573Yfr+vZFzl/4nBdYcmviBPtwGSX9TJ7wpVg28ocerKVOt+k2eGmHzcgVA==
3901+
dependencies:
3902+
"@typescript-eslint/eslint-plugin" "7.8.0"
3903+
"@typescript-eslint/parser" "7.8.0"
3904+
"@typescript-eslint/utils" "7.8.0"
3905+
38973906
typescript@^5.4.5:
38983907
version "5.4.5"
38993908
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611"

0 commit comments

Comments
 (0)