Skip to content

Commit 1a10cbe

Browse files
committed
Re enabled prettier with eslint
The cause was that the ignore in the eslint config were misconfigured and therefore it was scanning node_modules
1 parent 0cf06f2 commit 1a10cbe

File tree

3 files changed

+102
-1
lines changed

3 files changed

+102
-1
lines changed

src/Frontend/eslint.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import pluginJs from "@eslint/js";
33
import tseslint from "typescript-eslint";
44
import pluginVue from "eslint-plugin-vue";
55
import pluginPromise from "eslint-plugin-promise";
6+
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
67

78
export default tseslint.config(
89
{
@@ -11,7 +12,7 @@ export default tseslint.config(
1112
{
1213
files: ["**/*.{js,mjs,ts,vue}"],
1314
languageOptions: { globals: globals.browser, ecmaVersion: "latest", parserOptions: { parser: tseslint.parser } },
14-
extends: [pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs["flat/essential"], pluginPromise.configs["flat/recommended"]],
15+
extends: [pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs["flat/essential"], pluginPromise.configs["flat/recommended"], eslintPluginPrettierRecommended],
1516
rules: {
1617
"no-duplicate-imports": "error",
1718
"promise/prefer-await-to-then": "error",

src/Frontend/package-lock.json

Lines changed: 98 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Frontend/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
"@vue/tsconfig": "^0.8.1",
6565
"cross-env": "^10.0.0",
6666
"eslint": "^9.33.0",
67+
"eslint-config-prettier": "^10.1.8",
68+
"eslint-plugin-prettier": "^5.5.4",
6769
"eslint-plugin-promise": "^7.2.1",
6870
"eslint-plugin-vue": "^10.4.0",
6971
"flush-promises": "^1.0.2",

0 commit comments

Comments
 (0)