Skip to content

Commit 6891d52

Browse files
committed
chore(eslint): use tseslint flat config
1 parent ffc626e commit 6891d52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

eslint.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import globals from "globals";
22
import eslintPluginJs from "@eslint/js";
33
import eslintConfigPrettier from "eslint-config-prettier";
44
import stylisticEslintPlugin from "@stylistic/eslint-plugin";
5-
import tseslint from 'typescript-eslint';
5+
import tseslint from "typescript-eslint";
66

77
const stylisticFormattingRules = {
88
"@stylistic/no-trailing-spaces": ["error", { skipBlankLines: false, ignoreComments: true }],
@@ -40,7 +40,7 @@ const eslintCodeQualityRules = {
4040
* @see https://eslint.org/docs/latest/use/configure
4141
* @type {import('eslint').Linter.Config[]}
4242
*/
43-
export default [
43+
export default tseslint.config(
4444
eslintPluginJs.configs.recommended,
4545
tseslint.configs.recommended,
4646
eslintConfigPrettier,
@@ -57,4 +57,4 @@ export default [
5757
https://github.com/eslint/eslint/discussions/18304#discussioncomment-9069706
5858
*/
5959
{ ignores: ["**/node_modules/", "**/.git/", "**/logs/", "**/dist/", "**/sandbox/"] },
60-
];
60+
);

0 commit comments

Comments
 (0)