build(ui): use eslint-define-config
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Apr 2023 20:50:57 +0000 (22:50 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 23 Apr 2023 20:50:57 +0000 (22:50 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
ui/web/.eslintrc.js
ui/web/package.json
ui/web/pnpm-lock.yaml

index e048f31854a26eb416dde9665f0b14cd61369e74..cb3df6e3af4ecd8c845b8375074d440014095b6f 100644 (file)
@@ -1,4 +1,6 @@
-module.exports = {
+const { defineConfig } = require('eslint-define-config');
+
+module.exports = defineConfig({
   root: true,
 
   env: {
@@ -31,4 +33,4 @@ module.exports = {
       },
     },
   ],
-};
+});
index e6ebf0f1aa26b501e2ed97d7172d2ba204be5634..4962615cd1ea8b2a547f46cf54a5661024a33549 100644 (file)
@@ -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",
index 1909976a27e3221f8bd41a31900e312441eac633..28ca1cf5ce81ed7cdd126df45636739be9203982 100644 (file)
@@ -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'}