@vinicunca/eslint-config 2.7.4 → 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 +2 -2
- package/dist/index.d.cts +18 -9
- package/dist/index.d.ts +18 -9
- package/dist/index.js +2 -2
- package/package.json +11 -11
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.
|
|
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.
|
|
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/
|
|
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
|
|
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'
|
|
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<[]>
|
|
@@ -4512,7 +4515,7 @@ interface RuleOptions {
|
|
|
4512
4515
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
|
|
4513
4516
|
/**
|
|
4514
4517
|
* Disallow unused variables
|
|
4515
|
-
* @see https://
|
|
4518
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
4516
4519
|
*/
|
|
4517
4520
|
'ts/no-unused-vars'?: Linter.RuleEntry<TsNoUnusedVars>
|
|
4518
4521
|
/**
|
|
@@ -5440,7 +5443,7 @@ interface RuleOptions {
|
|
|
5440
5443
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
5441
5444
|
/**
|
|
5442
5445
|
* Disallow unused variables
|
|
5443
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
5446
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
5444
5447
|
*/
|
|
5445
5448
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
5446
5449
|
/**
|
|
@@ -7508,6 +7511,12 @@ type JsdocInformativeDocs = []|[{
|
|
|
7508
7511
|
excludedTags?: string[]
|
|
7509
7512
|
uselessWords?: string[]
|
|
7510
7513
|
}]
|
|
7514
|
+
// ----- jsdoc/lines-before-block -----
|
|
7515
|
+
type JsdocLinesBeforeBlock = []|[{
|
|
7516
|
+
excludedTags?: string[]
|
|
7517
|
+
ignoreSameLine?: boolean
|
|
7518
|
+
lines?: number
|
|
7519
|
+
}]
|
|
7511
7520
|
// ----- jsdoc/match-description -----
|
|
7512
7521
|
type JsdocMatchDescription = []|[{
|
|
7513
7522
|
contexts?: (string | {
|
|
@@ -9555,9 +9564,9 @@ type PerfectionistSortObjects = []|[{
|
|
|
9555
9564
|
|
|
9556
9565
|
styledComponents?: boolean
|
|
9557
9566
|
|
|
9558
|
-
|
|
9567
|
+
destructureOnly?: boolean
|
|
9559
9568
|
|
|
9560
|
-
|
|
9569
|
+
ignorePattern?: string[]
|
|
9561
9570
|
|
|
9562
9571
|
groups?: (string | string[])[]
|
|
9563
9572
|
|
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/
|
|
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
|
|
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'
|
|
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<[]>
|
|
@@ -4512,7 +4515,7 @@ interface RuleOptions {
|
|
|
4512
4515
|
'ts/no-unused-expressions'?: Linter.RuleEntry<TsNoUnusedExpressions>
|
|
4513
4516
|
/**
|
|
4514
4517
|
* Disallow unused variables
|
|
4515
|
-
* @see https://
|
|
4518
|
+
* @see https://typescript-eslint.io/rules/no-unused-vars
|
|
4516
4519
|
*/
|
|
4517
4520
|
'ts/no-unused-vars'?: Linter.RuleEntry<TsNoUnusedVars>
|
|
4518
4521
|
/**
|
|
@@ -5440,7 +5443,7 @@ interface RuleOptions {
|
|
|
5440
5443
|
'unused-imports/no-unused-imports'?: Linter.RuleEntry<UnusedImportsNoUnusedImports>
|
|
5441
5444
|
/**
|
|
5442
5445
|
* Disallow unused variables
|
|
5443
|
-
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-
|
|
5446
|
+
* @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-vars.md
|
|
5444
5447
|
*/
|
|
5445
5448
|
'unused-imports/no-unused-vars'?: Linter.RuleEntry<UnusedImportsNoUnusedVars>
|
|
5446
5449
|
/**
|
|
@@ -7508,6 +7511,12 @@ type JsdocInformativeDocs = []|[{
|
|
|
7508
7511
|
excludedTags?: string[]
|
|
7509
7512
|
uselessWords?: string[]
|
|
7510
7513
|
}]
|
|
7514
|
+
// ----- jsdoc/lines-before-block -----
|
|
7515
|
+
type JsdocLinesBeforeBlock = []|[{
|
|
7516
|
+
excludedTags?: string[]
|
|
7517
|
+
ignoreSameLine?: boolean
|
|
7518
|
+
lines?: number
|
|
7519
|
+
}]
|
|
7511
7520
|
// ----- jsdoc/match-description -----
|
|
7512
7521
|
type JsdocMatchDescription = []|[{
|
|
7513
7522
|
contexts?: (string | {
|
|
@@ -9555,9 +9564,9 @@ type PerfectionistSortObjects = []|[{
|
|
|
9555
9564
|
|
|
9556
9565
|
styledComponents?: boolean
|
|
9557
9566
|
|
|
9558
|
-
|
|
9567
|
+
destructureOnly?: boolean
|
|
9559
9568
|
|
|
9560
|
-
|
|
9569
|
+
ignorePattern?: string[]
|
|
9561
9570
|
|
|
9562
9571
|
groups?: (string | string[])[]
|
|
9563
9572
|
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// ../node_modules/.pnpm/@vinicunca+perkakas@1.0.
|
|
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.
|
|
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.
|
|
4
|
+
"version": "2.7.5",
|
|
5
5
|
"description": "Vinicunca ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "praburangki",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"eslint": ">=8.57.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@eslint-react/eslint-plugin": "^1.
|
|
62
|
-
"@stylistic/eslint-plugin": "^2.6.
|
|
63
|
-
"@typescript-eslint/eslint-plugin": "8.0.
|
|
64
|
-
"@typescript-eslint/parser": "8.0.
|
|
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
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",
|
|
@@ -70,17 +70,17 @@
|
|
|
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": "^
|
|
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.
|
|
76
|
+
"eslint-plugin-n": "^17.10.2",
|
|
77
77
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
78
|
-
"eslint-plugin-perfectionist": "^3.
|
|
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.
|
|
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",
|
|
@@ -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.
|
|
103
|
-
"vue": "^3.4.
|
|
102
|
+
"tsup": "^8.2.4",
|
|
103
|
+
"vue": "^3.4.37"
|
|
104
104
|
},
|
|
105
105
|
"scripts": {
|
|
106
106
|
"lint": "eslint -v",
|