@ncontiero/eslint-config 8.2.1 → 8.2.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.d.mts +7 -5
- package/package.json +26 -26
package/dist/index.d.mts
CHANGED
|
@@ -3778,7 +3778,7 @@ interface RuleOptions {
|
|
|
3778
3778
|
*/
|
|
3779
3779
|
'react/jsx-no-useless-fragment'?: Linter.RuleEntry<ReactJsxNoUselessFragment>;
|
|
3780
3780
|
/**
|
|
3781
|
-
* Enforces
|
|
3781
|
+
* Enforces identifier names assigned from `createContext` calls to be a valid component name with the suffix `Context`.
|
|
3782
3782
|
* @see https://eslint-react.xyz/docs/rules/naming-convention-context-name
|
|
3783
3783
|
*/
|
|
3784
3784
|
'react/naming-convention-context-name'?: Linter.RuleEntry<[]>;
|
|
@@ -3858,7 +3858,7 @@ interface RuleOptions {
|
|
|
3858
3858
|
*/
|
|
3859
3859
|
'react/no-context-provider'?: Linter.RuleEntry<[]>;
|
|
3860
3860
|
/**
|
|
3861
|
-
* Disallows 'createRef' in function components.
|
|
3861
|
+
* Disallows 'createRef' in function components and Hooks.
|
|
3862
3862
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
3863
3863
|
*/
|
|
3864
3864
|
'react/no-create-ref'?: Linter.RuleEntry<[]>;
|
|
@@ -3983,7 +3983,7 @@ interface RuleOptions {
|
|
|
3983
3983
|
*/
|
|
3984
3984
|
'react/no-unused-props'?: Linter.RuleEntry<[]>;
|
|
3985
3985
|
/**
|
|
3986
|
-
* Warns about state variables that are defined but never used
|
|
3986
|
+
* Warns about state variables that are defined but never used.
|
|
3987
3987
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
3988
3988
|
*/
|
|
3989
3989
|
'react/no-unused-state'?: Linter.RuleEntry<[]>;
|
|
@@ -4153,7 +4153,7 @@ interface RuleOptions {
|
|
|
4153
4153
|
*/
|
|
4154
4154
|
'react/x-no-context-provider'?: Linter.RuleEntry<[]>;
|
|
4155
4155
|
/**
|
|
4156
|
-
* Disallows 'createRef' in function components.
|
|
4156
|
+
* Disallows 'createRef' in function components and Hooks.
|
|
4157
4157
|
* @see https://eslint-react.xyz/docs/rules/no-create-ref
|
|
4158
4158
|
*/
|
|
4159
4159
|
'react/x-no-create-ref'?: Linter.RuleEntry<[]>;
|
|
@@ -4278,7 +4278,7 @@ interface RuleOptions {
|
|
|
4278
4278
|
*/
|
|
4279
4279
|
'react/x-no-unused-props'?: Linter.RuleEntry<[]>;
|
|
4280
4280
|
/**
|
|
4281
|
-
* Warns about state variables that are defined but never used
|
|
4281
|
+
* Warns about state variables that are defined but never used.
|
|
4282
4282
|
* @see https://eslint-react.xyz/docs/rules/no-unused-state
|
|
4283
4283
|
*/
|
|
4284
4284
|
'react/x-no-unused-state'?: Linter.RuleEntry<[]>;
|
|
@@ -6894,6 +6894,7 @@ type HandleCallbackErr = [] | [string]; // ----- html/attrs-newline -----
|
|
|
6894
6894
|
type HtmlAttrsNewline = [] | [{
|
|
6895
6895
|
closeStyle?: ("newline" | "sameline");
|
|
6896
6896
|
ifAttrsMoreThan?: number;
|
|
6897
|
+
maxLen?: number;
|
|
6897
6898
|
skip?: string[];
|
|
6898
6899
|
inline?: string[];
|
|
6899
6900
|
}]; // ----- html/element-newline -----
|
|
@@ -6989,6 +6990,7 @@ type HtmlRequireOpenGraphProtocol = [] | [string[]]; // ----- html/sort-attrs --
|
|
|
6989
6990
|
type HtmlSortAttrs = [] | [{
|
|
6990
6991
|
priority?: (string | {
|
|
6991
6992
|
pattern: string;
|
|
6993
|
+
order?: ("preserve" | "alphabetically");
|
|
6992
6994
|
})[];
|
|
6993
6995
|
}]; // ----- html/use-baseline -----
|
|
6994
6996
|
type HtmlUseBaseline = [] | [{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncontiero/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.2",
|
|
5
5
|
"description": "Nicolas's ESLint config.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Nicolas Contiero",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@e18e/eslint-plugin": "^0.5.0",
|
|
41
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
42
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
43
|
-
"@eslint/markdown": "^8.0.
|
|
44
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
45
|
-
"@html-eslint/parser": "^0.
|
|
41
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
42
|
+
"@eslint-react/eslint-plugin": "^5.8.8",
|
|
43
|
+
"@eslint/markdown": "^8.0.2",
|
|
44
|
+
"@html-eslint/eslint-plugin": "^0.61.0",
|
|
45
|
+
"@html-eslint/parser": "^0.61.0",
|
|
46
46
|
"@next/eslint-plugin-next": "^16.2.6",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
48
|
-
"@typescript-eslint/parser": "^8.
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
48
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
49
49
|
"eslint-config-flat-gitignore": "^2.3.0",
|
|
50
50
|
"eslint-merge-processors": "^2.0.0",
|
|
51
51
|
"eslint-plugin-antfu": "^3.2.3",
|
|
@@ -53,45 +53,45 @@
|
|
|
53
53
|
"eslint-plugin-command": "^3.5.2",
|
|
54
54
|
"eslint-plugin-de-morgan": "^2.1.2",
|
|
55
55
|
"eslint-plugin-import-x": "^4.16.2",
|
|
56
|
-
"eslint-plugin-jsdoc": "^
|
|
57
|
-
"eslint-plugin-jsonc": "^3.
|
|
56
|
+
"eslint-plugin-jsdoc": "^63.0.0",
|
|
57
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
58
58
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
59
59
|
"eslint-plugin-n": "^18.0.1",
|
|
60
60
|
"eslint-plugin-perfectionist": "^5.9.0",
|
|
61
|
-
"eslint-plugin-prettier": "^5.5.
|
|
61
|
+
"eslint-plugin-prettier": "^5.5.6",
|
|
62
62
|
"eslint-plugin-promise": "^7.3.0",
|
|
63
63
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
64
64
|
"eslint-plugin-regexp": "^3.1.0",
|
|
65
|
-
"eslint-plugin-toml": "^1.
|
|
65
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
66
66
|
"eslint-plugin-unicorn": "^64.0.0",
|
|
67
67
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
68
|
-
"eslint-plugin-yml": "^3.
|
|
68
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
69
69
|
"globals": "^17.6.0",
|
|
70
|
-
"local-pkg": "^1.1
|
|
70
|
+
"local-pkg": "^1.2.1",
|
|
71
71
|
"prettier": "^3.8.3",
|
|
72
72
|
"toml-eslint-parser": "^1.0.3",
|
|
73
73
|
"yaml-eslint-parser": "^2.0.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@changesets/cli": "^2.31.0",
|
|
77
|
-
"@commitlint/cli": "^21.0.
|
|
78
|
-
"@commitlint/config-conventional": "^21.0.
|
|
79
|
-
"@eslint/config-inspector": "^3.0.
|
|
80
|
-
"@ncontiero/changelog-github": "^2.1.
|
|
77
|
+
"@commitlint/cli": "^21.0.2",
|
|
78
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
79
|
+
"@eslint/config-inspector": "^3.0.4",
|
|
80
|
+
"@ncontiero/changelog-github": "^2.1.4",
|
|
81
81
|
"@ncontiero/prettier-config": "^1.0.0",
|
|
82
|
-
"@tanstack/eslint-plugin-query": "^5.100.
|
|
82
|
+
"@tanstack/eslint-plugin-query": "^5.100.14",
|
|
83
83
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
84
|
-
"@types/node": "^25.
|
|
85
|
-
"eslint": "^10.
|
|
84
|
+
"@types/node": "^25.9.1",
|
|
85
|
+
"eslint": "^10.4.1",
|
|
86
86
|
"eslint-typegen": "^2.3.1",
|
|
87
87
|
"husky": "^9.1.7",
|
|
88
88
|
"nano-staged": "^1.0.2",
|
|
89
|
-
"tinyexec": "^1.
|
|
90
|
-
"tinyglobby": "^0.2.
|
|
91
|
-
"tsdown": "^0.22.
|
|
92
|
-
"tsx": "^4.
|
|
89
|
+
"tinyexec": "^1.2.4",
|
|
90
|
+
"tinyglobby": "^0.2.17",
|
|
91
|
+
"tsdown": "^0.22.1",
|
|
92
|
+
"tsx": "^4.22.4",
|
|
93
93
|
"typescript": "^6.0.3",
|
|
94
|
-
"vitest": "^4.1.
|
|
94
|
+
"vitest": "^4.1.7"
|
|
95
95
|
},
|
|
96
96
|
"engines": {
|
|
97
97
|
"node": ">=20.19.0"
|