@bfra.me/eslint-config 0.25.0 → 0.25.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/lib/index.d.ts +10 -5
- package/lib/index.js +1 -1
- package/package.json +15 -15
- package/src/rules.d.ts +10 -5
package/lib/index.d.ts
CHANGED
|
@@ -1900,7 +1900,7 @@ interface Rules {
|
|
|
1900
1900
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1901
1901
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1902
1902
|
*/
|
|
1903
|
-
'markdown/table-column-count'?: Linter.RuleEntry<
|
|
1903
|
+
'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>
|
|
1904
1904
|
/**
|
|
1905
1905
|
* Enforce a maximum number of classes per file
|
|
1906
1906
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -6131,7 +6131,6 @@ type TypescriptEslintPreferDestructuring = []|[({
|
|
|
6131
6131
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
6132
6132
|
|
|
6133
6133
|
enforceForRenamedProperties?: boolean
|
|
6134
|
-
[k: string]: unknown | undefined
|
|
6135
6134
|
}]
|
|
6136
6135
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
6137
6136
|
type TypescriptEslintPreferLiteralEnumMember = []|[{
|
|
@@ -6160,7 +6159,6 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
|
|
|
6160
6159
|
number?: boolean
|
|
6161
6160
|
|
|
6162
6161
|
string?: boolean
|
|
6163
|
-
[k: string]: unknown | undefined
|
|
6164
6162
|
} | true)
|
|
6165
6163
|
|
|
6166
6164
|
ignoreTernaryTests?: boolean
|
|
@@ -6380,6 +6378,7 @@ type AccessorPairs = []|[{
|
|
|
6380
6378
|
getWithoutSet?: boolean
|
|
6381
6379
|
setWithoutGet?: boolean
|
|
6382
6380
|
enforceForClassMembers?: boolean
|
|
6381
|
+
enforceForTSTypes?: boolean
|
|
6383
6382
|
}]
|
|
6384
6383
|
// ----- array-bracket-newline -----
|
|
6385
6384
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
@@ -6584,7 +6583,9 @@ type GetterReturn = []|[{
|
|
|
6584
6583
|
allowImplicit?: boolean
|
|
6585
6584
|
}]
|
|
6586
6585
|
// ----- grouped-accessor-pairs -----
|
|
6587
|
-
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]
|
|
6586
|
+
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]|[("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
|
|
6587
|
+
enforceForTSTypes?: boolean
|
|
6588
|
+
}]
|
|
6588
6589
|
// ----- handle-callback-err -----
|
|
6589
6590
|
type HandleCallbackErr = []|[string]
|
|
6590
6591
|
// ----- id-blacklist -----
|
|
@@ -8101,6 +8102,10 @@ type MarkdownNoUnusedDefinitions = []|[{
|
|
|
8101
8102
|
allowDefinitions?: string[]
|
|
8102
8103
|
allowFootnoteDefinitions?: string[]
|
|
8103
8104
|
}]
|
|
8105
|
+
// ----- markdown/table-column-count -----
|
|
8106
|
+
type MarkdownTableColumnCount = []|[{
|
|
8107
|
+
checkMissingCells?: boolean
|
|
8108
|
+
}]
|
|
8104
8109
|
// ----- max-classes-per-file -----
|
|
8105
8110
|
type MaxClassesPerFile = []|[(number | {
|
|
8106
8111
|
ignoreExpressions?: boolean
|
|
@@ -8580,6 +8585,7 @@ type NoUnusedVars = []|[(("all" | "local") | {
|
|
|
8580
8585
|
caughtErrorsIgnorePattern?: string
|
|
8581
8586
|
destructuredArrayIgnorePattern?: string
|
|
8582
8587
|
ignoreClassWithStaticInitBlock?: boolean
|
|
8588
|
+
ignoreUsingDeclarations?: boolean
|
|
8583
8589
|
reportUsedIgnorePattern?: boolean
|
|
8584
8590
|
})]
|
|
8585
8591
|
// ----- no-use-before-define -----
|
|
@@ -12005,7 +12011,6 @@ type PrettierPrettier = []|[{
|
|
|
12005
12011
|
fileInfoOptions?: {
|
|
12006
12012
|
[k: string]: unknown | undefined
|
|
12007
12013
|
}
|
|
12008
|
-
[k: string]: unknown | undefined
|
|
12009
12014
|
}]
|
|
12010
12015
|
// ----- quote-props -----
|
|
12011
12016
|
type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bfra.me/eslint-config",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.2",
|
|
4
4
|
"description": "Shared ESLint configuration for bfra.me",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bfra.me",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@eslint-community/eslint-plugin-eslint-comments": "4.5.0",
|
|
41
|
-
"@eslint/markdown": "7.
|
|
41
|
+
"@eslint/markdown": "7.1.0",
|
|
42
42
|
"eslint-config-flat-gitignore": "2.1.0",
|
|
43
|
-
"eslint-flat-config-utils": "2.1.
|
|
43
|
+
"eslint-flat-config-utils": "2.1.1",
|
|
44
44
|
"eslint-merge-processors": "2.0.0",
|
|
45
45
|
"eslint-plugin-command": "3.3.1",
|
|
46
46
|
"eslint-plugin-import-x": "4.16.1",
|
|
47
47
|
"eslint-plugin-jsdoc": "51.4.1",
|
|
48
48
|
"eslint-plugin-json-schema-validator": "5.4.1",
|
|
49
49
|
"eslint-plugin-jsonc": "2.20.1",
|
|
50
|
-
"eslint-plugin-n": "17.21.
|
|
50
|
+
"eslint-plugin-n": "17.21.3",
|
|
51
51
|
"eslint-plugin-perfectionist": "4.15.0",
|
|
52
|
-
"eslint-plugin-regexp": "2.9.
|
|
52
|
+
"eslint-plugin-regexp": "2.9.1",
|
|
53
53
|
"eslint-plugin-toml": "0.12.0",
|
|
54
54
|
"eslint-plugin-unicorn": "59.0.1",
|
|
55
55
|
"eslint-plugin-unused-imports": "4.1.4",
|
|
@@ -59,26 +59,26 @@
|
|
|
59
59
|
"local-pkg": "1.1.1",
|
|
60
60
|
"package-directory": "8.1.0",
|
|
61
61
|
"package-manager-detector": "1.3.0",
|
|
62
|
-
"typescript-eslint": "8.
|
|
62
|
+
"typescript-eslint": "8.39.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@eslint/config-inspector": "1.1.0",
|
|
66
|
-
"@eslint/js": "9.
|
|
66
|
+
"@eslint/js": "9.32.0",
|
|
67
67
|
"@types/eslint-config-prettier": "6.11.3",
|
|
68
|
-
"@typescript-eslint/types": "8.
|
|
68
|
+
"@typescript-eslint/types": "8.39.0",
|
|
69
69
|
"@vitest/eslint-plugin": "1.3.4",
|
|
70
|
-
"eslint": "9.
|
|
71
|
-
"eslint-config-prettier": "10.1.
|
|
70
|
+
"eslint": "9.32.0",
|
|
71
|
+
"eslint-config-prettier": "10.1.8",
|
|
72
72
|
"eslint-plugin-no-only-tests": "3.3.0",
|
|
73
73
|
"eslint-plugin-node-dependencies": "1.1.2",
|
|
74
|
-
"eslint-plugin-pnpm": "1.
|
|
75
|
-
"eslint-plugin-prettier": "5.5.
|
|
76
|
-
"eslint-typegen": "2.
|
|
74
|
+
"eslint-plugin-pnpm": "1.1.0",
|
|
75
|
+
"eslint-plugin-prettier": "5.5.4",
|
|
76
|
+
"eslint-typegen": "2.3.0",
|
|
77
77
|
"tsup": "8.5.0",
|
|
78
78
|
"tsx": "4.20.3",
|
|
79
|
-
"@bfra.me/tsconfig": "0.11.0",
|
|
80
79
|
"@bfra.me/prettier-config": "0.16.0",
|
|
81
|
-
"@bfra.me/eslint-config": "0.25.
|
|
80
|
+
"@bfra.me/eslint-config": "0.25.2",
|
|
81
|
+
"@bfra.me/tsconfig": "0.11.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@vitest/eslint-plugin": "^1.1.21",
|
package/src/rules.d.ts
CHANGED
|
@@ -1893,7 +1893,7 @@ export interface Rules {
|
|
|
1893
1893
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
1894
1894
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
1895
1895
|
*/
|
|
1896
|
-
'markdown/table-column-count'?: Linter.RuleEntry<
|
|
1896
|
+
'markdown/table-column-count'?: Linter.RuleEntry<MarkdownTableColumnCount>
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Enforce a maximum number of classes per file
|
|
1899
1899
|
* @see https://eslint.org/docs/latest/rules/max-classes-per-file
|
|
@@ -6124,7 +6124,6 @@ type TypescriptEslintPreferDestructuring = []|[({
|
|
|
6124
6124
|
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
6125
6125
|
|
|
6126
6126
|
enforceForRenamedProperties?: boolean
|
|
6127
|
-
[k: string]: unknown | undefined
|
|
6128
6127
|
}]
|
|
6129
6128
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
6130
6129
|
type TypescriptEslintPreferLiteralEnumMember = []|[{
|
|
@@ -6153,7 +6152,6 @@ type TypescriptEslintPreferNullishCoalescing = []|[{
|
|
|
6153
6152
|
number?: boolean
|
|
6154
6153
|
|
|
6155
6154
|
string?: boolean
|
|
6156
|
-
[k: string]: unknown | undefined
|
|
6157
6155
|
} | true)
|
|
6158
6156
|
|
|
6159
6157
|
ignoreTernaryTests?: boolean
|
|
@@ -6373,6 +6371,7 @@ type AccessorPairs = []|[{
|
|
|
6373
6371
|
getWithoutSet?: boolean
|
|
6374
6372
|
setWithoutGet?: boolean
|
|
6375
6373
|
enforceForClassMembers?: boolean
|
|
6374
|
+
enforceForTSTypes?: boolean
|
|
6376
6375
|
}]
|
|
6377
6376
|
// ----- array-bracket-newline -----
|
|
6378
6377
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
@@ -6577,7 +6576,9 @@ type GetterReturn = []|[{
|
|
|
6577
6576
|
allowImplicit?: boolean
|
|
6578
6577
|
}]
|
|
6579
6578
|
// ----- grouped-accessor-pairs -----
|
|
6580
|
-
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]
|
|
6579
|
+
type GroupedAccessorPairs = []|[("anyOrder" | "getBeforeSet" | "setBeforeGet")]|[("anyOrder" | "getBeforeSet" | "setBeforeGet"), {
|
|
6580
|
+
enforceForTSTypes?: boolean
|
|
6581
|
+
}]
|
|
6581
6582
|
// ----- handle-callback-err -----
|
|
6582
6583
|
type HandleCallbackErr = []|[string]
|
|
6583
6584
|
// ----- id-blacklist -----
|
|
@@ -8094,6 +8095,10 @@ type MarkdownNoUnusedDefinitions = []|[{
|
|
|
8094
8095
|
allowDefinitions?: string[]
|
|
8095
8096
|
allowFootnoteDefinitions?: string[]
|
|
8096
8097
|
}]
|
|
8098
|
+
// ----- markdown/table-column-count -----
|
|
8099
|
+
type MarkdownTableColumnCount = []|[{
|
|
8100
|
+
checkMissingCells?: boolean
|
|
8101
|
+
}]
|
|
8097
8102
|
// ----- max-classes-per-file -----
|
|
8098
8103
|
type MaxClassesPerFile = []|[(number | {
|
|
8099
8104
|
ignoreExpressions?: boolean
|
|
@@ -8573,6 +8578,7 @@ type NoUnusedVars = []|[(("all" | "local") | {
|
|
|
8573
8578
|
caughtErrorsIgnorePattern?: string
|
|
8574
8579
|
destructuredArrayIgnorePattern?: string
|
|
8575
8580
|
ignoreClassWithStaticInitBlock?: boolean
|
|
8581
|
+
ignoreUsingDeclarations?: boolean
|
|
8576
8582
|
reportUsedIgnorePattern?: boolean
|
|
8577
8583
|
})]
|
|
8578
8584
|
// ----- no-use-before-define -----
|
|
@@ -11998,7 +12004,6 @@ type PrettierPrettier = []|[{
|
|
|
11998
12004
|
fileInfoOptions?: {
|
|
11999
12005
|
[k: string]: unknown | undefined
|
|
12000
12006
|
}
|
|
12001
|
-
[k: string]: unknown | undefined
|
|
12002
12007
|
}]
|
|
12003
12008
|
// ----- quote-props -----
|
|
12004
12009
|
type QuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent-as-needed")] | []|[("always" | "as-needed" | "consistent" | "consistent-as-needed")]|[("always" | "as-needed" | "consistent" | "consistent-as-needed"), {
|