chore: lint ts def files after build

This commit is contained in:
Braks
2022-04-04 21:42:48 +02:00
parent 7aea432ff7
commit 9539d7f263
4 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
"serve": "vite serve" "serve": "vite serve"
}, },
"dependencies": { "dependencies": {
"@braks/vue-flow": "workspace:*" "@braks/vue-flow": "^0.4.0-17"
}, },
"devDependencies": { "devDependencies": {
"@types/dagre": "^0.7.46", "@types/dagre": "^0.7.46",
-6
View File
@@ -21,13 +21,7 @@
"types": [ "types": [
"vite/client" "vite/client"
], ],
"paths": {
"~/*": [
"src/*"
]
}
}, },
"include": ["src", "server"],
"exclude": [ "exclude": [
"node_modules", "node_modules",
"dist" "dist"
+6
View File
@@ -0,0 +1,6 @@
module.exports = {
rules: {
'no-use-before-define': 0,
},
extends: ['../.eslintrc.js'],
}
+6 -7
View File
@@ -22,15 +22,14 @@
], ],
"sideEffects": false, "sideEffects": false,
"scripts": { "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", "build": "vite build && vue-tsc --declaration --emitDeclarationOnly && tsc -p tsconfig.build.json && yarn theme",
"postbuild": "shx rm -rf tmp", "postbuild": "shx rm -rf tmp && yarn lint",
"prepublishOnly": "yarn build",
"postpublish": "shx rm README.md",
"test": "yarn --cwd .. test", "test": "yarn --cwd .. test",
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .", "lint": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
"theme": "postcss src/theme-default.css -o dist/theme-default.css" "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": { "dependencies": {
"@braks/revue-draggable": "^0.4.2", "@braks/revue-draggable": "^0.4.2",