create-weapp-vite 2.0.66 → 2.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/{src-s0htxdlk.js → src-DmN_mq6C.js} +2 -2
  4. package/package.json +1 -1
  5. package/templates/default/.vscode/extensions.json +6 -0
  6. package/templates/default/.vscode/settings.json +13 -1
  7. package/templates/default/eslint.config.js +6 -0
  8. package/templates/default/package.json +8 -0
  9. package/templates/default/stylelint.config.js +5 -0
  10. package/templates/lib/.vscode/extensions.json +6 -0
  11. package/templates/lib/.vscode/settings.json +13 -1
  12. package/templates/lib/eslint.config.js +7 -0
  13. package/templates/lib/package.json +9 -1
  14. package/templates/lib/stylelint.config.js +5 -0
  15. package/templates/tailwindcss/.vscode/extensions.json +6 -0
  16. package/templates/tailwindcss/.vscode/settings.json +38 -1
  17. package/templates/tailwindcss/eslint.config.js +6 -0
  18. package/templates/tailwindcss/package.json +8 -0
  19. package/templates/tailwindcss/stylelint.config.js +5 -0
  20. package/templates/tdesign/.vscode/extensions.json +6 -0
  21. package/templates/tdesign/.vscode/settings.json +38 -1
  22. package/templates/tdesign/eslint.config.js +6 -0
  23. package/templates/tdesign/package.json +8 -0
  24. package/templates/tdesign/stylelint.config.js +5 -0
  25. package/templates/vant/.vscode/extensions.json +6 -0
  26. package/templates/vant/.vscode/settings.json +38 -1
  27. package/templates/vant/eslint.config.js +6 -0
  28. package/templates/vant/package.json +8 -0
  29. package/templates/vant/stylelint.config.js +5 -0
  30. package/templates/wevu/.vscode/extensions.json +6 -0
  31. package/templates/wevu/.vscode/settings.json +13 -1
  32. package/templates/wevu/eslint.config.js +7 -0
  33. package/templates/wevu/package.json +8 -0
  34. package/templates/wevu/stylelint.config.js +5 -0
  35. package/templates/wevu-tdesign/.vscode/extensions.json +6 -0
  36. package/templates/wevu-tdesign/.vscode/settings.json +36 -4
  37. package/templates/wevu-tdesign/eslint.config.js +7 -0
  38. package/templates/wevu-tdesign/package.json +8 -0
  39. package/templates/wevu-tdesign/stylelint.config.js +5 -0
package/dist/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as TemplateName, t as createProject } from "./src-s0htxdlk.js";
1
+ import { n as TemplateName, t as createProject } from "./src-DmN_mq6C.js";
2
2
  import logger from "@weapp-core/logger";
3
3
  import fs from "fs-extra";
4
4
  import path from "node:path";
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as TemplateName, t as createProject } from "./src-s0htxdlk.js";
1
+ import { n as TemplateName, t as createProject } from "./src-DmN_mq6C.js";
2
2
  export { TemplateName, createProject };
@@ -4,10 +4,10 @@ import fs from "fs-extra";
4
4
  import path from "pathe";
5
5
  import https from "node:https";
6
6
  //#region ../weapp-vite/package.json
7
- var version$1 = "6.11.8";
7
+ var version$1 = "6.12.0";
8
8
  //#endregion
9
9
  //#region ../wevu/package.json
10
- var version = "6.11.8";
10
+ var version = "6.12.0";
11
11
  //#endregion
12
12
  //#region src/enums.ts
13
13
  let TemplateName = /* @__PURE__ */ function(TemplateName) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-weapp-vite",
3
3
  "type": "module",
4
- "version": "2.0.66",
4
+ "version": "2.0.68",
5
5
  "description": "create-weapp-vite",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,17 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
2
9
  "tailwindCSS.includeLanguages": {
3
10
  "wxml": "html"
4
- }
11
+ },
12
+ "stylelint.validate": [
13
+ "css",
14
+ "scss",
15
+ "vue"
16
+ ]
5
17
  }
@@ -0,0 +1,6 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
6
+ })
@@ -19,13 +19,21 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "open": "weapp-vite open",
25
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
23
27
  "g": "weapp-vite generate",
24
28
  "postinstall": "weapp-vite prepare"
25
29
  },
26
30
  "devDependencies": {
31
+ "@icebreakers/eslint-config": "^2.1.0",
32
+ "@icebreakers/stylelint-config": "^2.2.0",
33
+ "eslint": "^10.1.0",
27
34
  "miniprogram-api-typings": "catalog:",
28
35
  "sass": "catalog:",
36
+ "stylelint": "^17.6.0",
29
37
  "typescript": "catalog:",
30
38
  "weapp-vite": "workspace:*"
31
39
  }
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,17 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
2
9
  "tailwindCSS.includeLanguages": {
3
10
  "wxml": "html"
4
- }
11
+ },
12
+ "stylelint.validate": [
13
+ "css",
14
+ "scss",
15
+ "vue"
16
+ ]
5
17
  }
@@ -0,0 +1,7 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ vue: true,
6
+ ignores: ['CHANGELOG.md', 'README.md', 'dist-lib/**', '.turbo/**'],
7
+ })
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weapp-vite-lib-template",
3
3
  "type": "module",
4
- "version": "2.0.8",
4
+ "version": "3.0.0",
5
5
  "private": true,
6
6
  "description": "weapp-vite 组件库(lib 模式)模板",
7
7
  "author": "ice breaker <1324318532@qq.com>",
@@ -20,7 +20,11 @@
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
22
  "build:lib": "weapp-vite build --config weapp-vite.lib.config.ts",
23
+ "lint": "eslint .",
24
+ "lint:fix": "eslint . --fix",
23
25
  "open": "weapp-vite open",
26
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
24
28
  "g": "weapp-vite generate",
25
29
  "postinstall": "weapp-vite prepare"
26
30
  },
@@ -28,8 +32,12 @@
28
32
  "wevu": "workspace:*"
29
33
  },
30
34
  "devDependencies": {
35
+ "@icebreakers/eslint-config": "^2.1.0",
36
+ "@icebreakers/stylelint-config": "^2.2.0",
37
+ "eslint": "^10.1.0",
31
38
  "miniprogram-api-typings": "catalog:",
32
39
  "sass": "catalog:",
40
+ "stylelint": "^17.6.0",
33
41
  "typescript": "catalog:",
34
42
  "weapp-vite": "workspace:*",
35
43
  "wevu": "workspace:*"
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,42 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
9
+ "tailwindCSS.experimental.classRegex": [
10
+ [
11
+ "clsx\\(([^)]*)\\)",
12
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
13
+ ],
14
+ [
15
+ "cn\\(([^)]*)\\)",
16
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
17
+ ],
18
+ [
19
+ "cva\\(([^)]*)\\)",
20
+ "[\"'`]([^\"'`]*).*?[\"'`]"
21
+ ],
22
+ [
23
+ "cx\\(([^)]*)\\)",
24
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
25
+ ]
26
+ ],
27
+ "tailwindCSS.classAttributes": [
28
+ "class",
29
+ "className",
30
+ "ngClass",
31
+ "class:list",
32
+ "hover-class"
33
+ ],
2
34
  "tailwindCSS.includeLanguages": {
3
35
  "wxml": "html"
4
- }
36
+ },
37
+ "stylelint.validate": [
38
+ "css",
39
+ "scss",
40
+ "vue"
41
+ ]
5
42
  }
@@ -0,0 +1,6 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
6
+ })
@@ -19,17 +19,25 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "open": "weapp-vite open",
25
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
23
27
  "g": "weapp-vite generate",
24
28
  "postinstall": "weapp-tw patch && weapp-vite prepare"
25
29
  },
26
30
  "devDependencies": {
27
31
  "@egoist/tailwindcss-icons": "catalog:",
32
+ "@icebreakers/eslint-config": "^2.1.0",
33
+ "@icebreakers/stylelint-config": "^2.2.0",
28
34
  "@iconify-json/mdi": "catalog:",
29
35
  "autoprefixer": "catalog:",
36
+ "eslint": "^10.1.0",
30
37
  "miniprogram-api-typings": "catalog:",
31
38
  "postcss": "catalog:",
32
39
  "sass": "catalog:",
40
+ "stylelint": "^17.6.0",
33
41
  "tailwindcss": "catalog:tailwind3",
34
42
  "typescript": "catalog:",
35
43
  "weapp-tailwindcss": "catalog:",
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,42 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
9
+ "tailwindCSS.experimental.classRegex": [
10
+ [
11
+ "clsx\\(([^)]*)\\)",
12
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
13
+ ],
14
+ [
15
+ "cn\\(([^)]*)\\)",
16
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
17
+ ],
18
+ [
19
+ "cva\\(([^)]*)\\)",
20
+ "[\"'`]([^\"'`]*).*?[\"'`]"
21
+ ],
22
+ [
23
+ "cx\\(([^)]*)\\)",
24
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
25
+ ]
26
+ ],
27
+ "tailwindCSS.classAttributes": [
28
+ "class",
29
+ "className",
30
+ "ngClass",
31
+ "class:list",
32
+ "hover-class"
33
+ ],
2
34
  "tailwindCSS.includeLanguages": {
3
35
  "wxml": "html"
4
- }
36
+ },
37
+ "stylelint.validate": [
38
+ "css",
39
+ "scss",
40
+ "vue"
41
+ ]
5
42
  }
@@ -0,0 +1,6 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
6
+ })
@@ -19,7 +19,11 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "open": "weapp-vite open",
25
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
23
27
  "g": "weapp-vite generate",
24
28
  "postinstall": "weapp-tw patch && weapp-vite prepare"
25
29
  },
@@ -28,11 +32,15 @@
28
32
  },
29
33
  "devDependencies": {
30
34
  "@egoist/tailwindcss-icons": "catalog:",
35
+ "@icebreakers/eslint-config": "^2.1.0",
36
+ "@icebreakers/stylelint-config": "^2.2.0",
31
37
  "@iconify-json/mdi": "catalog:",
32
38
  "autoprefixer": "catalog:",
39
+ "eslint": "^10.1.0",
33
40
  "miniprogram-api-typings": "catalog:",
34
41
  "postcss": "catalog:",
35
42
  "sass": "catalog:",
43
+ "stylelint": "^17.6.0",
36
44
  "tailwindcss": "catalog:tailwind3",
37
45
  "typescript": "catalog:",
38
46
  "weapp-tailwindcss": "catalog:",
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,42 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
9
+ "tailwindCSS.experimental.classRegex": [
10
+ [
11
+ "clsx\\(([^)]*)\\)",
12
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
13
+ ],
14
+ [
15
+ "cn\\(([^)]*)\\)",
16
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
17
+ ],
18
+ [
19
+ "cva\\(([^)]*)\\)",
20
+ "[\"'`]([^\"'`]*).*?[\"'`]"
21
+ ],
22
+ [
23
+ "cx\\(([^)]*)\\)",
24
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
25
+ ]
26
+ ],
27
+ "tailwindCSS.classAttributes": [
28
+ "class",
29
+ "className",
30
+ "ngClass",
31
+ "class:list",
32
+ "hover-class"
33
+ ],
2
34
  "tailwindCSS.includeLanguages": {
3
35
  "wxml": "html"
4
- }
36
+ },
37
+ "stylelint.validate": [
38
+ "css",
39
+ "scss",
40
+ "vue"
41
+ ]
5
42
  }
@@ -0,0 +1,6 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
6
+ })
@@ -19,7 +19,11 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "open": "weapp-vite open",
25
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
26
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
23
27
  "g": "weapp-vite generate",
24
28
  "postinstall": "weapp-tw patch && weapp-vite prepare"
25
29
  },
@@ -28,11 +32,15 @@
28
32
  },
29
33
  "devDependencies": {
30
34
  "@egoist/tailwindcss-icons": "catalog:",
35
+ "@icebreakers/eslint-config": "^2.1.0",
36
+ "@icebreakers/stylelint-config": "^2.2.0",
31
37
  "@iconify-json/mdi": "catalog:",
32
38
  "autoprefixer": "catalog:",
39
+ "eslint": "^10.1.0",
33
40
  "miniprogram-api-typings": "catalog:",
34
41
  "postcss": "catalog:",
35
42
  "sass": "catalog:",
43
+ "stylelint": "^17.6.0",
36
44
  "tailwindcss": "catalog:tailwind3",
37
45
  "typescript": "catalog:",
38
46
  "weapp-tailwindcss": "catalog:",
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,5 +1,17 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
6
+ "html.customData": [
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
2
9
  "tailwindCSS.includeLanguages": {
3
10
  "wxml": "html"
4
- }
11
+ },
12
+ "stylelint.validate": [
13
+ "css",
14
+ "scss",
15
+ "vue"
16
+ ]
5
17
  }
@@ -0,0 +1,7 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ vue: true,
6
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
7
+ })
@@ -19,12 +19,20 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
23
25
  "open": "weapp-vite open",
26
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
24
28
  "postinstall": "weapp-vite prepare"
25
29
  },
26
30
  "devDependencies": {
31
+ "@icebreakers/eslint-config": "^2.1.0",
32
+ "@icebreakers/stylelint-config": "^2.2.0",
33
+ "eslint": "^10.1.0",
27
34
  "miniprogram-api-typings": "catalog:",
35
+ "stylelint": "^17.6.0",
28
36
  "typescript": "catalog:",
29
37
  "vue-tsc": "catalog:",
30
38
  "weapp-vite": "workspace:*",
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })
@@ -0,0 +1,6 @@
1
+ {
2
+ "recommendations": [
3
+ "dbaeumer.vscode-eslint",
4
+ "stylelint.vscode-stylelint"
5
+ ]
6
+ }
@@ -1,10 +1,42 @@
1
1
  {
2
+ "files.associations": {
3
+ "*.wxml": "html",
4
+ "*.wxss": "css"
5
+ },
2
6
  "html.customData": [
3
- "./mini-program.html-data.json"
7
+ "./.weapp-vite/mini-program.html-data.json"
8
+ ],
9
+ "tailwindCSS.experimental.classRegex": [
10
+ [
11
+ "clsx\\(([^)]*)\\)",
12
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
13
+ ],
14
+ [
15
+ "cn\\(([^)]*)\\)",
16
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
17
+ ],
18
+ [
19
+ "cva\\(([^)]*)\\)",
20
+ "[\"'`]([^\"'`]*).*?[\"'`]"
21
+ ],
22
+ [
23
+ "cx\\(([^)]*)\\)",
24
+ "(?:'|\"|`)([^']*)(?:'|\"|`)"
25
+ ]
26
+ ],
27
+ "tailwindCSS.classAttributes": [
28
+ "class",
29
+ "className",
30
+ "ngClass",
31
+ "class:list",
32
+ "hover-class"
4
33
  ],
5
- "vue.server.hybridMode": false,
6
- "vue.tsserver.useWorkspaceTsdk": false,
7
34
  "tailwindCSS.includeLanguages": {
8
35
  "wxml": "html"
9
- }
36
+ },
37
+ "stylelint.validate": [
38
+ "css",
39
+ "scss",
40
+ "vue"
41
+ ]
10
42
  }
@@ -0,0 +1,7 @@
1
+ import { icebreaker } from '@icebreakers/eslint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ vue: true,
6
+ ignores: ['CHANGELOG.md', 'README.md', '.turbo/**'],
7
+ })
@@ -19,8 +19,12 @@
19
19
  "dev": "weapp-vite dev",
20
20
  "dev:open": "weapp-vite dev -o",
21
21
  "build": "weapp-vite build",
22
+ "lint": "eslint .",
23
+ "lint:fix": "eslint . --fix",
22
24
  "typecheck": "vue-tsc --noEmit -p .weapp-vite/tsconfig.app.json",
23
25
  "open": "weapp-vite open",
26
+ "stylelint": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --allow-empty-input",
27
+ "stylelint:fix": "stylelint \"src/**/*.{css,scss,vue,wxss}\" --fix --allow-empty-input",
24
28
  "postinstall": "weapp-tw patch && weapp-vite prepare"
25
29
  },
26
30
  "dependencies": {
@@ -28,11 +32,15 @@
28
32
  },
29
33
  "devDependencies": {
30
34
  "@egoist/tailwindcss-icons": "catalog:",
35
+ "@icebreakers/eslint-config": "^2.1.0",
36
+ "@icebreakers/stylelint-config": "^2.2.0",
31
37
  "@iconify-json/mdi": "catalog:",
32
38
  "autoprefixer": "catalog:",
39
+ "eslint": "^10.1.0",
33
40
  "miniprogram-api-typings": "catalog:",
34
41
  "postcss": "catalog:",
35
42
  "sass": "catalog:",
43
+ "stylelint": "^17.6.0",
36
44
  "tailwindcss": "catalog:tailwind3",
37
45
  "typescript": "catalog:",
38
46
  "vue-tsc": "catalog:",
@@ -0,0 +1,5 @@
1
+ import { icebreaker } from '@icebreakers/stylelint-config'
2
+
3
+ export default icebreaker({
4
+ miniProgram: true,
5
+ })