@vinicunca/eslint-config 2.7.3 → 2.7.5

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
@@ -96,14 +96,14 @@ __export(src_exports, {
96
96
  });
97
97
  module.exports = __toCommonJS(src_exports);
98
98
 
99
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
99
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.4/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
100
100
  function r(e2) {
101
101
  if (typeof e2 != "object" || e2 === null) return false;
102
102
  let o = Object.getPrototypeOf(e2);
103
103
  return o === null || o === Object.prototype;
104
104
  }
105
105
 
106
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
106
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.4/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
107
107
  function e(o) {
108
108
  return typeof o == "boolean";
109
109
  }
package/dist/index.d.cts CHANGED
@@ -674,7 +674,7 @@ interface RuleOptions {
674
674
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
675
675
  /**
676
676
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
677
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
677
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
678
678
  */
679
679
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
680
680
  /**
@@ -712,6 +712,11 @@ interface RuleOptions {
712
712
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
713
713
  */
714
714
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
715
+ /**
716
+ * Enforces minimum number of newlines before JSDoc comment blocks
717
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
718
+ */
719
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
715
720
  /**
716
721
  * Enforces a regular expression pattern on descriptions.
717
722
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -2653,13 +2658,11 @@ interface RuleOptions {
2653
2658
  /**
2654
2659
  * disallow complex conditional rendering
2655
2660
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2656
- * @deprecated
2657
2661
  */
2658
2662
  'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
2659
2663
  /**
2660
2664
  * disallow complex conditional rendering
2661
2665
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2662
- * @deprecated
2663
2666
  */
2664
2667
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2665
2668
  /**
@@ -2693,7 +2696,7 @@ interface RuleOptions {
2693
2696
  */
2694
2697
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2695
2698
  /**
2696
- * disallow duplicate keys in 'key' prop when rendering list
2699
+ * disallow duplicate keys when rendering list
2697
2700
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2698
2701
  */
2699
2702
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
@@ -2713,7 +2716,7 @@ interface RuleOptions {
2713
2716
  */
2714
2717
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2715
2718
  /**
2716
- * require 'key' prop when rendering list
2719
+ * require 'key' when rendering list
2717
2720
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
2718
2721
  */
2719
2722
  'react/no-missing-key'?: Linter.RuleEntry<[]>
@@ -4425,6 +4428,11 @@ interface RuleOptions {
4425
4428
  * @see https://typescript-eslint.io/rules/no-unnecessary-condition
4426
4429
  */
4427
4430
  'ts/no-unnecessary-condition'?: Linter.RuleEntry<TsNoUnnecessaryCondition>
4431
+ /**
4432
+ * Disallow unnecessary assignment of constructor property parameter
4433
+ * @see https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment
4434
+ */
4435
+ 'ts/no-unnecessary-parameter-property-assignment'?: Linter.RuleEntry<[]>
4428
4436
  /**
4429
4437
  * Disallow unnecessary namespace qualifiers
4430
4438
  * @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
@@ -4507,7 +4515,7 @@ interface RuleOptions {
4507
4515
  'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
4508
4516
  /**
4509
4517
  * Disallow unused variables
4510
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4518
+ * @see https://typescript-eslint.io/rules/no-unused-vars
4511
4519
  */
4512
4520
  'ts/no-unused-vars'?: Linter.RuleEntry<TsNoUnusedVars>
4513
4521
  /**
@@ -5435,7 +5443,7 @@ interface RuleOptions {
5435
5443
  'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
5436
5444
  /**
5437
5445
  * Disallow unused variables
5438
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
5446
+ * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
5439
5447
  */
5440
5448
  'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
5441
5449
  /**
@@ -7503,6 +7511,12 @@ type JsdocInformativeDocs = []|[{
7503
7511
  excludedTags?: string[]
7504
7512
  uselessWords?: string[]
7505
7513
  }]
7514
+ // ----- jsdoc/lines-before-block -----
7515
+ type JsdocLinesBeforeBlock = []|[{
7516
+ excludedTags?: string[]
7517
+ ignoreSameLine?: boolean
7518
+ lines?: number
7519
+ }]
7506
7520
  // ----- jsdoc/match-description -----
7507
7521
  type JsdocMatchDescription = []|[{
7508
7522
  contexts?: (string | {
@@ -9550,9 +9564,9 @@ type PerfectionistSortObjects = []|[{
9550
9564
 
9551
9565
  styledComponents?: boolean
9552
9566
 
9553
- ignorePattern?: string[]
9567
+ destructureOnly?: boolean
9554
9568
 
9555
- customIgnore?: unknown[]
9569
+ ignorePattern?: string[]
9556
9570
 
9557
9571
  groups?: (string | string[])[]
9558
9572
 
@@ -11517,10 +11531,6 @@ type TsNoExtraneousClass = []|[{
11517
11531
  }]
11518
11532
  // ----- ts/no-floating-promises -----
11519
11533
  type TsNoFloatingPromises = []|[{
11520
-
11521
- ignoreVoid?: boolean
11522
-
11523
- ignoreIIFE?: boolean
11524
11534
  allowForKnownSafePromises?: (string | {
11525
11535
  from: "file"
11526
11536
  name: (string | [string, ...(string)[]])
@@ -11545,6 +11555,12 @@ type TsNoFloatingPromises = []|[{
11545
11555
  name: (string | [string, ...(string)[]])
11546
11556
  package: string
11547
11557
  })[]
11558
+
11559
+ checkThenables?: boolean
11560
+
11561
+ ignoreVoid?: boolean
11562
+
11563
+ ignoreIIFE?: boolean
11548
11564
  }]
11549
11565
  // ----- ts/no-inferrable-types -----
11550
11566
  type TsNoInferrableTypes = []|[{
@@ -11900,7 +11916,7 @@ type TsRestrictTemplateExpressions = []|[{
11900
11916
  allowNever?: boolean
11901
11917
  }]
11902
11918
  // ----- ts/return-await -----
11903
- type TsReturnAwait = []|[("in-try-catch" | "always" | "never")]
11919
+ type TsReturnAwait = []|[("in-try-catch" | "always" | "never" | "error-handling-correctness-only")]
11904
11920
  // ----- ts/sort-type-constituents -----
11905
11921
  type TsSortTypeConstituents = []|[{
11906
11922
 
package/dist/index.d.ts CHANGED
@@ -674,7 +674,7 @@ interface RuleOptions {
674
674
  'jsdoc/check-tag-names'?: Linter.RuleEntry<JsdocCheckTagNames>
675
675
  /**
676
676
  * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
677
- * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
677
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-template-names.md#repos-sticky-header
678
678
  */
679
679
  'jsdoc/check-template-names'?: Linter.RuleEntry<[]>
680
680
  /**
@@ -712,6 +712,11 @@ interface RuleOptions {
712
712
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/informative-docs.md#repos-sticky-header
713
713
  */
714
714
  'jsdoc/informative-docs'?: Linter.RuleEntry<JsdocInformativeDocs>
715
+ /**
716
+ * Enforces minimum number of newlines before JSDoc comment blocks
717
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/lines-before-block.md#repos-sticky-header
718
+ */
719
+ 'jsdoc/lines-before-block'?: Linter.RuleEntry<JsdocLinesBeforeBlock>
715
720
  /**
716
721
  * Enforces a regular expression pattern on descriptions.
717
722
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/match-description.md#repos-sticky-header
@@ -2653,13 +2658,11 @@ interface RuleOptions {
2653
2658
  /**
2654
2659
  * disallow complex conditional rendering
2655
2660
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2656
- * @deprecated
2657
2661
  */
2658
2662
  'react/no-complex-conditional-rendering'?: Linter.RuleEntry<[]>
2659
2663
  /**
2660
2664
  * disallow complex conditional rendering
2661
2665
  * @see https://eslint-react.xyz/docs/rules/no-complex-conditional-rendering
2662
- * @deprecated
2663
2666
  */
2664
2667
  'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
2665
2668
  /**
@@ -2693,7 +2696,7 @@ interface RuleOptions {
2693
2696
  */
2694
2697
  'react/no-direct-mutation-state'?: Linter.RuleEntry<[]>
2695
2698
  /**
2696
- * disallow duplicate keys in 'key' prop when rendering list
2699
+ * disallow duplicate keys when rendering list
2697
2700
  * @see https://eslint-react.xyz/docs/rules/no-duplicate-key
2698
2701
  */
2699
2702
  'react/no-duplicate-key'?: Linter.RuleEntry<[]>
@@ -2713,7 +2716,7 @@ interface RuleOptions {
2713
2716
  */
2714
2717
  'react/no-missing-component-display-name'?: Linter.RuleEntry<[]>
2715
2718
  /**
2716
- * require 'key' prop when rendering list
2719
+ * require 'key' when rendering list
2717
2720
  * @see https://eslint-react.xyz/docs/rules/no-missing-key
2718
2721
  */
2719
2722
  'react/no-missing-key'?: Linter.RuleEntry<[]>
@@ -4425,6 +4428,11 @@ interface RuleOptions {
4425
4428
  * @see https://typescript-eslint.io/rules/no-unnecessary-condition
4426
4429
  */
4427
4430
  'ts/no-unnecessary-condition'?: Linter.RuleEntry<TsNoUnnecessaryCondition>
4431
+ /**
4432
+ * Disallow unnecessary assignment of constructor property parameter
4433
+ * @see https://typescript-eslint.io/rules/no-unnecessary-parameter-property-assignment
4434
+ */
4435
+ 'ts/no-unnecessary-parameter-property-assignment'?: Linter.RuleEntry<[]>
4428
4436
  /**
4429
4437
  * Disallow unnecessary namespace qualifiers
4430
4438
  * @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
@@ -4507,7 +4515,7 @@ interface RuleOptions {
4507
4515
  'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
4508
4516
  /**
4509
4517
  * Disallow unused variables
4510
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4518
+ * @see https://typescript-eslint.io/rules/no-unused-vars
4511
4519
  */
4512
4520
  'ts/no-unused-vars'?: Linter.RuleEntry<TsNoUnusedVars>
4513
4521
  /**
@@ -5435,7 +5443,7 @@ interface RuleOptions {
5435
5443
  'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
5436
5444
  /**
5437
5445
  * Disallow unused variables
5438
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
5446
+ * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
5439
5447
  */
5440
5448
  'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
5441
5449
  /**
@@ -7503,6 +7511,12 @@ type JsdocInformativeDocs = []|[{
7503
7511
  excludedTags?: string[]
7504
7512
  uselessWords?: string[]
7505
7513
  }]
7514
+ // ----- jsdoc/lines-before-block -----
7515
+ type JsdocLinesBeforeBlock = []|[{
7516
+ excludedTags?: string[]
7517
+ ignoreSameLine?: boolean
7518
+ lines?: number
7519
+ }]
7506
7520
  // ----- jsdoc/match-description -----
7507
7521
  type JsdocMatchDescription = []|[{
7508
7522
  contexts?: (string | {
@@ -9550,9 +9564,9 @@ type PerfectionistSortObjects = []|[{
9550
9564
 
9551
9565
  styledComponents?: boolean
9552
9566
 
9553
- ignorePattern?: string[]
9567
+ destructureOnly?: boolean
9554
9568
 
9555
- customIgnore?: unknown[]
9569
+ ignorePattern?: string[]
9556
9570
 
9557
9571
  groups?: (string | string[])[]
9558
9572
 
@@ -11517,10 +11531,6 @@ type TsNoExtraneousClass = []|[{
11517
11531
  }]
11518
11532
  // ----- ts/no-floating-promises -----
11519
11533
  type TsNoFloatingPromises = []|[{
11520
-
11521
- ignoreVoid?: boolean
11522
-
11523
- ignoreIIFE?: boolean
11524
11534
  allowForKnownSafePromises?: (string | {
11525
11535
  from: "file"
11526
11536
  name: (string | [string, ...(string)[]])
@@ -11545,6 +11555,12 @@ type TsNoFloatingPromises = []|[{
11545
11555
  name: (string | [string, ...(string)[]])
11546
11556
  package: string
11547
11557
  })[]
11558
+
11559
+ checkThenables?: boolean
11560
+
11561
+ ignoreVoid?: boolean
11562
+
11563
+ ignoreIIFE?: boolean
11548
11564
  }]
11549
11565
  // ----- ts/no-inferrable-types -----
11550
11566
  type TsNoInferrableTypes = []|[{
@@ -11900,7 +11916,7 @@ type TsRestrictTemplateExpressions = []|[{
11900
11916
  allowNever?: boolean
11901
11917
  }]
11902
11918
  // ----- ts/return-await -----
11903
- type TsReturnAwait = []|[("in-try-catch" | "always" | "never")]
11919
+ type TsReturnAwait = []|[("in-try-catch" | "always" | "never" | "error-handling-correctness-only")]
11904
11920
  // ----- ts/sort-type-constituents -----
11905
11921
  type TsSortTypeConstituents = []|[{
11906
11922
 
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
1
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.4/node_modules/@vinicunca/perkakas/dist/chunk-HLL46USD.js
2
2
  function r(e2) {
3
3
  if (typeof e2 != "object" || e2 === null) return false;
4
4
  let o = Object.getPrototypeOf(e2);
5
5
  return o === null || o === Object.prototype;
6
6
  }
7
7
 
8
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
8
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.0.4/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
9
9
  function e(o) {
10
10
  return typeof o == "boolean";
11
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "2.7.3",
4
+ "version": "2.7.5",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -58,11 +58,11 @@
58
58
  "eslint": ">=8.57.0"
59
59
  },
60
60
  "dependencies": {
61
- "@eslint-react/eslint-plugin": "^1.6.0",
62
- "@stylistic/eslint-plugin": "^2.6.0-beta.0",
63
- "@typescript-eslint/eslint-plugin": "8.0.0-alpha.40",
64
- "@typescript-eslint/parser": "8.0.0-alpha.40",
65
- "@unocss/eslint-plugin": "^0.61.6",
61
+ "@eslint-react/eslint-plugin": "^1.9.1",
62
+ "@stylistic/eslint-plugin": "^2.6.2",
63
+ "@typescript-eslint/eslint-plugin": "8.0.1",
64
+ "@typescript-eslint/parser": "^8.0.1",
65
+ "@unocss/eslint-plugin": "^0.61.9",
66
66
  "eslint-config-flat-gitignore": "^0.1.8",
67
67
  "eslint-flat-config-utils": "^0.3.0",
68
68
  "eslint-merge-processors": "^0.1.0",
@@ -70,22 +70,22 @@
70
70
  "eslint-plugin-eslint-comments": "^3.2.0",
71
71
  "eslint-plugin-format": "^0.1.2",
72
72
  "eslint-plugin-import-x": "^3.1.0",
73
- "eslint-plugin-jsdoc": "^48.8.3",
73
+ "eslint-plugin-jsdoc": "^50.0.0",
74
74
  "eslint-plugin-jsonc": "^2.16.0",
75
75
  "eslint-plugin-markdown": "^5.1.0",
76
- "eslint-plugin-n": "^17.10.1",
76
+ "eslint-plugin-n": "^17.10.2",
77
77
  "eslint-plugin-no-only-tests": "^3.1.0",
78
- "eslint-plugin-perfectionist": "^3.0.0",
78
+ "eslint-plugin-perfectionist": "^3.1.3",
79
79
  "eslint-plugin-react-hooks": "^4.6.2",
80
80
  "eslint-plugin-regexp": "^2.6.0",
81
81
  "eslint-plugin-sonarjs": "^1.0.4",
82
82
  "eslint-plugin-unicorn": "^55.0.0",
83
- "eslint-plugin-unused-imports": "^4.0.1",
83
+ "eslint-plugin-unused-imports": "^4.1.2",
84
84
  "eslint-plugin-vitest": "^0.5.4",
85
85
  "eslint-plugin-vue": "^9.27.0",
86
86
  "eslint-plugin-yml": "^1.14.0",
87
87
  "eslint-processor-vue-blocks": "^0.1.2",
88
- "globals": "^15.8.0",
88
+ "globals": "^15.9.0",
89
89
  "jsonc-eslint-parser": "^2.4.0",
90
90
  "local-pkg": "^0.5.0",
91
91
  "vue-eslint-parser": "^9.4.3",
@@ -99,8 +99,8 @@
99
99
  "fast-glob": "^3.3.2",
100
100
  "fs-extra": "^11.2.0",
101
101
  "react": "^18.3.1",
102
- "tsup": "^8.2.3",
103
- "vue": "^3.4.34"
102
+ "tsup": "^8.2.4",
103
+ "vue": "^3.4.37"
104
104
  },
105
105
  "scripts": {
106
106
  "lint": "eslint -v",