diff --git a/.eslintignore b/.eslintignore index de4d1f0..a3ca1c2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,2 +1,3 @@ dist node_modules +.vscode diff --git a/.vscode/settings.json b/.vscode/settings.json index 25fa621..78f8138 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,44 @@ { - "typescript.tsdk": "node_modules/typescript/lib" + "typescript.tsdk": "node_modules/typescript/lib", + // Enable the ESlint flat config support + "eslint.experimental.useFlatConfig": true, + + // Disable the default formatter, use eslint instead + "prettier.enable": false, + "editor.formatOnSave": false, + + // Auto fix + "editor.codeActionsOnSave": { + "source.fixAll.eslint": "explicit", + "source.organizeImports": "never" + }, + + // Silent the stylistic rules in you IDE, but still auto fix them + "eslint.rules.customizations": [ + { "rule": "style/*", "severity": "off" }, + { "rule": "format/*", "severity": "off" }, + { "rule": "*-indent", "severity": "off" }, + { "rule": "*-spacing", "severity": "off" }, + { "rule": "*-spaces", "severity": "off" }, + { "rule": "*-order", "severity": "off" }, + { "rule": "*-dangle", "severity": "off" }, + { "rule": "*-newline", "severity": "off" }, + { "rule": "*quotes", "severity": "off" }, + { "rule": "*semi", "severity": "off" } + ], + + // Enable eslint for all supported languages + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "vue", + "html", + "markdown", + "json", + "jsonc", + "yaml", + "toml" + ] } diff --git a/package.json b/package.json index 6b34063..b700a76 100644 --- a/package.json +++ b/package.json @@ -37,10 +37,6 @@ "release": "npm run build && npx changelogen --release && npm publish && git push --follow-tags", "lint": "eslint . --fix" }, - "peerDependencies": { - "@varlet/shared": "latest", - "@varlet/ui": "latest" - }, "dependencies": { "@nuxt/kit": "^3.3.2", "knitwork": "^1.0.0", @@ -54,7 +50,6 @@ "@nuxt/schema": "^3.3.2", "@nuxtjs/eslint-config-typescript": "^12.0.0", "@types/node": "^18.13.0", - "@varlet/shared": "latest", "@varlet/ui": "latest", "eslint": "^8.46.0", "husky": "^8.0.3", @@ -81,4 +76,4 @@ "access": "public", "registry": "https://registry.npmjs.org/" } -} \ No newline at end of file +} diff --git a/playground/app.vue b/playground/app.vue index 1b8551a..e385020 100644 --- a/playground/app.vue +++ b/playground/app.vue @@ -1,7 +1,3 @@ - -