Explorar el Código

fix(webapp): `eslint` regression by #770

Not all files are processed by `eslint`.
Rotzbua hace 2 años
padre
commit
8e9f7b9631
Se han modificado 2 ficheros con 7 adiciones y 3 borrados
  1. 5 1
      www/webapp/.eslintrc.js
  2. 2 2
      www/webapp/package.json

+ 5 - 1
www/webapp/.eslintrc.js

@@ -6,7 +6,11 @@ module.exports = {
   env: {
     browser: true,
     node: true, // Can be removed after migration to vite.
-    es2022: true,
+    es2024: true,
+  },
+  parserOptions: {
+    ecmaVersion: 'latest',
+    sourceType: 'module',
   },
   extends: [
     'plugin:vue/essential',

+ 2 - 2
www/webapp/package.json

@@ -5,8 +5,8 @@
   "scripts": {
     "serve": "vue-cli-service serve",
     "build": "vue-cli-service build",
-    "lint": "eslint --ignore-path .gitignore --no-fix  src/",
-    "lint:fix": "eslint --ignore-path .gitignore --fix  src/"
+    "lint": "eslint --ignore-path .gitignore --no-fix src/**/*.{vue,js,json}",
+    "lint:fix": "eslint --ignore-path .gitignore --fix src/**/*.{vue,js,json}"
   },
   "dependencies": {
     "@fontsource/roboto": "^5.0.3",