From e749fd726c38f01cc368c4d6ad276892c1f96eb7 Mon Sep 17 00:00:00 2001 From: Sqrcz Date: Tue, 19 Sep 2023 18:32:06 +0200 Subject: [PATCH] fix: linting script (#201) - `npm run lint` was missing a directory to lint - added `.` as directory to lint - changed `src` to `.` in `npm run lint-fix` - added `.js` ext to linter . lints also files we have in root --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 38b15f7..3f17c41 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "build:package": "vite build", "build:types": "vue-tsc --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.json", "build:production": "npm run build:package && npm run build:types", - "lint": "eslint --ext .ts,.vue --ignore-path .gitignore", - "lint-fix": "eslint --ext .ts,.vue --ignore-path .gitignore --fix src", + "lint": "eslint . --ext .js,.ts,.vue --ignore-path .gitignore", + "lint-fix": "eslint . --fix --ext .js,.ts,.vue --ignore-path .gitignore", "clear": "rm -fr ./dist && rm -fr ./dist_types", "format": "prettier . --write", "test": "vitest",