@cuiqg/eslint-config 2.5.2 → 2.5.4

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 (2) hide show
  1. package/dist/index.js +28 -9
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -602,7 +602,8 @@ async function stylistic() {
602
602
  pluginName: "style",
603
603
  indent: 2,
604
604
  quotes: "single",
605
- semi: false
605
+ semi: false,
606
+ commaDangle: "never"
606
607
  });
607
608
  return [{
608
609
  name: "cuiqg/stylistic",
@@ -640,16 +641,21 @@ async function vue() {
640
641
  return [{
641
642
  languageOptions: {
642
643
  globals: {
644
+ ref: "readonly",
643
645
  computed: "readonly",
646
+ reactive: "readonly",
647
+ defineProps: "readonly",
644
648
  defineEmits: "readonly",
649
+ defineModel: "readonly",
645
650
  defineExpose: "readonly",
646
- defineProps: "readonly",
651
+ defineOptions: "readonly",
652
+ defineSlots: "readonly",
653
+ useSlots: "readonly",
654
+ useAttrs: "readonly",
647
655
  onMounted: "readonly",
648
656
  onUnmounted: "readonly",
649
- reactive: "readonly",
650
- ref: "readonly",
651
- shallowReactive: "readonly",
652
- shallowRef: "readonly",
657
+ onActivated: "readonly",
658
+ onDeactivated: "readonly",
653
659
  toRef: "readonly",
654
660
  toRefs: "readonly",
655
661
  watch: "readonly",
@@ -784,6 +790,16 @@ async function vue() {
784
790
  }];
785
791
  }
786
792
 
793
+ //#endregion
794
+ //#region src/configs/macros.js
795
+ async function macros() {
796
+ const configMacros = await interopDefault(import("@vue-macros/eslint-config"));
797
+ return [{
798
+ ...configMacros,
799
+ name: "cuiqg/macros"
800
+ }];
801
+ }
802
+
787
803
  //#endregion
788
804
  //#region src/presets.js
789
805
  const defaultPluginRenaming = {
@@ -796,9 +812,12 @@ const defaultPluginRenaming = {
796
812
  function cuiqg(options = {}, ...userConfigs) {
797
813
  const { prettier: enablePrettier = false, imports: enableImports = true, vue: enableVue = hasVue(), unocss: enableUnocss = hasUnoCss(), nextjs: enableNextjs = hasNextjs() } = options;
798
814
  const configs = [];
799
- configs.push(deMorgan(), ignores(), javascript(), jsdoc(), jsonc(), stylistic(), perfectionist());
815
+ configs.push(deMorgan(), ignores(), javascript(), jsdoc(), jsonc(), stylistic(), node(), packageJson(), perfectionist());
800
816
  if (enableImports) configs.push(imports());
801
- if (enableVue) configs.push(vue());
817
+ if (enableVue) {
818
+ configs.push(vue());
819
+ configs.push(macros());
820
+ }
802
821
  if (enableUnocss) configs.push(unocss());
803
822
  if (enableNextjs) configs.push(nextjs());
804
823
  if (enablePrettier) configs.push(prettier());
@@ -813,4 +832,4 @@ function cuiqg(options = {}, ...userConfigs) {
813
832
  var src_default = cuiqg;
814
833
 
815
834
  //#endregion
816
- export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_STYLUS, GLOB_SVG, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, cuiqg, deMorgan, src_default as default, defaultPluginRenaming, hasNextjs, hasTypeScript, hasUnoCss, hasVue, ignores, imports, isInEditor, isInGitHookOrLintStaged, javascript, jsdoc, jsonc, nextjs, node, packageJson, perfectionist, prettier, stylistic, unocss, vue };
835
+ export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_STYLUS, GLOB_SVG, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, cuiqg, deMorgan, src_default as default, defaultPluginRenaming, hasNextjs, hasTypeScript, hasUnoCss, hasVue, ignores, imports, isInEditor, isInGitHookOrLintStaged, javascript, jsdoc, jsonc, macros, nextjs, node, packageJson, perfectionist, prettier, stylistic, unocss, vue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuiqg/eslint-config",
3
- "version": "2.5.2",
3
+ "version": "2.5.4",
4
4
  "description": "Eslint config for @cuiqg",
5
5
  "keywords": [
6
6
  "eslint-config"
@@ -32,6 +32,7 @@
32
32
  "@next/eslint-plugin-next": "^15.4.6",
33
33
  "@stylistic/eslint-plugin": "^5.2.3",
34
34
  "@unocss/eslint-plugin": "^66.4.2",
35
+ "@vue-macros/eslint-config": "3.0.0-beta.21",
35
36
  "eslint-config-flat-gitignore": "^2.1.0",
36
37
  "eslint-config-prettier": "^10.1.8",
37
38
  "eslint-flat-config-utils": "^2.1.1",