eslint-plugin-nextfriday 2.0.0 → 3.0.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/CHANGELOG.md +46 -0
- package/README.md +134 -8
- package/docs/rules/BOOLEAN_NAMING_PREFIX.md +13 -0
- package/docs/rules/ENFORCE_CONSTANT_CASE.md +31 -0
- package/docs/rules/FILE_KEBAB_CASE.md +31 -0
- package/docs/rules/JSX_PASCAL_CASE.md +30 -0
- package/lib/index.cjs +447 -468
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +26 -62
- package/lib/index.d.ts +26 -62
- package/lib/index.js +100 -123
- package/lib/index.js.map +1 -1
- package/package.json +2 -3
package/lib/index.d.cts
CHANGED
|
@@ -914,7 +914,12 @@ declare const configs: {
|
|
|
914
914
|
};
|
|
915
915
|
rules: Record<string, string>;
|
|
916
916
|
};
|
|
917
|
-
nextjs: {
|
|
917
|
+
nextjs: ({
|
|
918
|
+
files: string[];
|
|
919
|
+
rules: {
|
|
920
|
+
"nextfriday/jsx-pascal-case": string;
|
|
921
|
+
};
|
|
922
|
+
} | {
|
|
918
923
|
plugins: {
|
|
919
924
|
nextfriday: {
|
|
920
925
|
readonly meta: {
|
|
@@ -1097,8 +1102,13 @@ declare const configs: {
|
|
|
1097
1102
|
};
|
|
1098
1103
|
};
|
|
1099
1104
|
rules: Record<string, string>;
|
|
1100
|
-
};
|
|
1101
|
-
"nextjs/recommended": {
|
|
1105
|
+
})[];
|
|
1106
|
+
"nextjs/recommended": ({
|
|
1107
|
+
files: string[];
|
|
1108
|
+
rules: {
|
|
1109
|
+
"nextfriday/jsx-pascal-case": string;
|
|
1110
|
+
};
|
|
1111
|
+
} | {
|
|
1102
1112
|
plugins: {
|
|
1103
1113
|
nextfriday: {
|
|
1104
1114
|
readonly meta: {
|
|
@@ -1281,34 +1291,6 @@ declare const configs: {
|
|
|
1281
1291
|
};
|
|
1282
1292
|
};
|
|
1283
1293
|
rules: Record<string, string>;
|
|
1284
|
-
};
|
|
1285
|
-
readonly sonarjs: {
|
|
1286
|
-
name: string;
|
|
1287
|
-
plugins: {
|
|
1288
|
-
sonarjs: TSESLint.FlatConfig.Plugin;
|
|
1289
|
-
};
|
|
1290
|
-
rules: {
|
|
1291
|
-
[x: string]: string;
|
|
1292
|
-
};
|
|
1293
|
-
}[];
|
|
1294
|
-
readonly unicorn: ({
|
|
1295
|
-
name: string;
|
|
1296
|
-
plugins: {
|
|
1297
|
-
unicorn: TSESLint.FlatConfig.Plugin;
|
|
1298
|
-
};
|
|
1299
|
-
rules: {
|
|
1300
|
-
"unicorn/filename-case": string;
|
|
1301
|
-
"unicorn/prevent-abbreviations": string;
|
|
1302
|
-
"unicorn/no-null"?: undefined;
|
|
1303
|
-
};
|
|
1304
|
-
files?: undefined;
|
|
1305
|
-
} | {
|
|
1306
|
-
name: string;
|
|
1307
|
-
files: string[];
|
|
1308
|
-
rules: {
|
|
1309
|
-
"unicorn/no-null": string;
|
|
1310
|
-
};
|
|
1311
|
-
plugins?: undefined;
|
|
1312
1294
|
})[];
|
|
1313
1295
|
};
|
|
1314
1296
|
declare const nextfridayPlugin: {
|
|
@@ -2053,7 +2035,12 @@ declare const nextfridayPlugin: {
|
|
|
2053
2035
|
};
|
|
2054
2036
|
rules: Record<string, string>;
|
|
2055
2037
|
};
|
|
2056
|
-
nextjs: {
|
|
2038
|
+
nextjs: ({
|
|
2039
|
+
files: string[];
|
|
2040
|
+
rules: {
|
|
2041
|
+
"nextfriday/jsx-pascal-case": string;
|
|
2042
|
+
};
|
|
2043
|
+
} | {
|
|
2057
2044
|
plugins: {
|
|
2058
2045
|
nextfriday: {
|
|
2059
2046
|
readonly meta: {
|
|
@@ -2236,8 +2223,13 @@ declare const nextfridayPlugin: {
|
|
|
2236
2223
|
};
|
|
2237
2224
|
};
|
|
2238
2225
|
rules: Record<string, string>;
|
|
2239
|
-
};
|
|
2240
|
-
"nextjs/recommended": {
|
|
2226
|
+
})[];
|
|
2227
|
+
"nextjs/recommended": ({
|
|
2228
|
+
files: string[];
|
|
2229
|
+
rules: {
|
|
2230
|
+
"nextfriday/jsx-pascal-case": string;
|
|
2231
|
+
};
|
|
2232
|
+
} | {
|
|
2241
2233
|
plugins: {
|
|
2242
2234
|
nextfriday: {
|
|
2243
2235
|
readonly meta: {
|
|
@@ -2420,34 +2412,6 @@ declare const nextfridayPlugin: {
|
|
|
2420
2412
|
};
|
|
2421
2413
|
};
|
|
2422
2414
|
rules: Record<string, string>;
|
|
2423
|
-
};
|
|
2424
|
-
readonly sonarjs: {
|
|
2425
|
-
name: string;
|
|
2426
|
-
plugins: {
|
|
2427
|
-
sonarjs: TSESLint.FlatConfig.Plugin;
|
|
2428
|
-
};
|
|
2429
|
-
rules: {
|
|
2430
|
-
[x: string]: string;
|
|
2431
|
-
};
|
|
2432
|
-
}[];
|
|
2433
|
-
readonly unicorn: ({
|
|
2434
|
-
name: string;
|
|
2435
|
-
plugins: {
|
|
2436
|
-
unicorn: TSESLint.FlatConfig.Plugin;
|
|
2437
|
-
};
|
|
2438
|
-
rules: {
|
|
2439
|
-
"unicorn/filename-case": string;
|
|
2440
|
-
"unicorn/prevent-abbreviations": string;
|
|
2441
|
-
"unicorn/no-null"?: undefined;
|
|
2442
|
-
};
|
|
2443
|
-
files?: undefined;
|
|
2444
|
-
} | {
|
|
2445
|
-
name: string;
|
|
2446
|
-
files: string[];
|
|
2447
|
-
rules: {
|
|
2448
|
-
"unicorn/no-null": string;
|
|
2449
|
-
};
|
|
2450
|
-
plugins?: undefined;
|
|
2451
2415
|
})[];
|
|
2452
2416
|
};
|
|
2453
2417
|
readonly rules: {
|
package/lib/index.d.ts
CHANGED
|
@@ -914,7 +914,12 @@ declare const configs: {
|
|
|
914
914
|
};
|
|
915
915
|
rules: Record<string, string>;
|
|
916
916
|
};
|
|
917
|
-
nextjs: {
|
|
917
|
+
nextjs: ({
|
|
918
|
+
files: string[];
|
|
919
|
+
rules: {
|
|
920
|
+
"nextfriday/jsx-pascal-case": string;
|
|
921
|
+
};
|
|
922
|
+
} | {
|
|
918
923
|
plugins: {
|
|
919
924
|
nextfriday: {
|
|
920
925
|
readonly meta: {
|
|
@@ -1097,8 +1102,13 @@ declare const configs: {
|
|
|
1097
1102
|
};
|
|
1098
1103
|
};
|
|
1099
1104
|
rules: Record<string, string>;
|
|
1100
|
-
};
|
|
1101
|
-
"nextjs/recommended": {
|
|
1105
|
+
})[];
|
|
1106
|
+
"nextjs/recommended": ({
|
|
1107
|
+
files: string[];
|
|
1108
|
+
rules: {
|
|
1109
|
+
"nextfriday/jsx-pascal-case": string;
|
|
1110
|
+
};
|
|
1111
|
+
} | {
|
|
1102
1112
|
plugins: {
|
|
1103
1113
|
nextfriday: {
|
|
1104
1114
|
readonly meta: {
|
|
@@ -1281,34 +1291,6 @@ declare const configs: {
|
|
|
1281
1291
|
};
|
|
1282
1292
|
};
|
|
1283
1293
|
rules: Record<string, string>;
|
|
1284
|
-
};
|
|
1285
|
-
readonly sonarjs: {
|
|
1286
|
-
name: string;
|
|
1287
|
-
plugins: {
|
|
1288
|
-
sonarjs: TSESLint.FlatConfig.Plugin;
|
|
1289
|
-
};
|
|
1290
|
-
rules: {
|
|
1291
|
-
[x: string]: string;
|
|
1292
|
-
};
|
|
1293
|
-
}[];
|
|
1294
|
-
readonly unicorn: ({
|
|
1295
|
-
name: string;
|
|
1296
|
-
plugins: {
|
|
1297
|
-
unicorn: TSESLint.FlatConfig.Plugin;
|
|
1298
|
-
};
|
|
1299
|
-
rules: {
|
|
1300
|
-
"unicorn/filename-case": string;
|
|
1301
|
-
"unicorn/prevent-abbreviations": string;
|
|
1302
|
-
"unicorn/no-null"?: undefined;
|
|
1303
|
-
};
|
|
1304
|
-
files?: undefined;
|
|
1305
|
-
} | {
|
|
1306
|
-
name: string;
|
|
1307
|
-
files: string[];
|
|
1308
|
-
rules: {
|
|
1309
|
-
"unicorn/no-null": string;
|
|
1310
|
-
};
|
|
1311
|
-
plugins?: undefined;
|
|
1312
1294
|
})[];
|
|
1313
1295
|
};
|
|
1314
1296
|
declare const nextfridayPlugin: {
|
|
@@ -2053,7 +2035,12 @@ declare const nextfridayPlugin: {
|
|
|
2053
2035
|
};
|
|
2054
2036
|
rules: Record<string, string>;
|
|
2055
2037
|
};
|
|
2056
|
-
nextjs: {
|
|
2038
|
+
nextjs: ({
|
|
2039
|
+
files: string[];
|
|
2040
|
+
rules: {
|
|
2041
|
+
"nextfriday/jsx-pascal-case": string;
|
|
2042
|
+
};
|
|
2043
|
+
} | {
|
|
2057
2044
|
plugins: {
|
|
2058
2045
|
nextfriday: {
|
|
2059
2046
|
readonly meta: {
|
|
@@ -2236,8 +2223,13 @@ declare const nextfridayPlugin: {
|
|
|
2236
2223
|
};
|
|
2237
2224
|
};
|
|
2238
2225
|
rules: Record<string, string>;
|
|
2239
|
-
};
|
|
2240
|
-
"nextjs/recommended": {
|
|
2226
|
+
})[];
|
|
2227
|
+
"nextjs/recommended": ({
|
|
2228
|
+
files: string[];
|
|
2229
|
+
rules: {
|
|
2230
|
+
"nextfriday/jsx-pascal-case": string;
|
|
2231
|
+
};
|
|
2232
|
+
} | {
|
|
2241
2233
|
plugins: {
|
|
2242
2234
|
nextfriday: {
|
|
2243
2235
|
readonly meta: {
|
|
@@ -2420,34 +2412,6 @@ declare const nextfridayPlugin: {
|
|
|
2420
2412
|
};
|
|
2421
2413
|
};
|
|
2422
2414
|
rules: Record<string, string>;
|
|
2423
|
-
};
|
|
2424
|
-
readonly sonarjs: {
|
|
2425
|
-
name: string;
|
|
2426
|
-
plugins: {
|
|
2427
|
-
sonarjs: TSESLint.FlatConfig.Plugin;
|
|
2428
|
-
};
|
|
2429
|
-
rules: {
|
|
2430
|
-
[x: string]: string;
|
|
2431
|
-
};
|
|
2432
|
-
}[];
|
|
2433
|
-
readonly unicorn: ({
|
|
2434
|
-
name: string;
|
|
2435
|
-
plugins: {
|
|
2436
|
-
unicorn: TSESLint.FlatConfig.Plugin;
|
|
2437
|
-
};
|
|
2438
|
-
rules: {
|
|
2439
|
-
"unicorn/filename-case": string;
|
|
2440
|
-
"unicorn/prevent-abbreviations": string;
|
|
2441
|
-
"unicorn/no-null"?: undefined;
|
|
2442
|
-
};
|
|
2443
|
-
files?: undefined;
|
|
2444
|
-
} | {
|
|
2445
|
-
name: string;
|
|
2446
|
-
files: string[];
|
|
2447
|
-
rules: {
|
|
2448
|
-
"unicorn/no-null": string;
|
|
2449
|
-
};
|
|
2450
|
-
plugins?: undefined;
|
|
2451
2415
|
})[];
|
|
2452
2416
|
};
|
|
2453
2417
|
readonly rules: {
|