Skip to content

Commit

Permalink
chore: add prettier support for eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Sep 11, 2024
1 parent 91bea97 commit a1cb40f
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 4 deletions.
10 changes: 6 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import tsEslint from "typescript-eslint";
import prettier from "eslint-plugin-prettier/recommended";


export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.browser }},
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...tsEslint.configs.recommended,
prettier
];
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
"@types/node": "^22.5.4",
"chatgpt-md-translator": "^1.7.1",
"eslint": "^9.10.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
Expand Down
67 changes: 67 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a1cb40f

Please sign in to comment.