Skip to content

Commit

Permalink
test: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Aug 17, 2024
1 parent 4e673dc commit fbeb4d7
Show file tree
Hide file tree
Showing 7 changed files with 1,550 additions and 503 deletions.
5 changes: 5 additions & 0 deletions examples/uniapp_vue3/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@unocss"
]
}
50 changes: 50 additions & 0 deletions examples/uniapp_vue3/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
// 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", "fixable": true },
{ "rule": "format/*", "severity": "off", "fixable": true },
{ "rule": "*-indent", "severity": "off", "fixable": true },
{ "rule": "*-spacing", "severity": "off", "fixable": true },
{ "rule": "*-spaces", "severity": "off", "fixable": true },
{ "rule": "*-order", "severity": "off", "fixable": true },
{ "rule": "*-dangle", "severity": "off", "fixable": true },
{ "rule": "*-newline", "severity": "off", "fixable": true },
{ "rule": "*quotes", "severity": "off", "fixable": true },
{ "rule": "*semi", "severity": "off", "fixable": true }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml",
"xml",
"gql",
"graphql",
"astro",
"svelte",
"css",
"less",
"scss",
"pcss",
"postcss"
]
}
14 changes: 9 additions & 5 deletions examples/uniapp_vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"build:mp-weixin": "uni build -p mp-weixin",
"build:quickapp-webview": "uni build -p quickapp-webview",
"build:quickapp-webview-huawei": "uni build -p quickapp-webview-huawei",
"build:quickapp-webview-union": "uni build -p quickapp-webview-union"
"build:quickapp-webview-union": "uni build -p quickapp-webview-union",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-3090920231225001",
Expand All @@ -55,13 +57,15 @@
"@dcloudio/uni-cli-shared": "3.0.0-3090920231225001",
"@dcloudio/uni-stacktracey": "3.0.0-3090920231225001",
"@dcloudio/vite-plugin-uni": "3.0.0-3090920231225001",
"@iconify/json": "^2.2.206",
"@unocss/transformer-directives": "^0.61.0",
"@unocss/transformer-variant-group": "^0.61.0",
"@iconify/json": "^2.2.237",
"@unocss/eslint-config": "^0.62.2",
"@unocss/transformer-directives": "^0.62.2",
"@unocss/transformer-variant-group": "^0.62.2",
"@vue/runtime-core": "^3.2.47",
"@vue/tsconfig": "^0.1.3",
"eslint": "^9.9.0",
"typescript": "^4.9.4",
"unocss": "^0.61.0",
"unocss": "^0.62.2",
"unocss-preset-weapp": "link:../../",
"vite": "4.0.3",
"vue-tsc": "^1.0.24"
Expand Down
Loading

0 comments on commit fbeb4d7

Please sign in to comment.