Skip to content

Commit

Permalink
[Snyk] Fix for 2 vulnerabilities (#1424)
Browse files Browse the repository at this point in the history
* fix: solution/ui/regulations/package.json & solution/ui/regulations/package-lock.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-INFLIGHT-6095116
- https://snyk.io/vuln/SNYK-JS-PATHTOREGEXP-7925106

* chore: upgrade versions to latest compatible and stable versions

* chore: use ESLint 9.0 flat config

* chore: update Prettier and add to updated ESLint

* chore: remove airbnb ESLint config

---------

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
Co-authored-by: Phil Reese <philr8@gmail.com>
  • Loading branch information
3 people authored Sep 23, 2024
1 parent 074d4f4 commit 0f454f5
Show file tree
Hide file tree
Showing 6 changed files with 540 additions and 768 deletions.
1 change: 0 additions & 1 deletion solution/ui/regulations/.eslintignore

This file was deleted.

40 changes: 0 additions & 40 deletions solution/ui/regulations/.eslintrc.json

This file was deleted.

34 changes: 34 additions & 0 deletions solution/ui/regulations/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// eslint.config.js
import pluginVue from "eslint-plugin-vue";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default [
...pluginVue.configs["flat/recommended"],
{
rules: {
eqeqeq: "off",
"import/no-unresolved": "off",
"import/first": "off",
"no-console": ["error", { allow: ["warn", "error"] }],
"no-nested-ternary": "off",
"prefer-template": "off",
"vue/html-indent": ["error", 4],
"vue/order-in-components": "off",
"vue/max-attributes-per-line": [
"error",
{
singleline: {
max: 2,
},
multiline: {
max: 1,
},
},
],
"vue/multi-word-component-names": "off",
"vue/no-multiple-template-root": "off",
"vue/no-v-html": "off",
},
},
eslintPluginPrettierRecommended,
];
2 changes: 1 addition & 1 deletion solution/ui/regulations/msw/mockServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* tslint:disable */

/**
* Mock Service Worker (1.3.3).
* Mock Service Worker (1.3.4).
* @see https://github.com/mswjs/msw
* - Please do NOT modify this file.
* - Please do NOT serve this file on production.
Expand Down
Loading

0 comments on commit 0f454f5

Please sign in to comment.