From a0ede750688dddb78cebdb2f459f71001484128d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 23 Apr 2023 22:50:57 +0200 Subject: [PATCH] build(ui): use eslint-define-config MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/.eslintrc.js | 6 ++++-- ui/web/package.json | 1 + ui/web/pnpm-lock.yaml | 8 ++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) 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'} -- 2.34.1