feat(tooling): add eslint-config to tooling pkgs
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
const baseRules = {
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
'no-console': 0,
|
|
||||||
'chai-friendly/no-unused-expressions': ['error', { allowShortCircuit: true, allowTernary: true }],
|
|
||||||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
||||||
'prettier/prettier': ['error', {}, { usePrettierrc: true }],
|
|
||||||
'antfu/if-newline': 0,
|
|
||||||
'antfu/generic-spacing': 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
extends: ['@antfu', 'plugin:prettier/recommended'],
|
|
||||||
plugins: ['chai-friendly', 'prettier'],
|
|
||||||
rules: baseRules,
|
|
||||||
}
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"singleQuote": true,
|
|
||||||
"trailingComma": "all",
|
|
||||||
"semi": false,
|
|
||||||
"quoteProps": "consistent",
|
|
||||||
"bracketSpacing": true,
|
|
||||||
"printWidth": 130
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ['@vue-flow/eslint-config'],
|
||||||
|
}
|
||||||
+2
-1
@@ -6,7 +6,7 @@
|
|||||||
"dev": "pnpm run typedoc:md && vitepress dev src",
|
"dev": "pnpm run typedoc:md && vitepress dev src",
|
||||||
"docs": "pnpm run typedoc:md && vitepress build src",
|
"docs": "pnpm run typedoc:md && vitepress build src",
|
||||||
"serve": "vitepress serve src",
|
"serve": "vitepress serve src",
|
||||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
|
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .",
|
||||||
"typedoc:md": "typedoc --options ./typedoc.md.json",
|
"typedoc:md": "typedoc --options ./typedoc.md.json",
|
||||||
"typedocs": "typedoc --options ./typedoc.json"
|
"typedocs": "typedoc --options ./typedoc.json"
|
||||||
},
|
},
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
"@iconify/json": "^2.1.95",
|
"@iconify/json": "^2.1.95",
|
||||||
"@types/canvas-confetti": "^1.4.3",
|
"@types/canvas-confetti": "^1.4.3",
|
||||||
"@types/node": "^18.11.18",
|
"@types/node": "^18.11.18",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@windicss/plugin-scrollbar": "^1.2.3",
|
"@windicss/plugin-scrollbar": "^1.2.3",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"ohmyfetch": "^0.4.21",
|
"ohmyfetch": "^0.4.21",
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ['@vue-flow/eslint-config'],
|
||||||
|
}
|
||||||
@@ -12,6 +12,7 @@
|
|||||||
"@vue-flow/minimap": "workspace:*"
|
"@vue-flow/minimap": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"nuxt": "^3.2.2"
|
"nuxt": "^3.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ['@vue-flow/eslint-config'],
|
||||||
|
}
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@quasar/app-vite": "^1.0.5",
|
"@quasar/app-vite": "^1.0.5",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^2.3.4",
|
"@vitejs/plugin-vue": "^2.3.4",
|
||||||
"@types/node": "^18.8.3",
|
"@types/node": "^18.8.3",
|
||||||
"autoprefixer": "^10.4.12"
|
"autoprefixer": "^10.4.12"
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'no-console': 0,
|
|
||||||
'no-unused-vars': 1,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore ."
|
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vueflow": "workspace:*",
|
"vueflow": "workspace:*",
|
||||||
@@ -17,6 +17,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/dagre": "^0.7.48",
|
"@types/dagre": "^0.7.48",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"dagre": "^0.8.5",
|
"dagre": "^0.8.5",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
|
|||||||
@@ -18,11 +18,6 @@
|
|||||||
"@antfu/eslint-config": "^0.35.2",
|
"@antfu/eslint-config": "^0.35.2",
|
||||||
"@changesets/changelog-github": "^0.4.8",
|
"@changesets/changelog-github": "^0.4.8",
|
||||||
"@changesets/cli": "^2.26.0",
|
"@changesets/cli": "^2.26.0",
|
||||||
"eslint": "^8.34.0",
|
|
||||||
"eslint-config-prettier": "^8.6.0",
|
|
||||||
"eslint-plugin-chai-friendly": "^0.7.2",
|
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
|
||||||
"prettier": "^2.8.4",
|
|
||||||
"shx": "^0.3.4",
|
"shx": "^0.3.4",
|
||||||
"turbo": "^1.8.1",
|
"turbo": "^1.8.1",
|
||||||
"typescript": "^4.9.5"
|
"typescript": "^4.9.5"
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
||||||
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"test": "exit 0"
|
"test": "exit 0"
|
||||||
},
|
},
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
"vite": "^4.1.3",
|
"vite": "^4.1.3",
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
||||||
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"test": "exit 0"
|
"test": "exit 0"
|
||||||
},
|
},
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
"vite": "^4.1.3",
|
"vite": "^4.1.3",
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-console': 'error',
|
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
'react/prop-types': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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",
|
"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",
|
"patch": "node patch/slots.js",
|
||||||
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"prepublishOnly": "shx cp ../../README.md .",
|
"prepublishOnly": "shx cp ../../README.md .",
|
||||||
"postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"",
|
"postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"",
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-replace": "^5.0.2",
|
"@rollup/plugin-replace": "^5.0.2",
|
||||||
"@types/d3": "^7.4.0",
|
"@types/d3": "^7.4.0",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.13",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.21",
|
||||||
|
|||||||
@@ -58,6 +58,5 @@ const patchSlots = async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
patchSlots()
|
patchSlots()
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
.then(() => console.log('slots patched'))
|
.then(() => console.log('slots patched'))
|
||||||
.catch(console.error)
|
.catch(console.error)
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
||||||
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"test": "exit 0"
|
"test": "exit 0"
|
||||||
},
|
},
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
"@types/d3-selection": "^3.0.3",
|
"@types/d3-selection": "^3.0.3",
|
||||||
"@types/d3-zoom": "^3.0.1",
|
"@types/d3-zoom": "^3.0.1",
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
"vite": "^4.1.3",
|
"vite": "^4.1.3",
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
||||||
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"test": "exit 0"
|
"test": "exit 0"
|
||||||
},
|
},
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
"@types/d3-drag": "^3.0.1",
|
"@types/d3-drag": "^3.0.1",
|
||||||
"@types/d3-selection": "^3.0.3",
|
"@types/d3-selection": "^3.0.3",
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
"vite": "^4.1.3",
|
"vite": "^4.1.3",
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
"types": "vue-tsc --declaration --emitDeclarationOnly && pnpm lint:dist",
|
||||||
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"test": "exit 0"
|
"test": "exit 0"
|
||||||
},
|
},
|
||||||
@@ -35,6 +35,7 @@
|
|||||||
"dependencies": {},
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"unplugin-auto-import": "^0.14.4",
|
"unplugin-auto-import": "^0.14.4",
|
||||||
"vite": "^4.1.3",
|
"vite": "^4.1.3",
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,99 +0,0 @@
|
|||||||
# Created by .ignore support plugin (hsz.mobi)
|
|
||||||
### Node template
|
|
||||||
# Logs
|
|
||||||
/logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
yarn-debug.log*
|
|
||||||
yarn-error.log*
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
|
|
||||||
# nyc test coverage
|
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# TypeScript v1 declaration files
|
|
||||||
typings/
|
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variables file
|
|
||||||
.env
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# next.js build output
|
|
||||||
.next
|
|
||||||
|
|
||||||
# nuxt.js build output
|
|
||||||
.nuxt
|
|
||||||
|
|
||||||
# Nuxt generate
|
|
||||||
dist
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless
|
|
||||||
.webpack
|
|
||||||
|
|
||||||
# IDE / Editor
|
|
||||||
.idea
|
|
||||||
|
|
||||||
# Service worker
|
|
||||||
sw.*
|
|
||||||
|
|
||||||
# macOS
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
# Vim swap files
|
|
||||||
*.swp
|
|
||||||
|
|
||||||
# Db-Data
|
|
||||||
hasura/db_data/
|
|
||||||
|
|
||||||
# Codegen types
|
|
||||||
types/types.ts
|
|
||||||
|
|
||||||
build
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"singleQuote": true,
|
|
||||||
"trailingComma": "all",
|
|
||||||
"semi": false,
|
|
||||||
"quoteProps": "consistent",
|
|
||||||
"bracketSpacing": true,
|
|
||||||
"printWidth": 130
|
|
||||||
}
|
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && shx rm -rf tmp",
|
"types": "pnpm prepare && vue-tsc --declaration --emitDeclarationOnly && shx rm -rf tmp",
|
||||||
"postbuild": "shx rm -rf tmp",
|
"postbuild": "shx rm -rf tmp",
|
||||||
"test": "exit 0;",
|
"test": "exit 0;",
|
||||||
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
|
"lint:js": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix .",
|
||||||
"lint": "pnpm lint:js"
|
"lint": "pnpm lint:js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -33,6 +33,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@types/pathfinding": "^0.0.6",
|
"@types/pathfinding": "^0.0.6",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"ts-patch": "^2.1.0",
|
"ts-patch": "^2.1.0",
|
||||||
|
|||||||
@@ -1,9 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
extends: ['@vue-flow/eslint-config'],
|
||||||
'no-use-before-define': 0,
|
|
||||||
'vue/no-setup-props-destructure': 0,
|
|
||||||
'react/prop-types': 0,
|
|
||||||
},
|
|
||||||
extends: ['../../.eslintrc.js'],
|
|
||||||
ignorePatterns: ['!**/*'],
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"types": "tsc && shx rm -rf tmp && pnpm lint:dist",
|
"types": "tsc && shx rm -rf tmp && pnpm lint:dist",
|
||||||
"theme": "postcss src/style.css -o dist/style.css && postcss src/theme-default.css -o dist/theme-default.css",
|
"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",
|
"lint:dist": "eslint --ext \".ts,.tsx\" -c .eslintrc.js --fix ./dist",
|
||||||
"prepublishOnly": "shx cp ../../README.md .",
|
"prepublishOnly": "shx cp ../../README.md .",
|
||||||
"postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"",
|
"postpublish": "shx rm README.md && git commit -a -m \"chore: bump version\"",
|
||||||
@@ -38,6 +38,7 @@
|
|||||||
"@vue-flow/background": "workspace:*",
|
"@vue-flow/background": "workspace:*",
|
||||||
"@vue-flow/controls": "workspace:*",
|
"@vue-flow/controls": "workspace:*",
|
||||||
"@vue-flow/core": "workspace:*",
|
"@vue-flow/core": "workspace:*",
|
||||||
|
"@vue-flow/eslint-config": "workspace:*",
|
||||||
"@vue-flow/minimap": "workspace:*"
|
"@vue-flow/minimap": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Generated
+686
-694
File diff suppressed because it is too large
Load Diff
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
packages:
|
packages:
|
||||||
- packages/*
|
- packages/*
|
||||||
|
- tooling/*
|
||||||
- examples/*
|
- examples/*
|
||||||
- e2e
|
- tests
|
||||||
- docs
|
- docs
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
module.exports = {
|
||||||
|
extends: ['@antfu', 'plugin:prettier/recommended'],
|
||||||
|
plugins: ['prettier'],
|
||||||
|
rules: {
|
||||||
|
'vue/no-setup-props-destructure': 0,
|
||||||
|
'no-console': 0,
|
||||||
|
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
||||||
|
'prettier/prettier': [
|
||||||
|
'error',
|
||||||
|
{
|
||||||
|
singleQuote: true,
|
||||||
|
trailingComma: 'all',
|
||||||
|
semi: false,
|
||||||
|
quoteProps: 'consistent',
|
||||||
|
bracketSpacing: true,
|
||||||
|
printWidth: 130,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
'antfu/if-newline': 0,
|
||||||
|
'antfu/generic-spacing': 0,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"name": "@vue-flow/eslint-config",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"private": true,
|
||||||
|
"license": "MIT",
|
||||||
|
"main": "index.js",
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^8.34.0",
|
||||||
|
"eslint-config-prettier": "^8.6.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"eslint-config-turbo": "0.0.8",
|
||||||
|
"prettier": "^2.8.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user