Skip to content

Commit 4ff3de1

Browse files
fix: adjust eslint configuration to latest recommended
1 parent 5a85dd6 commit 4ff3de1

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

eslint.config.mjs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
// @ts-check
2-
import tsEslint from "typescript-eslint";
32
import eslint from "@eslint/js";
43
import sonarjs from "eslint-plugin-sonarjs";
54
import checkFile from "eslint-plugin-check-file";
5+
import { defineConfig } from "eslint/config";
6+
import tsEslint from "typescript-eslint";
67

7-
export default tsEslint.config([
8+
export default defineConfig(
9+
eslint.configs.recommended,
10+
tsEslint.configs.recommended,
11+
sonarjs.configs.recommended,
812
{ ignores: [".github/knip.ts", "dist/", ".wrangler/**", "coverage/**"] },
913
{
1014
plugins: {
1115
"@typescript-eslint": tsEslint.plugin,
1216
"check-file": checkFile,
1317
},
14-
extends: [eslint.configs.recommended, ...tsEslint.configs.recommended, sonarjs.configs.recommended],
1518
languageOptions: {
1619
parser: tsEslint.parser,
1720
parserOptions: {
@@ -142,5 +145,5 @@ export default tsEslint.config([
142145
},
143146
],
144147
},
145-
},
146-
]);
148+
}
149+
);

0 commit comments

Comments
 (0)