chore: lint ts def files after build

This commit is contained in:
Braks
2022-03-29 19:09:41 +02:00
parent 7aea432ff7
commit 9539d7f263
4 changed files with 13 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
"serve": "vite serve"
},
"dependencies": {
"@braks/vue-flow": "workspace:*"
"@braks/vue-flow": "^0.4.0-17"
},
"devDependencies": {
"@types/dagre": "^0.7.46",

View File

@@ -21,13 +21,7 @@
"types": [
"vite/client"
],
"paths": {
"~/*": [
"src/*"
]
}
},
"include": ["src", "server"],
"exclude": [
"node_modules",
"dist"

6
package/.eslintrc.js Normal file
View File

@@ -0,0 +1,6 @@
module.exports = {
rules: {
'no-use-before-define': 0,
},
extends: ['../.eslintrc.js'],
}

View File

@@ -22,15 +22,14 @@
],
"sideEffects": false,
"scripts": {
"prepare": "ts-patch install -s",
"prebuild": "shx cp ../README.md .",
"build": "vite build && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && yarn theme",
"postbuild": "shx rm -rf tmp",
"prepublishOnly": "yarn build",
"postpublish": "shx rm README.md",
"postbuild": "shx rm -rf tmp && yarn lint",
"test": "yarn --cwd .. test",
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
"theme": "postcss src/theme-default.css -o dist/theme-default.css"
"lint": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
"theme": "postcss src/theme-default.css -o dist/theme-default.css",
"prepare": "ts-patch install -s",
"prepublishOnly": "shx cp ../README.md . && yarn build",
"postpublish": "shx rm README.md"
},
"dependencies": {
"@braks/revue-draggable": "^0.4.2",