@vinicunca/eslint-config 2.15.6 → 2.15.7

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,23 +112,23 @@ __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.2_postcss@8.4.49_tsx@4.19.2_typescript@5.7.3_yaml@2.6.1/node_modules/tsup/assets/cjs_shims.js
115
+ // ../node_modules/.pnpm/tsup@8.3.5_jiti@2.4.2_postcss@8.5.1_tsx@4.19.2_typescript@5.7.3_yaml@2.6.1/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
 
119
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
119
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
120
120
  function r(o) {
121
121
  if (typeof o != "object" || o === null) return false;
122
122
  let e3 = Object.getPrototypeOf(o);
123
123
  return e3 === null || e3 === Object.prototype;
124
124
  }
125
125
 
126
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
126
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
127
127
  function e(r2) {
128
128
  return typeof r2 == "number" && !Number.isNaN(r2);
129
129
  }
130
130
 
131
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
131
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
132
132
  function e2(o) {
133
133
  return typeof o == "boolean";
134
134
  }
package/dist/index.d.cts CHANGED
@@ -477,7 +477,7 @@ interface RuleOptions {
477
477
  */
478
478
  'default-case'?: Linter.RuleEntry<DefaultCase>
479
479
  /**
480
- * Enforce `default` clauses in switch statements to be last
480
+ * Enforce `default` clauses in `switch` statements to be last
481
481
  * @see https://eslint.org/docs/latest/rules/default-case-last
482
482
  */
483
483
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -5123,7 +5123,7 @@ interface RuleOptions {
5123
5123
  */
5124
5124
  'sonar/xpath'?: Linter.RuleEntry<[]>
5125
5125
  /**
5126
- * Enforce sorted import declarations within modules
5126
+ * Enforce sorted `import` declarations within modules
5127
5127
  * @see https://eslint.org/docs/latest/rules/sort-imports
5128
5128
  */
5129
5129
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -6584,7 +6584,7 @@ interface RuleOptions {
6584
6584
  * Disallow using code marked as `@deprecated`
6585
6585
  * @see https://typescript-eslint.io/rules/no-deprecated
6586
6586
  */
6587
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
6587
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
6588
6588
  /**
6589
6589
  * Disallow duplicate class members
6590
6590
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -6702,6 +6702,11 @@ interface RuleOptions {
6702
6702
  * @see https://typescript-eslint.io/rules/no-misused-promises
6703
6703
  */
6704
6704
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
6705
+ /**
6706
+ * Disallow using the spread operator when it might cause unexpected behavior
6707
+ * @see https://typescript-eslint.io/rules/no-misused-spread
6708
+ */
6709
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
6705
6710
  /**
6706
6711
  * Disallow enums from having both number and string members
6707
6712
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -13714,6 +13719,7 @@ type StyleKeySpacing = []|[({
13714
13719
  mode?: ("strict" | "minimum")
13715
13720
  beforeColon?: boolean
13716
13721
  afterColon?: boolean
13722
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
13717
13723
  } | {
13718
13724
  singleLine?: {
13719
13725
  mode?: ("strict" | "minimum")
@@ -14229,6 +14235,7 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
14229
14235
  enforceForNewInMemberExpressions?: boolean
14230
14236
  enforceForFunctionPrototypeMethods?: boolean
14231
14237
  allowParensAfterCommentPattern?: string
14238
+ nestedConditionalExpressions?: boolean
14232
14239
  }])
14233
14240
  // ----- style/no-mixed-operators -----
14234
14241
  type StyleNoMixedOperators = []|[{
@@ -14326,14 +14333,14 @@ type StyleOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("af
14326
14333
  }
14327
14334
  }]
14328
14335
  // ----- style/padded-blocks -----
14329
- type StylePaddedBlocks = []|[(("always" | "never") | {
14330
- blocks?: ("always" | "never")
14331
- switches?: ("always" | "never")
14332
- classes?: ("always" | "never")
14333
- })]|[(("always" | "never") | {
14334
- blocks?: ("always" | "never")
14335
- switches?: ("always" | "never")
14336
- classes?: ("always" | "never")
14336
+ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
14337
+ blocks?: ("always" | "never" | "start" | "end")
14338
+ switches?: ("always" | "never" | "start" | "end")
14339
+ classes?: ("always" | "never" | "start" | "end")
14340
+ })]|[(("always" | "never" | "start" | "end") | {
14341
+ blocks?: ("always" | "never" | "start" | "end")
14342
+ switches?: ("always" | "never" | "start" | "end")
14343
+ classes?: ("always" | "never" | "start" | "end")
14337
14344
  }), {
14338
14345
  allowSingleLineBlocks?: boolean
14339
14346
  }]
@@ -14891,6 +14898,8 @@ type TsConsistentTypeAssertions = []|[({
14891
14898
  assertionStyle: "never"
14892
14899
  } | {
14893
14900
 
14901
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
14902
+
14894
14903
  assertionStyle?: ("as" | "angle-bracket")
14895
14904
 
14896
14905
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -15347,6 +15356,22 @@ type TsNoConfusingVoidExpression = []|[{
15347
15356
 
15348
15357
  ignoreVoidReturningFunctions?: boolean
15349
15358
  }]
15359
+ // ----- ts/no-deprecated -----
15360
+ type TsNoDeprecated = []|[{
15361
+
15362
+ allow?: (string | {
15363
+ from: "file"
15364
+ name: (string | [string, ...(string)[]])
15365
+ path?: string
15366
+ } | {
15367
+ from: "lib"
15368
+ name: (string | [string, ...(string)[]])
15369
+ } | {
15370
+ from: "package"
15371
+ name: (string | [string, ...(string)[]])
15372
+ package: string
15373
+ })[]
15374
+ }]
15350
15375
  // ----- ts/no-duplicate-type-constituents -----
15351
15376
  type TsNoDuplicateTypeConstituents = []|[{
15352
15377
 
@@ -15488,6 +15513,22 @@ type TsNoMisusedPromises = []|[{
15488
15513
  variables?: boolean
15489
15514
  })
15490
15515
  }]
15516
+ // ----- ts/no-misused-spread -----
15517
+ type TsNoMisusedSpread = []|[{
15518
+
15519
+ allow?: (string | {
15520
+ from: "file"
15521
+ name: (string | [string, ...(string)[]])
15522
+ path?: string
15523
+ } | {
15524
+ from: "lib"
15525
+ name: (string | [string, ...(string)[]])
15526
+ } | {
15527
+ from: "package"
15528
+ name: (string | [string, ...(string)[]])
15529
+ package: string
15530
+ })[]
15531
+ }]
15491
15532
  // ----- ts/no-namespace -----
15492
15533
  type TsNoNamespace = []|[{
15493
15534
 
@@ -15563,7 +15604,7 @@ type TsNoShadow = []|[{
15563
15604
 
15564
15605
  builtinGlobals?: boolean
15565
15606
 
15566
- hoist?: ("all" | "functions" | "never")
15607
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
15567
15608
 
15568
15609
  ignoreFunctionTypeParameterNameValueShadow?: boolean
15569
15610
 
@@ -16476,6 +16517,7 @@ type VueKeySpacing = []|[({
16476
16517
  mode?: ("strict" | "minimum")
16477
16518
  beforeColon?: boolean
16478
16519
  afterColon?: boolean
16520
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
16479
16521
  } | {
16480
16522
  singleLine?: {
16481
16523
  mode?: ("strict" | "minimum")
@@ -17002,6 +17044,7 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
17002
17044
  enforceForNewInMemberExpressions?: boolean
17003
17045
  enforceForFunctionPrototypeMethods?: boolean
17004
17046
  allowParensAfterCommentPattern?: string
17047
+ nestedConditionalExpressions?: boolean
17005
17048
  }])
17006
17049
  // ----- vue/no-irregular-whitespace -----
17007
17050
  type VueNoIrregularWhitespace = []|[{
package/dist/index.d.ts CHANGED
@@ -477,7 +477,7 @@ interface RuleOptions {
477
477
  */
478
478
  'default-case'?: Linter.RuleEntry<DefaultCase>
479
479
  /**
480
- * Enforce `default` clauses in switch statements to be last
480
+ * Enforce `default` clauses in `switch` statements to be last
481
481
  * @see https://eslint.org/docs/latest/rules/default-case-last
482
482
  */
483
483
  'default-case-last'?: Linter.RuleEntry<[]>
@@ -5123,7 +5123,7 @@ interface RuleOptions {
5123
5123
  */
5124
5124
  'sonar/xpath'?: Linter.RuleEntry<[]>
5125
5125
  /**
5126
- * Enforce sorted import declarations within modules
5126
+ * Enforce sorted `import` declarations within modules
5127
5127
  * @see https://eslint.org/docs/latest/rules/sort-imports
5128
5128
  */
5129
5129
  'sort-imports'?: Linter.RuleEntry<SortImports>
@@ -6584,7 +6584,7 @@ interface RuleOptions {
6584
6584
  * Disallow using code marked as `@deprecated`
6585
6585
  * @see https://typescript-eslint.io/rules/no-deprecated
6586
6586
  */
6587
- 'ts/no-deprecated'?: Linter.RuleEntry<[]>
6587
+ 'ts/no-deprecated'?: Linter.RuleEntry<TsNoDeprecated>
6588
6588
  /**
6589
6589
  * Disallow duplicate class members
6590
6590
  * @see https://typescript-eslint.io/rules/no-dupe-class-members
@@ -6702,6 +6702,11 @@ interface RuleOptions {
6702
6702
  * @see https://typescript-eslint.io/rules/no-misused-promises
6703
6703
  */
6704
6704
  'ts/no-misused-promises'?: Linter.RuleEntry<TsNoMisusedPromises>
6705
+ /**
6706
+ * Disallow using the spread operator when it might cause unexpected behavior
6707
+ * @see https://typescript-eslint.io/rules/no-misused-spread
6708
+ */
6709
+ 'ts/no-misused-spread'?: Linter.RuleEntry<TsNoMisusedSpread>
6705
6710
  /**
6706
6711
  * Disallow enums from having both number and string members
6707
6712
  * @see https://typescript-eslint.io/rules/no-mixed-enums
@@ -13714,6 +13719,7 @@ type StyleKeySpacing = []|[({
13714
13719
  mode?: ("strict" | "minimum")
13715
13720
  beforeColon?: boolean
13716
13721
  afterColon?: boolean
13722
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
13717
13723
  } | {
13718
13724
  singleLine?: {
13719
13725
  mode?: ("strict" | "minimum")
@@ -14229,6 +14235,7 @@ type StyleNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
14229
14235
  enforceForNewInMemberExpressions?: boolean
14230
14236
  enforceForFunctionPrototypeMethods?: boolean
14231
14237
  allowParensAfterCommentPattern?: string
14238
+ nestedConditionalExpressions?: boolean
14232
14239
  }])
14233
14240
  // ----- style/no-mixed-operators -----
14234
14241
  type StyleNoMixedOperators = []|[{
@@ -14326,14 +14333,14 @@ type StyleOperatorLinebreak = []|[(("after" | "before" | "none") | null)]|[(("af
14326
14333
  }
14327
14334
  }]
14328
14335
  // ----- style/padded-blocks -----
14329
- type StylePaddedBlocks = []|[(("always" | "never") | {
14330
- blocks?: ("always" | "never")
14331
- switches?: ("always" | "never")
14332
- classes?: ("always" | "never")
14333
- })]|[(("always" | "never") | {
14334
- blocks?: ("always" | "never")
14335
- switches?: ("always" | "never")
14336
- classes?: ("always" | "never")
14336
+ type StylePaddedBlocks = []|[(("always" | "never" | "start" | "end") | {
14337
+ blocks?: ("always" | "never" | "start" | "end")
14338
+ switches?: ("always" | "never" | "start" | "end")
14339
+ classes?: ("always" | "never" | "start" | "end")
14340
+ })]|[(("always" | "never" | "start" | "end") | {
14341
+ blocks?: ("always" | "never" | "start" | "end")
14342
+ switches?: ("always" | "never" | "start" | "end")
14343
+ classes?: ("always" | "never" | "start" | "end")
14337
14344
  }), {
14338
14345
  allowSingleLineBlocks?: boolean
14339
14346
  }]
@@ -14891,6 +14898,8 @@ type TsConsistentTypeAssertions = []|[({
14891
14898
  assertionStyle: "never"
14892
14899
  } | {
14893
14900
 
14901
+ arrayLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
14902
+
14894
14903
  assertionStyle?: ("as" | "angle-bracket")
14895
14904
 
14896
14905
  objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
@@ -15347,6 +15356,22 @@ type TsNoConfusingVoidExpression = []|[{
15347
15356
 
15348
15357
  ignoreVoidReturningFunctions?: boolean
15349
15358
  }]
15359
+ // ----- ts/no-deprecated -----
15360
+ type TsNoDeprecated = []|[{
15361
+
15362
+ allow?: (string | {
15363
+ from: "file"
15364
+ name: (string | [string, ...(string)[]])
15365
+ path?: string
15366
+ } | {
15367
+ from: "lib"
15368
+ name: (string | [string, ...(string)[]])
15369
+ } | {
15370
+ from: "package"
15371
+ name: (string | [string, ...(string)[]])
15372
+ package: string
15373
+ })[]
15374
+ }]
15350
15375
  // ----- ts/no-duplicate-type-constituents -----
15351
15376
  type TsNoDuplicateTypeConstituents = []|[{
15352
15377
 
@@ -15488,6 +15513,22 @@ type TsNoMisusedPromises = []|[{
15488
15513
  variables?: boolean
15489
15514
  })
15490
15515
  }]
15516
+ // ----- ts/no-misused-spread -----
15517
+ type TsNoMisusedSpread = []|[{
15518
+
15519
+ allow?: (string | {
15520
+ from: "file"
15521
+ name: (string | [string, ...(string)[]])
15522
+ path?: string
15523
+ } | {
15524
+ from: "lib"
15525
+ name: (string | [string, ...(string)[]])
15526
+ } | {
15527
+ from: "package"
15528
+ name: (string | [string, ...(string)[]])
15529
+ package: string
15530
+ })[]
15531
+ }]
15491
15532
  // ----- ts/no-namespace -----
15492
15533
  type TsNoNamespace = []|[{
15493
15534
 
@@ -15563,7 +15604,7 @@ type TsNoShadow = []|[{
15563
15604
 
15564
15605
  builtinGlobals?: boolean
15565
15606
 
15566
- hoist?: ("all" | "functions" | "never")
15607
+ hoist?: ("all" | "functions" | "functions-and-types" | "never" | "types")
15567
15608
 
15568
15609
  ignoreFunctionTypeParameterNameValueShadow?: boolean
15569
15610
 
@@ -16476,6 +16517,7 @@ type VueKeySpacing = []|[({
16476
16517
  mode?: ("strict" | "minimum")
16477
16518
  beforeColon?: boolean
16478
16519
  afterColon?: boolean
16520
+ ignoredNodes?: ("ObjectExpression" | "ObjectPattern" | "ImportDeclaration" | "ExportNamedDeclaration" | "ExportAllDeclaration" | "TSTypeLiteral" | "TSInterfaceBody" | "ClassBody")[]
16479
16521
  } | {
16480
16522
  singleLine?: {
16481
16523
  mode?: ("strict" | "minimum")
@@ -17002,6 +17044,7 @@ type VueNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
17002
17044
  enforceForNewInMemberExpressions?: boolean
17003
17045
  enforceForFunctionPrototypeMethods?: boolean
17004
17046
  allowParensAfterCommentPattern?: string
17047
+ nestedConditionalExpressions?: boolean
17005
17048
  }])
17006
17049
  // ----- vue/no-irregular-whitespace -----
17007
17050
  type VueNoIrregularWhitespace = []|[{
package/dist/index.js CHANGED
@@ -1,16 +1,16 @@
1
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
1
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-6AFNPQW2.js
2
2
  function r(o) {
3
3
  if (typeof o != "object" || o === null) return false;
4
4
  let e3 = Object.getPrototypeOf(o);
5
5
  return e3 === null || e3 === Object.prototype;
6
6
  }
7
7
 
8
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
8
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-Q2HW4RVT.js
9
9
  function e(r2) {
10
10
  return typeof r2 == "number" && !Number.isNaN(r2);
11
11
  }
12
12
 
13
- // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.2/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
13
+ // ../node_modules/.pnpm/@vinicunca+perkakas@1.2.3/node_modules/@vinicunca/perkakas/dist/chunk-AZUJCNUP.js
14
14
  function e2(o) {
15
15
  return typeof o == "boolean";
16
16
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vinicunca/eslint-config",
3
3
  "type": "module",
4
- "version": "2.15.6",
4
+ "version": "2.15.7",
5
5
  "description": "Vinicunca ESLint config",
6
6
  "author": {
7
7
  "name": "praburangki",
@@ -114,11 +114,11 @@
114
114
  "@clack/prompts": "^0.9.1",
115
115
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
116
116
  "@eslint/markdown": "^6.2.1",
117
- "@stylistic/eslint-plugin": "^2.12.1",
118
- "@typescript-eslint/eslint-plugin": "^8.19.1",
119
- "@typescript-eslint/parser": "^8.19.1",
120
- "@unocss/eslint-plugin": "^0.65.4",
121
- "@vitest/eslint-plugin": "^1.1.24",
117
+ "@stylistic/eslint-plugin": "^2.13.0",
118
+ "@typescript-eslint/eslint-plugin": "^8.20.0",
119
+ "@typescript-eslint/parser": "^8.20.0",
120
+ "@unocss/eslint-plugin": "^65.4.2",
121
+ "@vitest/eslint-plugin": "^1.1.25",
122
122
  "eslint-config-flat-gitignore": "^1.0.0",
123
123
  "eslint-flat-config-utils": "^1.0.0",
124
124
  "eslint-merge-processors": "^1.0.0",
@@ -126,7 +126,7 @@
126
126
  "eslint-plugin-command": "^2.1.0",
127
127
  "eslint-plugin-format": "^1.0.1",
128
128
  "eslint-plugin-import-x": "^4.6.1",
129
- "eslint-plugin-jsdoc": "^50.6.1",
129
+ "eslint-plugin-jsdoc": "^50.6.2",
130
130
  "eslint-plugin-jsonc": "^2.18.2",
131
131
  "eslint-plugin-n": "^17.15.1",
132
132
  "eslint-plugin-no-only-tests": "^3.3.0",