From 9abed89b6e197ca320d527906242524817b211b8 Mon Sep 17 00:00:00 2001 From: BacLuc Date: Wed, 14 Aug 2024 00:05:38 +0200 Subject: [PATCH] pdf: fix migrate eslint config The . after the eslint command is important, else it lints nothing. Explicitly exclude the generated files, ignoring it via the .gitignored files did not work. Issue: #5282 --- pdf/eslint.config.mjs | 6 +++--- pdf/package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pdf/eslint.config.mjs b/pdf/eslint.config.mjs index 873d16ca72..f3a56433b8 100644 --- a/pdf/eslint.config.mjs +++ b/pdf/eslint.config.mjs @@ -22,6 +22,9 @@ export default [ 'plugin:prettier/recommended', '@vue/eslint-config-prettier' ), + { + ignores: ['dist/*.mjs'], + }, includeIgnoreFile(gitignorePath), @@ -36,9 +39,6 @@ export default [ ...globals.jest, }, - ecmaVersion: 5, - sourceType: 'commonjs', - parserOptions: { parser: '@babel/eslint-parser', }, diff --git a/pdf/package.json b/pdf/package.json index 375a846c09..8aa84fe518 100644 --- a/pdf/package.json +++ b/pdf/package.json @@ -10,10 +10,10 @@ "preview": "vite preview", "test:unit": "vitest --coverage", "lint": "npm run lint:eslint && npm run lint:prettier", - "lint:eslint": "eslint --fix", + "lint:eslint": "eslint --fix .", "lint:prettier": "prettier --write --ignore-path .prettierignore **/*.{css,scss,json,mjs}", "lint:check": "npm run lint:check:eslint && npm run lint:check:prettier", - "lint:check:eslint": "eslint", + "lint:check:eslint": "eslint .", "lint:check:prettier": "prettier --check --ignore-path .prettierignore **/*.{css,scss,json,mjs}" }, "dependencies": {