From: Jérôme Benoit Date: Sun, 23 Apr 2023 20:50:57 +0000 (+0200) Subject: build(ui): use eslint-define-config X-Git-Tag: v1.2.12~99 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a0ede750688dddb78cebdb2f459f71001484128d;p=e-mobility-charging-stations-simulator.git build(ui): use eslint-define-config Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/.eslintrc.js b/ui/web/.eslintrc.js index e048f318..cb3df6e3 100644 --- a/ui/web/.eslintrc.js +++ b/ui/web/.eslintrc.js @@ -1,4 +1,6 @@ -module.exports = { +const { defineConfig } = require('eslint-define-config'); + +module.exports = defineConfig({ root: true, env: { @@ -31,4 +33,4 @@ module.exports = { }, }, ], -}; +}); diff --git a/ui/web/package.json b/ui/web/package.json index e6ebf0f1..4962615c 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -53,6 +53,7 @@ "@vue/tsconfig": "^0.3.1", "chai": "^4.3.7", "eslint": "^8.39.0", + "eslint-define-config": "^1.19.0", "eslint-plugin-vue": "^9.11.0", "prettier": "^2.8.8", "rimraf": "^5.0.0", diff --git a/ui/web/pnpm-lock.yaml b/ui/web/pnpm-lock.yaml index 1909976a..28ca1cf5 100644 --- a/ui/web/pnpm-lock.yaml +++ b/ui/web/pnpm-lock.yaml @@ -78,6 +78,9 @@ devDependencies: eslint: specifier: ^8.39.0 version: 8.39.0 + eslint-define-config: + specifier: ^1.19.0 + version: 1.19.0 eslint-plugin-vue: specifier: ^9.11.0 version: 9.11.0(eslint@8.39.0) @@ -5194,6 +5197,11 @@ packages: eslint: 8.39.0 dev: true + /eslint-define-config@1.19.0: + resolution: {integrity: sha512-kwny3BEyhJaG3ST1V9NwKzuFOkH3dfPIzoklJBZtu7DoEkuUkv5A254LhexJFZJeqfL27d3tsz/luAQf/wDbrQ==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0, npm: '>=6.14.13', pnpm: '>= 7.0.0'} + dev: true + /eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.39.0)(prettier@2.8.8): resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==} engines: {node: '>=12.0.0'}