update: add lint script to package.json

* lint files
This commit is contained in:
Braks
2021-07-09 19:21:29 +02:00
parent 179b5c5d4d
commit 65332cfde3
5 changed files with 12 additions and 8 deletions
+4 -2
View File
@@ -20,8 +20,10 @@
"build": "vue-tsc --noEmit && vite build",
"build:dist": "rollup -c --environment NODE_ENV:production && postcss src/*.css --dir dist",
"serve": "vite preview",
"prepublishOnly": "yarn build:dist",
"test": "exit 0"
"prepublishOnly": "yarn lint && yarn build:dist",
"test": "exit 0",
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"lint": "yarn lint:js"
},
"dependencies": {
"d3": "^7.0.0",