feat(tooling): add eslint-config to tooling pkgs
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
module.exports = {
|
||||
rules: {
|
||||
'no-console': 'error',
|
||||
'no-use-before-define': 0,
|
||||
'vue/no-setup-props-destructure': 0,
|
||||
'react/prop-types': 0,
|
||||
},
|
||||
extends: ['../../.eslintrc.js'],
|
||||
ignorePatterns: ['!**/*'],
|
||||
extends: ['@vue-flow/eslint-config'],
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && tsc -p ./tsconfig.build.json && shx rm -rf tmp && pnpm lint:dist && pnpm run patch",
|
||||
"patch": "node patch/slots.js",
|
||||
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path ../../.gitignore .",
|
||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .",
|
||||
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||
"prepublishOnly": "shx cp ../../README.md .",
|
||||
"postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"",
|
||||
@@ -47,6 +47,7 @@
|
||||
"devDependencies": {
|
||||
"@rollup/plugin-replace": "^5.0.2",
|
||||
"@types/d3": "^7.4.0",
|
||||
"@vue-flow/eslint-config": "workspace:*",
|
||||
"@vitejs/plugin-vue": "^4.0.0",
|
||||
"autoprefixer": "^10.4.13",
|
||||
"postcss": "^8.4.21",
|
||||
|
||||
@@ -58,6 +58,5 @@ const patchSlots = async () => {
|
||||
}
|
||||
|
||||
patchSlots()
|
||||
// eslint-disable-next-line no-console
|
||||
.then(() => console.log('slots patched'))
|
||||
.catch(console.error)
|
||||
|
||||
Reference in New Issue
Block a user