-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade prettier to version 9
- Loading branch information
1 parent
3465007
commit 6d92f1c
Showing
17 changed files
with
563 additions
and
585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
}, | ||
}, | ||
]; |
Oops, something went wrong.