@vinicunca/eslint-config 2.13.0 → 2.13.2

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/dist/index.cjs CHANGED
@@ -112,7 +112,7 @@ __export(src_exports, {
112
112
  });
113
113
  module.exports = __toCommonJS(src_exports);
114
114
 
115
- // ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.0_postcss@8.4.49_tsx@4.19.0_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
115
+ // ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.0_postcss@8.4.49_tsx@4.19.2_typescript@5.7.2_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
116
116
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
117
117
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
118
118
 
package/dist/index.d.cts CHANGED
@@ -1634,7 +1634,7 @@ interface RuleOptions {
1634
1634
  */
1635
1635
  'no-class-assign'?: Linter.RuleEntry<[]>
1636
1636
  /**
1637
- * Disallow comparing against -0
1637
+ * Disallow comparing against `-0`
1638
1638
  * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
1639
1639
  */
1640
1640
  'no-compare-neg-zero'?: Linter.RuleEntry<[]>
@@ -7090,7 +7090,7 @@ interface RuleOptions {
7090
7090
  * enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`
7091
7091
  * @see https://eslint.vuejs.org/rules/no-duplicate-attr-inheritance.html
7092
7092
  */
7093
- 'vue/no-duplicate-attr-inheritance'?: Linter.RuleEntry<[]>
7093
+ 'vue/no-duplicate-attr-inheritance'?: Linter.RuleEntry<VueNoDuplicateAttrInheritance>
7094
7094
  /**
7095
7095
  * disallow duplication of attributes
7096
7096
  * @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
@@ -7535,7 +7535,7 @@ interface RuleOptions {
7535
7535
  */
7536
7536
  'vue/prefer-true-attribute-shorthand'?: Linter.RuleEntry<VuePreferTrueAttributeShorthand>
7537
7537
  /**
7538
- * require using `useTemplateRef` instead of `ref` for template refs
7538
+ * require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs
7539
7539
  * @see https://eslint.vuejs.org/rules/prefer-use-template-ref.html
7540
7540
  */
7541
7541
  'vue/prefer-use-template-ref'?: Linter.RuleEntry<[]>
@@ -7649,6 +7649,11 @@ interface RuleOptions {
7649
7649
  * @see https://eslint.vuejs.org/rules/require-valid-default-prop.html
7650
7650
  */
7651
7651
  'vue/require-valid-default-prop'?: Linter.RuleEntry<[]>
7652
+ /**
7653
+ * enforce using only specific component names
7654
+ * @see https://eslint.vuejs.org/rules/restricted-component-names.html
7655
+ */
7656
+ 'vue/restricted-component-names'?: Linter.RuleEntry<VueRestrictedComponentNames>
7652
7657
  /**
7653
7658
  * enforce that a return statement is present in computed property
7654
7659
  * @see https://eslint.vuejs.org/rules/return-in-computed-property.html
@@ -7675,6 +7680,11 @@ interface RuleOptions {
7675
7680
  * @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
7676
7681
  */
7677
7682
  'vue/singleline-html-element-content-newline'?: Linter.RuleEntry<VueSinglelineHtmlElementContentNewline>
7683
+ /**
7684
+ * enforce specific casing for slot names
7685
+ * @see https://eslint.vuejs.org/rules/slot-name-casing.html
7686
+ */
7687
+ 'vue/slot-name-casing'?: Linter.RuleEntry<VueSlotNameCasing>
7678
7688
  /**
7679
7689
  * enforce sort-keys in a manner that is compatible with order-in-components
7680
7690
  * @see https://eslint.vuejs.org/rules/sort-keys.html
@@ -8749,6 +8759,7 @@ type JsdocInformativeDocs = []|[{
8749
8759
  }]
8750
8760
  // ----- jsdoc/lines-before-block -----
8751
8761
  type JsdocLinesBeforeBlock = []|[{
8762
+ checkBlockStarts?: boolean
8752
8763
  excludedTags?: string[]
8753
8764
  ignoreSameLine?: boolean
8754
8765
  lines?: number
@@ -11491,6 +11502,7 @@ type SortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
11491
11502
  natural?: boolean
11492
11503
  minKeys?: number
11493
11504
  allowLineSeparatedGroups?: boolean
11505
+ ignoreComputedKeys?: boolean
11494
11506
  }]
11495
11507
  // ----- sort-vars -----
11496
11508
  type SortVars = []|[{
@@ -14485,6 +14497,7 @@ type VueAttributeHyphenation = []|[("always" | "never")]|[("always" | "never"),
14485
14497
  } & {
14486
14498
  [k: string]: unknown | undefined
14487
14499
  })[]
14500
+ ignoreTags?: string[]
14488
14501
  }]
14489
14502
  // ----- vue/attributes-order -----
14490
14503
  type VueAttributesOrder = []|[{
@@ -15201,6 +15214,10 @@ type VueNoDeprecatedSlotAttribute = []|[{
15201
15214
  type VueNoDupeKeys = []|[{
15202
15215
  groups?: unknown[]
15203
15216
  }]
15217
+ // ----- vue/no-duplicate-attr-inheritance -----
15218
+ type VueNoDuplicateAttrInheritance = []|[{
15219
+ checkMultiRootNodes?: boolean
15220
+ }]
15204
15221
  // ----- vue/no-duplicate-attributes -----
15205
15222
  type VueNoDuplicateAttributes = []|[{
15206
15223
  allowCoexistClass?: boolean
@@ -15436,6 +15453,7 @@ type VueNoUselessVBind = []|[{
15436
15453
  // ----- vue/no-v-text-v-html-on-component -----
15437
15454
  type VueNoVTextVHtmlOnComponent = []|[{
15438
15455
  allow?: string[]
15456
+ ignoreElementNamespaces?: boolean
15439
15457
  }]
15440
15458
  // ----- vue/object-curly-newline -----
15441
15459
  type VueObjectCurlyNewline = []|[((("always" | "never") | {
@@ -15556,6 +15574,10 @@ type VueRequirePropComment = []|[{
15556
15574
  type VueRequireToggleInsideTransition = []|[{
15557
15575
  additionalDirectives?: string[]
15558
15576
  }]
15577
+ // ----- vue/restricted-component-names -----
15578
+ type VueRestrictedComponentNames = []|[{
15579
+ allow?: string[]
15580
+ }]
15559
15581
  // ----- vue/return-in-computed-property -----
15560
15582
  type VueReturnInComputedProperty = []|[{
15561
15583
  treatUndefinedAsUnspecified?: boolean
@@ -15577,6 +15599,8 @@ type VueSinglelineHtmlElementContentNewline = []|[{
15577
15599
  ignores?: string[]
15578
15600
  externalIgnores?: string[]
15579
15601
  }]
15602
+ // ----- vue/slot-name-casing -----
15603
+ type VueSlotNameCasing = []|[("camelCase" | "kebab-case" | "singleword")]
15580
15604
  // ----- vue/sort-keys -----
15581
15605
  type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
15582
15606
  caseSensitive?: boolean
@@ -15620,6 +15644,7 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
15620
15644
  } & {
15621
15645
  [k: string]: unknown | undefined
15622
15646
  })[]
15647
+ ignoreTags?: string[]
15623
15648
  }]
15624
15649
  // ----- vue/v-on-function-call -----
15625
15650
  type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
package/dist/index.d.ts CHANGED
@@ -1634,7 +1634,7 @@ interface RuleOptions {
1634
1634
  */
1635
1635
  'no-class-assign'?: Linter.RuleEntry<[]>
1636
1636
  /**
1637
- * Disallow comparing against -0
1637
+ * Disallow comparing against `-0`
1638
1638
  * @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
1639
1639
  */
1640
1640
  'no-compare-neg-zero'?: Linter.RuleEntry<[]>
@@ -7090,7 +7090,7 @@ interface RuleOptions {
7090
7090
  * enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`
7091
7091
  * @see https://eslint.vuejs.org/rules/no-duplicate-attr-inheritance.html
7092
7092
  */
7093
- 'vue/no-duplicate-attr-inheritance'?: Linter.RuleEntry<[]>
7093
+ 'vue/no-duplicate-attr-inheritance'?: Linter.RuleEntry<VueNoDuplicateAttrInheritance>
7094
7094
  /**
7095
7095
  * disallow duplication of attributes
7096
7096
  * @see https://eslint.vuejs.org/rules/no-duplicate-attributes.html
@@ -7535,7 +7535,7 @@ interface RuleOptions {
7535
7535
  */
7536
7536
  'vue/prefer-true-attribute-shorthand'?: Linter.RuleEntry<VuePreferTrueAttributeShorthand>
7537
7537
  /**
7538
- * require using `useTemplateRef` instead of `ref` for template refs
7538
+ * require using `useTemplateRef` instead of `ref`/`shallowRef` for template refs
7539
7539
  * @see https://eslint.vuejs.org/rules/prefer-use-template-ref.html
7540
7540
  */
7541
7541
  'vue/prefer-use-template-ref'?: Linter.RuleEntry<[]>
@@ -7649,6 +7649,11 @@ interface RuleOptions {
7649
7649
  * @see https://eslint.vuejs.org/rules/require-valid-default-prop.html
7650
7650
  */
7651
7651
  'vue/require-valid-default-prop'?: Linter.RuleEntry<[]>
7652
+ /**
7653
+ * enforce using only specific component names
7654
+ * @see https://eslint.vuejs.org/rules/restricted-component-names.html
7655
+ */
7656
+ 'vue/restricted-component-names'?: Linter.RuleEntry<VueRestrictedComponentNames>
7652
7657
  /**
7653
7658
  * enforce that a return statement is present in computed property
7654
7659
  * @see https://eslint.vuejs.org/rules/return-in-computed-property.html
@@ -7675,6 +7680,11 @@ interface RuleOptions {
7675
7680
  * @see https://eslint.vuejs.org/rules/singleline-html-element-content-newline.html
7676
7681
  */
7677
7682
  'vue/singleline-html-element-content-newline'?: Linter.RuleEntry<VueSinglelineHtmlElementContentNewline>
7683
+ /**
7684
+ * enforce specific casing for slot names
7685
+ * @see https://eslint.vuejs.org/rules/slot-name-casing.html
7686
+ */
7687
+ 'vue/slot-name-casing'?: Linter.RuleEntry<VueSlotNameCasing>
7678
7688
  /**
7679
7689
  * enforce sort-keys in a manner that is compatible with order-in-components
7680
7690
  * @see https://eslint.vuejs.org/rules/sort-keys.html
@@ -8749,6 +8759,7 @@ type JsdocInformativeDocs = []|[{
8749
8759
  }]
8750
8760
  // ----- jsdoc/lines-before-block -----
8751
8761
  type JsdocLinesBeforeBlock = []|[{
8762
+ checkBlockStarts?: boolean
8752
8763
  excludedTags?: string[]
8753
8764
  ignoreSameLine?: boolean
8754
8765
  lines?: number
@@ -11491,6 +11502,7 @@ type SortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
11491
11502
  natural?: boolean
11492
11503
  minKeys?: number
11493
11504
  allowLineSeparatedGroups?: boolean
11505
+ ignoreComputedKeys?: boolean
11494
11506
  }]
11495
11507
  // ----- sort-vars -----
11496
11508
  type SortVars = []|[{
@@ -14485,6 +14497,7 @@ type VueAttributeHyphenation = []|[("always" | "never")]|[("always" | "never"),
14485
14497
  } & {
14486
14498
  [k: string]: unknown | undefined
14487
14499
  })[]
14500
+ ignoreTags?: string[]
14488
14501
  }]
14489
14502
  // ----- vue/attributes-order -----
14490
14503
  type VueAttributesOrder = []|[{
@@ -15201,6 +15214,10 @@ type VueNoDeprecatedSlotAttribute = []|[{
15201
15214
  type VueNoDupeKeys = []|[{
15202
15215
  groups?: unknown[]
15203
15216
  }]
15217
+ // ----- vue/no-duplicate-attr-inheritance -----
15218
+ type VueNoDuplicateAttrInheritance = []|[{
15219
+ checkMultiRootNodes?: boolean
15220
+ }]
15204
15221
  // ----- vue/no-duplicate-attributes -----
15205
15222
  type VueNoDuplicateAttributes = []|[{
15206
15223
  allowCoexistClass?: boolean
@@ -15436,6 +15453,7 @@ type VueNoUselessVBind = []|[{
15436
15453
  // ----- vue/no-v-text-v-html-on-component -----
15437
15454
  type VueNoVTextVHtmlOnComponent = []|[{
15438
15455
  allow?: string[]
15456
+ ignoreElementNamespaces?: boolean
15439
15457
  }]
15440
15458
  // ----- vue/object-curly-newline -----
15441
15459
  type VueObjectCurlyNewline = []|[((("always" | "never") | {
@@ -15556,6 +15574,10 @@ type VueRequirePropComment = []|[{
15556
15574
  type VueRequireToggleInsideTransition = []|[{
15557
15575
  additionalDirectives?: string[]
15558
15576
  }]
15577
+ // ----- vue/restricted-component-names -----
15578
+ type VueRestrictedComponentNames = []|[{
15579
+ allow?: string[]
15580
+ }]
15559
15581
  // ----- vue/return-in-computed-property -----
15560
15582
  type VueReturnInComputedProperty = []|[{
15561
15583
  treatUndefinedAsUnspecified?: boolean
@@ -15577,6 +15599,8 @@ type VueSinglelineHtmlElementContentNewline = []|[{
15577
15599
  ignores?: string[]
15578
15600
  externalIgnores?: string[]
15579
15601
  }]
15602
+ // ----- vue/slot-name-casing -----
15603
+ type VueSlotNameCasing = []|[("camelCase" | "kebab-case" | "singleword")]
15580
15604
  // ----- vue/sort-keys -----
15581
15605
  type VueSortKeys = []|[("asc" | "desc")]|[("asc" | "desc"), {
15582
15606
  caseSensitive?: boolean
@@ -15620,6 +15644,7 @@ type VueVOnEventHyphenation = []|[("always" | "never")]|[("always" | "never"), {
15620
15644
  } & {
15621
15645
  [k: string]: unknown | undefined
15622
15646
  })[]
15647
+ ignoreTags?: string[]
15623
15648
  }]
15624
15649
  // ----- vue/v-on-function-call -----
15625
15650
  type VueVOnFunctionCall = []|[("always" | "never")]|[("always" | "never"), {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "2.13.0",
4
+ "version": "2.13.2",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -104,7 +104,7 @@
104
104
  }
105
105
  },
106
106
  "dependencies": {
107
- "@antfu/install-pkg": "^0.4.1",
107
+ "@antfu/install-pkg": "^0.5.0",
108
108
  "@clack/prompts": "^0.8.2",
109
109
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
110
110
  "@eslint/markdown": "^6.2.1",
@@ -112,28 +112,28 @@
112
112
  "@typescript-eslint/eslint-plugin": "^8.16.0",
113
113
  "@typescript-eslint/parser": "^8.16.0",
114
114
  "@unocss/eslint-plugin": "^0.64.1",
115
- "@vitest/eslint-plugin": "^1.1.10",
115
+ "@vitest/eslint-plugin": "^1.1.13",
116
116
  "eslint-config-flat-gitignore": "^0.3.0",
117
117
  "eslint-flat-config-utils": "^0.4.0",
118
118
  "eslint-merge-processors": "^0.1.0",
119
119
  "eslint-plugin-antfu": "^2.7.0",
120
120
  "eslint-plugin-command": "^0.2.6",
121
- "eslint-plugin-format": "^0.1.2",
121
+ "eslint-plugin-format": "^0.1.3",
122
122
  "eslint-plugin-import-x": "^4.4.3",
123
- "eslint-plugin-jsdoc": "^50.5.0",
123
+ "eslint-plugin-jsdoc": "^50.6.0",
124
124
  "eslint-plugin-jsonc": "^2.18.2",
125
125
  "eslint-plugin-n": "^17.14.0",
126
126
  "eslint-plugin-no-only-tests": "^3.3.0",
127
127
  "eslint-plugin-perfectionist": "^4.1.2",
128
128
  "eslint-plugin-regexp": "^2.7.0",
129
129
  "eslint-plugin-sonarjs": "^1.0.4",
130
- "eslint-plugin-toml": "^0.11.1",
130
+ "eslint-plugin-toml": "^0.12.0",
131
131
  "eslint-plugin-unicorn": "^56.0.1",
132
132
  "eslint-plugin-unused-imports": "^4.1.4",
133
- "eslint-plugin-vue": "^9.31.0",
134
- "eslint-plugin-yml": "^1.15.0",
133
+ "eslint-plugin-vue": "^9.32.0",
134
+ "eslint-plugin-yml": "^1.16.0",
135
135
  "eslint-processor-vue-blocks": "^0.1.2",
136
- "globals": "^15.12.0",
136
+ "globals": "^15.13.0",
137
137
  "jsonc-eslint-parser": "^2.4.0",
138
138
  "local-pkg": "^0.5.1",
139
139
  "toml-eslint-parser": "^0.10.0",