Skip to content

Commit

Permalink
better eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
shahata committed Feb 9, 2025
1 parent 58353e3 commit a207f80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import globals from "globals";
import eslint from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import typescript from "typescript-eslint";
import tseslint from "typescript-eslint";
import prettier from "eslint-plugin-prettier/recommended";

export default [
export default tseslint.config(
eslint.configs.recommended,
vitest.configs.recommended,
...typescript.configs.recommended,
tseslint.configs.recommended,
prettier,
{ languageOptions: { globals: globals.browser } },
{ rules: { "prefer-template": "error" } },
];
);

0 comments on commit a207f80

Please sign in to comment.