@vuebro/configs 1.1.34 → 1.1.36

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.
package/README.md CHANGED
@@ -78,6 +78,7 @@ export default config;
78
78
  ## What's Included
79
79
 
80
80
  ### ESLint Config
81
+
81
82
  - Vue best practices with `eslint-plugin-vue`
82
83
  - TypeScript support with `@vue/eslint-config-typescript`
83
84
  - Pug template support with `eslint-plugin-vue-pug`
@@ -87,6 +88,7 @@ export default config;
87
88
  - Integration with Prettier using `eslint-plugin-prettier`
88
89
 
89
90
  ### Prettier Config
91
+
90
92
  - Automatic line ending handling
91
93
  - Pug template formatting via `@prettier/plugin-pug`
92
94
  - Enhanced JSDoc formatting with `prettier-plugin-jsdoc`
@@ -94,6 +96,7 @@ export default config;
94
96
  - package.json formatting with `prettier-plugin-packagejson`
95
97
 
96
98
  ### UnoCSS Config
99
+
97
100
  - Pug template extractor
98
101
  - Arbitrary variants extractor
99
102
  - Transformer for variant groups
@@ -101,6 +104,7 @@ export default config;
101
104
  - Transformer for class compilation
102
105
 
103
106
  ### Vite Config
107
+
104
108
  - Vue plugin integration
105
109
  - UnoCSS plugin integration
106
110
  - Vue DevTools plugin
@@ -117,4 +121,4 @@ jbruwes
117
121
 
118
122
  ## Contributing
119
123
 
120
- Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
124
+ Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
@@ -1,29 +1,41 @@
1
- import js from "@eslint/js";
2
- import json from "@eslint/json";
3
- import markdown from "@eslint/markdown";
4
1
  import { defineConfigWithVueTs, vueTsConfigs, } from "@vue/eslint-config-typescript";
5
- import gitignore from "eslint-config-flat-gitignore";
2
+ import prettierConfigsRecommended from "eslint-plugin-prettier/recommended";
3
+ import { configs as packageJsonConfigs } from "eslint-plugin-package-json";
4
+ import { flatConfigs as importXConfigs } from "eslint-plugin-import-x";
6
5
  import { configs as deMorganConfigs } from "eslint-plugin-de-morgan";
7
6
  import { configs as dependConfigs } from "eslint-plugin-depend";
8
- import { flatConfigs as importXConfigs } from "eslint-plugin-import-x";
9
- import jsDoc from "eslint-plugin-jsdoc";
10
- import { configs as packageJsonConfigs } from "eslint-plugin-package-json";
11
7
  import perfectionist from "eslint-plugin-perfectionist";
12
- import prettierConfigsRecommended from "eslint-plugin-prettier/recommended";
13
- import vue from "eslint-plugin-vue";
8
+ import gitignore from "eslint-config-flat-gitignore";
14
9
  import vuePug from "eslint-plugin-vue-pug";
10
+ import markdown from "@eslint/markdown";
11
+ import jsDoc from "eslint-plugin-jsdoc";
12
+ import vue from "eslint-plugin-vue";
13
+ import json from "@eslint/json";
14
+ import js from "@eslint/js";
15
15
  export default defineConfigWithVueTs(gitignore(), {
16
+ rules: {
17
+ "jsdoc/require-jsdoc": [
18
+ "error",
19
+ {
20
+ require: {
21
+ FunctionDeclaration: true,
22
+ FunctionExpression: true,
23
+ ClassDeclaration: true,
24
+ MethodDefinition: true,
25
+ ClassExpression: true,
26
+ },
27
+ },
28
+ ],
29
+ "jsdoc/tag-lines": ["warn", "any", { startLines: 1 }],
30
+ },
16
31
  extends: [
17
32
  vuePug.configs["flat/recommended"],
18
33
  js.configs.recommended,
19
34
  vue.configs["flat/recommended"],
20
35
  vueTsConfigs.strictTypeChecked,
21
36
  vueTsConfigs.stylisticTypeChecked,
22
- perfectionist.configs["recommended-natural"],
37
+ perfectionist.configs["recommended-line-length"],
23
38
  jsDoc.configs["flat/recommended"],
24
39
  ],
25
40
  files: ["**/*.{ts,vue}"],
26
- rules: {
27
- "jsdoc/tag-lines": ["warn", "any", { startLines: 1 }],
28
- },
29
41
  }, deMorganConfigs.recommended, importXConfigs.recommended, importXConfigs.typescript, dependConfigs["flat/recommended"], json.configs.recommended, markdown.configs.recommended, packageJsonConfigs.recommended, prettierConfigsRecommended);
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
- endOfLine: "auto";
3
- jsdocCommentLineStrategy: string;
4
2
  plugins: string[];
3
+ jsdocCommentLineStrategy: string;
4
+ endOfLine: "auto";
5
5
  tsdoc: boolean;
6
6
  };
7
7
  export default _default;
@@ -1,11 +1,11 @@
1
1
  export default {
2
- endOfLine: "auto",
3
- jsdocCommentLineStrategy: "keep",
4
2
  plugins: [
5
3
  "@prettier/plugin-pug",
6
4
  "prettier-plugin-jsdoc",
7
5
  "prettier-plugin-tailwindcss",
8
6
  "prettier-plugin-packagejson",
9
7
  ],
8
+ jsdocCommentLineStrategy: "keep",
9
+ endOfLine: "auto",
10
10
  tsdoc: true,
11
11
  };
@@ -1,11 +1,11 @@
1
+ import { transformerCompileClass, transformerVariantGroup, transformerDirectives, defineConfig, } from "unocss";
1
2
  import { extractorArbitraryVariants } from "@unocss/extractor-arbitrary-variants";
2
3
  import extractorPug from "@unocss/extractor-pug";
3
- import { defineConfig, transformerCompileClass, transformerDirectives, transformerVariantGroup, } from "unocss";
4
4
  export default defineConfig({
5
- extractors: [extractorPug(), extractorArbitraryVariants()],
6
5
  transformers: [
7
6
  transformerVariantGroup(),
8
7
  transformerDirectives(),
9
8
  transformerCompileClass(),
10
9
  ],
10
+ extractors: [extractorPug(), extractorArbitraryVariants()],
11
11
  });
@@ -1,16 +1,16 @@
1
1
  import type { AttributifyOptions } from "@unocss/preset-attributify";
2
- import type { IconsOptions } from "@unocss/preset-icons/browser";
3
- import type { TagifyOptions } from "@unocss/preset-tagify";
4
2
  import type { TypographyOptions } from "@unocss/preset-typography";
3
+ import type { IconsOptions } from "@unocss/preset-icons/browser";
5
4
  import type { WebFontsOptions } from "@unocss/preset-web-fonts";
6
5
  import type { PresetWind4Options } from "@unocss/preset-wind4";
6
+ import type { TagifyOptions } from "@unocss/preset-tagify";
7
7
  import type { PresetOrFactoryAwaitable } from "unocss";
8
- declare const _default: ({ attributifyOptions, iconsOptions, tagifyOptions, typographyOptions, webFontsOptions, wind4Options, }?: {
8
+ declare const _default: ({ iconsOptions, wind4Options, attributifyOptions, typographyOptions, webFontsOptions, tagifyOptions, }?: {
9
9
  attributifyOptions?: AttributifyOptions;
10
- iconsOptions?: IconsOptions;
11
- tagifyOptions?: TagifyOptions;
12
10
  typographyOptions?: TypographyOptions;
13
11
  webFontsOptions?: WebFontsOptions;
14
12
  wind4Options?: PresetWind4Options;
13
+ tagifyOptions?: TagifyOptions;
14
+ iconsOptions?: IconsOptions;
15
15
  }) => PresetOrFactoryAwaitable[];
16
16
  export default _default;
@@ -1,10 +1,10 @@
1
1
  import attributify from "@unocss/preset-attributify";
2
- import icons from "@unocss/preset-icons/browser";
3
- import tagify from "@unocss/preset-tagify";
4
2
  import typography from "@unocss/preset-typography";
3
+ import icons from "@unocss/preset-icons/browser";
5
4
  import webFonts from "@unocss/preset-web-fonts";
5
+ import tagify from "@unocss/preset-tagify";
6
6
  import wind4 from "@unocss/preset-wind4";
7
- export default ({ attributifyOptions, iconsOptions = { cdn: "https://cdn.jsdelivr.net/npm/" }, tagifyOptions, typographyOptions, webFontsOptions, wind4Options = { preflights: { reset: true } }, } = {}) => [
7
+ export default ({ iconsOptions = { cdn: "https://cdn.jsdelivr.net/npm/" }, wind4Options = { preflights: { reset: true } }, attributifyOptions, typographyOptions, webFontsOptions, tagifyOptions, } = {}) => [
8
8
  attributify(attributifyOptions),
9
9
  icons(iconsOptions),
10
10
  tagify(tagifyOptions),
@@ -1,12 +1,12 @@
1
- import UnoCSS from "@unocss/vite";
1
+ import vueDevTools from "vite-plugin-vue-devtools";
2
2
  import vue from "@vitejs/plugin-vue";
3
3
  import { defineConfig } from "vite";
4
- import vueDevTools from "vite-plugin-vue-devtools";
4
+ import unoCSS from "@unocss/vite";
5
5
  export default defineConfig({
6
- base: "./",
7
6
  define: {
8
7
  __APP_VERSION__: JSON.stringify(process.env["npm_package_version"]),
9
8
  },
10
- plugins: [vue(), vueDevTools(), UnoCSS()],
9
+ plugins: [vue(), vueDevTools(), unoCSS()],
11
10
  resolve: { alias: { "@": "./src" } },
11
+ base: "./",
12
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuebro/configs",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "@vuebro/configs",
5
5
  "keywords": [
6
6
  "vuebro",
@@ -67,6 +67,7 @@
67
67
  "@vue/eslint-config-typescript": "^14.6.0",
68
68
  "@vue/language-plugin-pug": "^3.1.1",
69
69
  "@vue/tsconfig": "^0.8.1",
70
+ "consola": "^3.4.2",
70
71
  "eslint": "^9.38.0",
71
72
  "eslint-config-flat-gitignore": "^2.1.0",
72
73
  "eslint-config-prettier": "^10.1.8",
@@ -74,7 +75,7 @@
74
75
  "eslint-plugin-de-morgan": "^2.0.0",
75
76
  "eslint-plugin-depend": "^1.3.1",
76
77
  "eslint-plugin-import-x": "^4.16.1",
77
- "eslint-plugin-jsdoc": "^61.1.5",
78
+ "eslint-plugin-jsdoc": "^61.1.7",
78
79
  "eslint-plugin-package-json": "^0.58.0",
79
80
  "eslint-plugin-perfectionist": "^4.15.1",
80
81
  "eslint-plugin-prettier": "^5.5.4",