@jimmy.codes/eslint-config 5.19.0 → 5.20.0
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.ts +182 -28
- package/dist/index.js +1 -1
- package/dist/{nextjs-XDBJZIHP.js → nextjs-CRRBTFXP.js} +4 -1
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
import * as eslint from 'eslint';
|
|
2
2
|
import { Linter } from 'eslint';
|
|
3
|
+
import * as _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio from '@next/eslint-plugin-next/dist/rules/no-unwanted-polyfillio';
|
|
4
|
+
import * as _next_eslint_plugin_next_dist_rules_no_typos from '@next/eslint-plugin-next/dist/rules/no-typos';
|
|
5
|
+
import * as _next_eslint_plugin_next_dist_rules_no_title_in_document_head from '@next/eslint-plugin-next/dist/rules/no-title-in-document-head';
|
|
6
|
+
import * as _next_eslint_plugin_next_dist_rules_no_sync_scripts from '@next/eslint-plugin-next/dist/rules/no-sync-scripts';
|
|
7
|
+
import * as _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document from '@next/eslint-plugin-next/dist/rules/no-styled-jsx-in-document';
|
|
8
|
+
import * as _next_eslint_plugin_next_dist_rules_no_script_component_in_head from '@next/eslint-plugin-next/dist/rules/no-script-component-in-head';
|
|
9
|
+
import * as _next_eslint_plugin_next_dist_rules_no_page_custom_font from '@next/eslint-plugin-next/dist/rules/no-page-custom-font';
|
|
10
|
+
import * as _next_eslint_plugin_next_dist_rules_no_img_element from '@next/eslint-plugin-next/dist/rules/no-img-element';
|
|
11
|
+
import * as _next_eslint_plugin_next_dist_rules_no_html_link_for_pages from '@next/eslint-plugin-next/dist/rules/no-html-link-for-pages';
|
|
12
|
+
import * as _next_eslint_plugin_next_dist_rules_no_head_import_in_document from '@next/eslint-plugin-next/dist/rules/no-head-import-in-document';
|
|
13
|
+
import * as _next_eslint_plugin_next_dist_rules_no_head_element from '@next/eslint-plugin-next/dist/rules/no-head-element';
|
|
14
|
+
import * as _next_eslint_plugin_next_dist_rules_no_duplicate_head from '@next/eslint-plugin-next/dist/rules/no-duplicate-head';
|
|
15
|
+
import * as _next_eslint_plugin_next_dist_rules_no_document_import_in_page from '@next/eslint-plugin-next/dist/rules/no-document-import-in-page';
|
|
16
|
+
import * as _next_eslint_plugin_next_dist_rules_no_css_tags from '@next/eslint-plugin-next/dist/rules/no-css-tags';
|
|
17
|
+
import * as _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document from '@next/eslint-plugin-next/dist/rules/no-before-interactive-script-outside-document';
|
|
18
|
+
import * as _next_eslint_plugin_next_dist_rules_no_async_client_component from '@next/eslint-plugin-next/dist/rules/no-async-client-component';
|
|
19
|
+
import * as _next_eslint_plugin_next_dist_rules_no_assign_module_variable from '@next/eslint-plugin-next/dist/rules/no-assign-module-variable';
|
|
20
|
+
import * as _next_eslint_plugin_next_dist_rules_next_script_for_ga from '@next/eslint-plugin-next/dist/rules/next-script-for-ga';
|
|
21
|
+
import * as _next_eslint_plugin_next_dist_rules_inline_script_id from '@next/eslint-plugin-next/dist/rules/inline-script-id';
|
|
22
|
+
import * as _next_eslint_plugin_next_dist_rules_google_font_preconnect from '@next/eslint-plugin-next/dist/rules/google-font-preconnect';
|
|
23
|
+
import * as _next_eslint_plugin_next_dist_rules_google_font_display from '@next/eslint-plugin-next/dist/rules/google-font-display';
|
|
3
24
|
import * as eslint_plugin_astro from 'eslint-plugin-astro';
|
|
4
25
|
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
5
26
|
import * as astro_eslint_parser from 'astro-eslint-parser';
|
|
@@ -13,9 +34,64 @@ declare function nextjsConfig(): Promise<{
|
|
|
13
34
|
name: string;
|
|
14
35
|
plugins: {
|
|
15
36
|
"@next/next": {
|
|
37
|
+
rules: {
|
|
38
|
+
"google-font-display": typeof _next_eslint_plugin_next_dist_rules_google_font_display;
|
|
39
|
+
"google-font-preconnect": typeof _next_eslint_plugin_next_dist_rules_google_font_preconnect;
|
|
40
|
+
"inline-script-id": typeof _next_eslint_plugin_next_dist_rules_inline_script_id;
|
|
41
|
+
"next-script-for-ga": typeof _next_eslint_plugin_next_dist_rules_next_script_for_ga;
|
|
42
|
+
"no-assign-module-variable": typeof _next_eslint_plugin_next_dist_rules_no_assign_module_variable;
|
|
43
|
+
"no-async-client-component": typeof _next_eslint_plugin_next_dist_rules_no_async_client_component;
|
|
44
|
+
"no-before-interactive-script-outside-document": typeof _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document;
|
|
45
|
+
"no-css-tags": typeof _next_eslint_plugin_next_dist_rules_no_css_tags;
|
|
46
|
+
"no-document-import-in-page": typeof _next_eslint_plugin_next_dist_rules_no_document_import_in_page;
|
|
47
|
+
"no-duplicate-head": typeof _next_eslint_plugin_next_dist_rules_no_duplicate_head;
|
|
48
|
+
"no-head-element": typeof _next_eslint_plugin_next_dist_rules_no_head_element;
|
|
49
|
+
"no-head-import-in-document": typeof _next_eslint_plugin_next_dist_rules_no_head_import_in_document;
|
|
50
|
+
"no-html-link-for-pages": typeof _next_eslint_plugin_next_dist_rules_no_html_link_for_pages;
|
|
51
|
+
"no-img-element": typeof _next_eslint_plugin_next_dist_rules_no_img_element;
|
|
52
|
+
"no-page-custom-font": typeof _next_eslint_plugin_next_dist_rules_no_page_custom_font;
|
|
53
|
+
"no-script-component-in-head": typeof _next_eslint_plugin_next_dist_rules_no_script_component_in_head;
|
|
54
|
+
"no-styled-jsx-in-document": typeof _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document;
|
|
55
|
+
"no-sync-scripts": typeof _next_eslint_plugin_next_dist_rules_no_sync_scripts;
|
|
56
|
+
"no-title-in-document-head": typeof _next_eslint_plugin_next_dist_rules_no_title_in_document_head;
|
|
57
|
+
"no-typos": typeof _next_eslint_plugin_next_dist_rules_no_typos;
|
|
58
|
+
"no-unwanted-polyfillio": typeof _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio;
|
|
59
|
+
};
|
|
16
60
|
configs: {
|
|
17
|
-
|
|
18
|
-
|
|
61
|
+
recommended: {
|
|
62
|
+
plugins: string[];
|
|
63
|
+
rules: {
|
|
64
|
+
"@next/next/google-font-display": string;
|
|
65
|
+
"@next/next/google-font-preconnect": string;
|
|
66
|
+
"@next/next/next-script-for-ga": string;
|
|
67
|
+
"@next/next/no-async-client-component": string;
|
|
68
|
+
"@next/next/no-before-interactive-script-outside-document": string;
|
|
69
|
+
"@next/next/no-css-tags": string;
|
|
70
|
+
"@next/next/no-head-element": string;
|
|
71
|
+
"@next/next/no-html-link-for-pages": string;
|
|
72
|
+
"@next/next/no-img-element": string;
|
|
73
|
+
"@next/next/no-page-custom-font": string;
|
|
74
|
+
"@next/next/no-styled-jsx-in-document": string;
|
|
75
|
+
"@next/next/no-sync-scripts": string;
|
|
76
|
+
"@next/next/no-title-in-document-head": string;
|
|
77
|
+
"@next/next/no-typos": string;
|
|
78
|
+
"@next/next/no-unwanted-polyfillio": string;
|
|
79
|
+
"@next/next/inline-script-id": string;
|
|
80
|
+
"@next/next/no-assign-module-variable": string;
|
|
81
|
+
"@next/next/no-document-import-in-page": string;
|
|
82
|
+
"@next/next/no-duplicate-head": string;
|
|
83
|
+
"@next/next/no-head-import-in-document": string;
|
|
84
|
+
"@next/next/no-script-component-in-head": string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
"core-web-vitals": {
|
|
88
|
+
plugins: string[];
|
|
89
|
+
extends: string[];
|
|
90
|
+
rules: {
|
|
91
|
+
"@next/next/no-html-link-for-pages": string;
|
|
92
|
+
"@next/next/no-sync-scripts": string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
19
95
|
};
|
|
20
96
|
};
|
|
21
97
|
};
|
|
@@ -1036,7 +1112,7 @@ interface RuleOptions {
|
|
|
1036
1112
|
*/
|
|
1037
1113
|
'@next/next/no-assign-module-variable'?: Linter.RuleEntry<[]>
|
|
1038
1114
|
/**
|
|
1039
|
-
* Prevent
|
|
1115
|
+
* Prevent Client Components from being async functions.
|
|
1040
1116
|
* @see https://nextjs.org/docs/messages/no-async-client-component
|
|
1041
1117
|
*/
|
|
1042
1118
|
'@next/next/no-async-client-component'?: Linter.RuleEntry<[]>
|
|
@@ -4347,7 +4423,7 @@ interface RuleOptions {
|
|
|
4347
4423
|
*/
|
|
4348
4424
|
'no-console'?: Linter.RuleEntry<NoConsole>
|
|
4349
4425
|
/**
|
|
4350
|
-
* Disallow reassigning `const` variables
|
|
4426
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
4351
4427
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
4352
4428
|
*/
|
|
4353
4429
|
'no-const-assign'?: Linter.RuleEntry<[]>
|
|
@@ -7682,10 +7758,12 @@ type StylisticIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
7682
7758
|
FunctionDeclaration?: {
|
|
7683
7759
|
parameters?: (number | ("first" | "off"))
|
|
7684
7760
|
body?: number
|
|
7761
|
+
returnType?: number
|
|
7685
7762
|
}
|
|
7686
7763
|
FunctionExpression?: {
|
|
7687
7764
|
parameters?: (number | ("first" | "off"))
|
|
7688
7765
|
body?: number
|
|
7766
|
+
returnType?: number
|
|
7689
7767
|
}
|
|
7690
7768
|
StaticBlock?: {
|
|
7691
7769
|
body?: number
|
|
@@ -7726,31 +7804,52 @@ type StylisticJsxCurlyNewline = []|[(("consistent" | "never") | {
|
|
|
7726
7804
|
multiline?: ("consistent" | "require" | "forbid")
|
|
7727
7805
|
})]
|
|
7728
7806
|
// ----- @stylistic/jsx-curly-spacing -----
|
|
7729
|
-
type StylisticJsxCurlySpacing = []|[(
|
|
7730
|
-
|
|
7731
|
-
children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
|
|
7732
|
-
[k: string]: unknown | undefined
|
|
7733
|
-
}) | ("always" | "never"))]|[((_StylisticJsxCurlySpacing_BasicConfig & {
|
|
7734
|
-
attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
|
|
7735
|
-
children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean
|
|
7736
|
-
[k: string]: unknown | undefined
|
|
7737
|
-
}) | ("always" | "never")), {
|
|
7807
|
+
type StylisticJsxCurlySpacing = []|[({
|
|
7808
|
+
when?: ("always" | "never")
|
|
7738
7809
|
allowMultiline?: boolean
|
|
7739
7810
|
spacing?: {
|
|
7740
7811
|
objectLiterals?: ("always" | "never")
|
|
7741
|
-
[k: string]: unknown | undefined
|
|
7742
7812
|
}
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7813
|
+
attributes?: ({
|
|
7814
|
+
when?: ("always" | "never")
|
|
7815
|
+
allowMultiline?: boolean
|
|
7816
|
+
spacing?: {
|
|
7817
|
+
objectLiterals?: ("always" | "never")
|
|
7818
|
+
}
|
|
7819
|
+
} | boolean)
|
|
7820
|
+
children?: ({
|
|
7821
|
+
when?: ("always" | "never")
|
|
7822
|
+
allowMultiline?: boolean
|
|
7823
|
+
spacing?: {
|
|
7824
|
+
objectLiterals?: ("always" | "never")
|
|
7825
|
+
}
|
|
7826
|
+
} | boolean)
|
|
7827
|
+
} | ("always" | "never"))]|[({
|
|
7746
7828
|
when?: ("always" | "never")
|
|
7747
7829
|
allowMultiline?: boolean
|
|
7748
7830
|
spacing?: {
|
|
7749
7831
|
objectLiterals?: ("always" | "never")
|
|
7750
|
-
[k: string]: unknown | undefined
|
|
7751
7832
|
}
|
|
7752
|
-
|
|
7753
|
-
|
|
7833
|
+
attributes?: ({
|
|
7834
|
+
when?: ("always" | "never")
|
|
7835
|
+
allowMultiline?: boolean
|
|
7836
|
+
spacing?: {
|
|
7837
|
+
objectLiterals?: ("always" | "never")
|
|
7838
|
+
}
|
|
7839
|
+
} | boolean)
|
|
7840
|
+
children?: ({
|
|
7841
|
+
when?: ("always" | "never")
|
|
7842
|
+
allowMultiline?: boolean
|
|
7843
|
+
spacing?: {
|
|
7844
|
+
objectLiterals?: ("always" | "never")
|
|
7845
|
+
}
|
|
7846
|
+
} | boolean)
|
|
7847
|
+
} | ("always" | "never")), {
|
|
7848
|
+
allowMultiline?: boolean
|
|
7849
|
+
spacing?: {
|
|
7850
|
+
objectLiterals?: ("always" | "never")
|
|
7851
|
+
}
|
|
7852
|
+
}]
|
|
7754
7853
|
// ----- @stylistic/jsx-equals-spacing -----
|
|
7755
7854
|
type StylisticJsxEqualsSpacing = []|[("always" | "never")]
|
|
7756
7855
|
// ----- @stylistic/jsx-first-prop-new-line -----
|
|
@@ -7766,14 +7865,12 @@ type StylisticJsxIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
|
7766
7865
|
type StylisticJsxIndentProps = []|[(("tab" | "first") | number | {
|
|
7767
7866
|
indentMode?: (("tab" | "first") | number)
|
|
7768
7867
|
ignoreTernaryOperator?: boolean
|
|
7769
|
-
[k: string]: unknown | undefined
|
|
7770
7868
|
})]
|
|
7771
7869
|
// ----- @stylistic/jsx-max-props-per-line -----
|
|
7772
7870
|
type StylisticJsxMaxPropsPerLine = []|[({
|
|
7773
7871
|
maximum?: {
|
|
7774
7872
|
single?: number
|
|
7775
7873
|
multi?: number
|
|
7776
|
-
[k: string]: unknown | undefined
|
|
7777
7874
|
}
|
|
7778
7875
|
} | {
|
|
7779
7876
|
maximum?: number
|
|
@@ -8120,6 +8217,10 @@ type StylisticKeywordSpacing = []|[{
|
|
|
8120
8217
|
before?: boolean
|
|
8121
8218
|
after?: boolean
|
|
8122
8219
|
}
|
|
8220
|
+
accessor?: {
|
|
8221
|
+
before?: boolean
|
|
8222
|
+
after?: boolean
|
|
8223
|
+
}
|
|
8123
8224
|
as?: {
|
|
8124
8225
|
before?: boolean
|
|
8125
8226
|
after?: boolean
|
|
@@ -8334,11 +8435,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
|
|
|
8334
8435
|
// ----- @stylistic/multiline-comment-style -----
|
|
8335
8436
|
type StylisticMultilineCommentStyle = ([]|[("starred-block" | "bare-block")] | []|["separate-lines"]|["separate-lines", {
|
|
8336
8437
|
checkJSDoc?: boolean
|
|
8438
|
+
checkExclamation?: boolean
|
|
8337
8439
|
}])
|
|
8338
8440
|
// ----- @stylistic/multiline-ternary -----
|
|
8339
8441
|
type StylisticMultilineTernary = []|[("always" | "always-multiline" | "never")]|[("always" | "always-multiline" | "never"), {
|
|
8340
8442
|
ignoreJSX?: boolean
|
|
8341
|
-
[k: string]: unknown | undefined
|
|
8342
8443
|
}]
|
|
8343
8444
|
// ----- @stylistic/new-parens -----
|
|
8344
8445
|
type StylisticNewParens = []|[("always" | "never")]
|
|
@@ -10775,8 +10876,8 @@ type JsdocMatchName = []|[{
|
|
|
10775
10876
|
context?: string
|
|
10776
10877
|
disallowName?: string
|
|
10777
10878
|
message?: string
|
|
10879
|
+
replacement?: string
|
|
10778
10880
|
tags?: string[]
|
|
10779
|
-
[k: string]: unknown | undefined
|
|
10780
10881
|
}[]
|
|
10781
10882
|
}]
|
|
10782
10883
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -10850,7 +10951,6 @@ type JsdocRequireAsteriskPrefix = []|[("always" | "never" | "any")]|[("always" |
|
|
|
10850
10951
|
always?: string[]
|
|
10851
10952
|
any?: string[]
|
|
10852
10953
|
never?: string[]
|
|
10853
|
-
[k: string]: unknown | undefined
|
|
10854
10954
|
}
|
|
10855
10955
|
}]
|
|
10856
10956
|
// ----- jsdoc/require-description -----
|
|
@@ -11060,7 +11160,6 @@ type JsdocSortTags = []|[{
|
|
|
11060
11160
|
reportTagGroupSpacing?: boolean
|
|
11061
11161
|
tagSequence?: {
|
|
11062
11162
|
tags?: string[]
|
|
11063
|
-
[k: string]: unknown | undefined
|
|
11064
11163
|
}[]
|
|
11065
11164
|
}]
|
|
11066
11165
|
// ----- jsdoc/tag-lines -----
|
|
@@ -16918,9 +17017,64 @@ declare const defineConfig: ({ astro, autoDetect, ignores, jest, nextjs, overrid
|
|
|
16918
17017
|
name: string;
|
|
16919
17018
|
plugins: {
|
|
16920
17019
|
"@next/next": {
|
|
17020
|
+
rules: {
|
|
17021
|
+
"google-font-display": typeof _next_eslint_plugin_next_dist_rules_google_font_display;
|
|
17022
|
+
"google-font-preconnect": typeof _next_eslint_plugin_next_dist_rules_google_font_preconnect;
|
|
17023
|
+
"inline-script-id": typeof _next_eslint_plugin_next_dist_rules_inline_script_id;
|
|
17024
|
+
"next-script-for-ga": typeof _next_eslint_plugin_next_dist_rules_next_script_for_ga;
|
|
17025
|
+
"no-assign-module-variable": typeof _next_eslint_plugin_next_dist_rules_no_assign_module_variable;
|
|
17026
|
+
"no-async-client-component": typeof _next_eslint_plugin_next_dist_rules_no_async_client_component;
|
|
17027
|
+
"no-before-interactive-script-outside-document": typeof _next_eslint_plugin_next_dist_rules_no_before_interactive_script_outside_document;
|
|
17028
|
+
"no-css-tags": typeof _next_eslint_plugin_next_dist_rules_no_css_tags;
|
|
17029
|
+
"no-document-import-in-page": typeof _next_eslint_plugin_next_dist_rules_no_document_import_in_page;
|
|
17030
|
+
"no-duplicate-head": typeof _next_eslint_plugin_next_dist_rules_no_duplicate_head;
|
|
17031
|
+
"no-head-element": typeof _next_eslint_plugin_next_dist_rules_no_head_element;
|
|
17032
|
+
"no-head-import-in-document": typeof _next_eslint_plugin_next_dist_rules_no_head_import_in_document;
|
|
17033
|
+
"no-html-link-for-pages": typeof _next_eslint_plugin_next_dist_rules_no_html_link_for_pages;
|
|
17034
|
+
"no-img-element": typeof _next_eslint_plugin_next_dist_rules_no_img_element;
|
|
17035
|
+
"no-page-custom-font": typeof _next_eslint_plugin_next_dist_rules_no_page_custom_font;
|
|
17036
|
+
"no-script-component-in-head": typeof _next_eslint_plugin_next_dist_rules_no_script_component_in_head;
|
|
17037
|
+
"no-styled-jsx-in-document": typeof _next_eslint_plugin_next_dist_rules_no_styled_jsx_in_document;
|
|
17038
|
+
"no-sync-scripts": typeof _next_eslint_plugin_next_dist_rules_no_sync_scripts;
|
|
17039
|
+
"no-title-in-document-head": typeof _next_eslint_plugin_next_dist_rules_no_title_in_document_head;
|
|
17040
|
+
"no-typos": typeof _next_eslint_plugin_next_dist_rules_no_typos;
|
|
17041
|
+
"no-unwanted-polyfillio": typeof _next_eslint_plugin_next_dist_rules_no_unwanted_polyfillio;
|
|
17042
|
+
};
|
|
16921
17043
|
configs: {
|
|
16922
|
-
|
|
16923
|
-
|
|
17044
|
+
recommended: {
|
|
17045
|
+
plugins: string[];
|
|
17046
|
+
rules: {
|
|
17047
|
+
"@next/next/google-font-display": string;
|
|
17048
|
+
"@next/next/google-font-preconnect": string;
|
|
17049
|
+
"@next/next/next-script-for-ga": string;
|
|
17050
|
+
"@next/next/no-async-client-component": string;
|
|
17051
|
+
"@next/next/no-before-interactive-script-outside-document": string;
|
|
17052
|
+
"@next/next/no-css-tags": string;
|
|
17053
|
+
"@next/next/no-head-element": string;
|
|
17054
|
+
"@next/next/no-html-link-for-pages": string;
|
|
17055
|
+
"@next/next/no-img-element": string;
|
|
17056
|
+
"@next/next/no-page-custom-font": string;
|
|
17057
|
+
"@next/next/no-styled-jsx-in-document": string;
|
|
17058
|
+
"@next/next/no-sync-scripts": string;
|
|
17059
|
+
"@next/next/no-title-in-document-head": string;
|
|
17060
|
+
"@next/next/no-typos": string;
|
|
17061
|
+
"@next/next/no-unwanted-polyfillio": string;
|
|
17062
|
+
"@next/next/inline-script-id": string;
|
|
17063
|
+
"@next/next/no-assign-module-variable": string;
|
|
17064
|
+
"@next/next/no-document-import-in-page": string;
|
|
17065
|
+
"@next/next/no-duplicate-head": string;
|
|
17066
|
+
"@next/next/no-head-import-in-document": string;
|
|
17067
|
+
"@next/next/no-script-component-in-head": string;
|
|
17068
|
+
};
|
|
17069
|
+
};
|
|
17070
|
+
"core-web-vitals": {
|
|
17071
|
+
plugins: string[];
|
|
17072
|
+
extends: string[];
|
|
17073
|
+
rules: {
|
|
17074
|
+
"@next/next/no-html-link-for-pages": string;
|
|
17075
|
+
"@next/next/no-sync-scripts": string;
|
|
17076
|
+
};
|
|
17077
|
+
};
|
|
16924
17078
|
};
|
|
16925
17079
|
};
|
|
16926
17080
|
};
|
package/dist/index.js
CHANGED
|
@@ -591,7 +591,7 @@ var defineConfig = async ({
|
|
|
591
591
|
isTestingLibraryEnabled && unwrap(import("./testing-library-QHZMYCZH.js")),
|
|
592
592
|
isPlaywrightEnabled && unwrap(import("./playwright-2HMMFF3D.js")),
|
|
593
593
|
isStorybookEnabled && unwrap(import("./storybook-XHFO7L4T.js")),
|
|
594
|
-
isNextjsEnabled && unwrap(import("./nextjs-
|
|
594
|
+
isNextjsEnabled && unwrap(import("./nextjs-CRRBTFXP.js"))
|
|
595
595
|
]);
|
|
596
596
|
return [
|
|
597
597
|
...baseConfigs,
|
|
@@ -11,7 +11,10 @@ import {
|
|
|
11
11
|
// src/rules/nextjs.ts
|
|
12
12
|
var nextjsRules = async () => {
|
|
13
13
|
const nextjsPlugin = await interopDefault(import("@next/eslint-plugin-next"));
|
|
14
|
-
return upwarn(
|
|
14
|
+
return upwarn(
|
|
15
|
+
// @next/eslint-plugin-next types for each rule use string instead of Linter.RuleLevel,
|
|
16
|
+
nextjsPlugin.configs.recommended.rules
|
|
17
|
+
);
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
// src/configs/nextjs.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jimmy.codes/eslint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.20.0",
|
|
4
4
|
"description": "A simple, modern ESLint config that covers most use cases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
|
|
36
|
-
"@eslint-react/eslint-plugin": "^1.52.
|
|
37
|
-
"@eslint/js": "^9.
|
|
38
|
-
"@next/eslint-plugin-next": "^15.
|
|
39
|
-
"@stylistic/eslint-plugin": "^5.
|
|
36
|
+
"@eslint-react/eslint-plugin": "^1.52.3",
|
|
37
|
+
"@eslint/js": "^9.31.0",
|
|
38
|
+
"@next/eslint-plugin-next": "^15.4.1",
|
|
39
|
+
"@stylistic/eslint-plugin": "^5.2.0",
|
|
40
40
|
"@tanstack/eslint-plugin-query": "^5.81.2",
|
|
41
41
|
"@types/eslint": "9.6.1",
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
42
|
+
"@typescript-eslint/parser": "^8.37.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.37.0",
|
|
44
44
|
"@vitest/eslint-plugin": "^1.3.4",
|
|
45
45
|
"astro-eslint-parser": "^1.2.2",
|
|
46
46
|
"eslint-config-prettier": "^10.1.5",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"eslint-plugin-import-x": "^4.16.1",
|
|
50
50
|
"eslint-plugin-jest": "^29.0.1",
|
|
51
51
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
52
|
-
"eslint-plugin-jsdoc": "^51.
|
|
52
|
+
"eslint-plugin-jsdoc": "^51.4.1",
|
|
53
53
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
54
54
|
"eslint-plugin-n": "^17.21.0",
|
|
55
55
|
"eslint-plugin-perfectionist": "^4.15.0",
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"eslint-plugin-react-refresh": "0.4.20",
|
|
60
60
|
"eslint-plugin-regexp": "^2.9.0",
|
|
61
61
|
"eslint-plugin-storybook": "0.12.0",
|
|
62
|
-
"eslint-plugin-testing-library": "^7.
|
|
62
|
+
"eslint-plugin-testing-library": "^7.6.0",
|
|
63
63
|
"eslint-plugin-unicorn": "^59.0.1",
|
|
64
64
|
"globals": "^16.3.0",
|
|
65
65
|
"local-pkg": "^1.1.1",
|
|
66
|
-
"typescript-eslint": "^8.
|
|
66
|
+
"typescript-eslint": "^8.37.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
69
|
"eslint": "^9.10.0"
|