Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Frontend/.prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/*.svg
**/*.svg
**/mockServiceWorker.js
5 changes: 3 additions & 2 deletions src/Frontend/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"options": {
"singleQuote": true
}
}]
}
}
]
}
40 changes: 22 additions & 18 deletions src/Frontend/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@ import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import pluginPromise from "eslint-plugin-promise";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default tseslint.config({
ignores: ["/node_modules/**/*", "/dist/**/*", "/public/js/app.constants.js"],
files: ["**/*.{js,mjs,ts,vue}"],
languageOptions: { globals: globals.browser, ecmaVersion: "latest", parserOptions: { parser: tseslint.parser } },
extends: [pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs["flat/essential"], pluginPromise.configs["flat/recommended"], eslintPluginPrettierRecommended],
rules: {
"no-duplicate-imports": "error",
"promise/prefer-await-to-then": "error",
"require-await": "error",
"no-await-in-loop": "warn",
"prefer-rest-params": "error",
"prefer-spread": "error",
"no-var": "error",
"prefer-const": "error",
eqeqeq: ["error", "smart"],
"no-throw-literal": "warn",
export default tseslint.config(
{
ignores: ["node_modules/**", "dist/**", "public/js/app.constants.js"],
Comment on lines +9 to +10
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix for the hang!
There is this massive GitHub thread about it - eslint/eslint#18304

},
});
{
files: ["**/*.{js,mjs,ts,vue}"],
languageOptions: { globals: globals.browser, ecmaVersion: "latest", parserOptions: { parser: tseslint.parser } },
extends: [pluginJs.configs.recommended, ...tseslint.configs.recommended, ...pluginVue.configs["flat/essential"], pluginPromise.configs["flat/recommended"], eslintPluginPrettierRecommended],
rules: {
"no-duplicate-imports": "error",
"promise/prefer-await-to-then": "error",
"require-await": "error",
"no-await-in-loop": "warn",
"prefer-rest-params": "error",
"prefer-spread": "error",
"no-var": "error",
"prefer-const": "error",
eqeqeq: ["error", "smart"],
"no-throw-literal": "warn",
},
}
);
Loading
Loading