Skip to content

Commit

Permalink
chore: upgrade prettier to version 9
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLMilner committed Dec 4, 2024
1 parent 3465007 commit 6d92f1c
Show file tree
Hide file tree
Showing 17 changed files with 563 additions and 585 deletions.
31 changes: 31 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import tsParser from "@typescript-eslint/parser";
import eslintPluginPrettier from "eslint-plugin-prettier";
import prettierConfig from "eslint-config-prettier";

export default [
{
name: "prettier", // Configuration name
files: ["**/*.{js,jsx,ts,tsx,json,md,yml,yaml,html,css}"],
plugins: {
prettier: eslintPluginPrettier, // Include Prettier plugin
},
rules: {
...prettierConfig.rules, // Disable ESLint rules that conflict with Prettier
},
},
{
name: "typescript", // Configuration name
files: ["**/*.ts"], // TypeScript-specific configuration
plugins: {
"@typescript-eslint": typescriptEslint, // Include TypeScript ESLint plugin
},
languageOptions: {
parser: tsParser,
},
rules: {
"@typescript-eslint/no-empty-function": "warn",
"@typescript-eslint/no-explicit-any": "warn",
},
},
];
Loading

0 comments on commit 6d92f1c

Please sign in to comment.