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
This commit is contained in:
Sqrcz
2023-09-19 18:32:06 +02:00
committed by GitHub
parent e4720668ee
commit e749fd726c

View File

@@ -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",