eslint-plugin-nextfriday 3.0.0 → 3.1.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 +15 -0
- package/README.md +146 -23
- package/docs/rules/ENFORCE_CONSTANT_CASE.md +65 -3
- package/docs/rules/FILE_KEBAB_CASE.md +7 -1
- package/docs/rules/JSX_PASCAL_CASE.md +6 -2
- package/lib/index.cjs +6 -5
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +4 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.cts
CHANGED
|
@@ -917,6 +917,7 @@ declare const configs: {
|
|
|
917
917
|
nextjs: ({
|
|
918
918
|
files: string[];
|
|
919
919
|
rules: {
|
|
920
|
+
"nextfriday/file-kebab-case": string;
|
|
920
921
|
"nextfriday/jsx-pascal-case": string;
|
|
921
922
|
};
|
|
922
923
|
} | {
|
|
@@ -1106,6 +1107,7 @@ declare const configs: {
|
|
|
1106
1107
|
"nextjs/recommended": ({
|
|
1107
1108
|
files: string[];
|
|
1108
1109
|
rules: {
|
|
1110
|
+
"nextfriday/file-kebab-case": string;
|
|
1109
1111
|
"nextfriday/jsx-pascal-case": string;
|
|
1110
1112
|
};
|
|
1111
1113
|
} | {
|
|
@@ -2038,6 +2040,7 @@ declare const nextfridayPlugin: {
|
|
|
2038
2040
|
nextjs: ({
|
|
2039
2041
|
files: string[];
|
|
2040
2042
|
rules: {
|
|
2043
|
+
"nextfriday/file-kebab-case": string;
|
|
2041
2044
|
"nextfriday/jsx-pascal-case": string;
|
|
2042
2045
|
};
|
|
2043
2046
|
} | {
|
|
@@ -2227,6 +2230,7 @@ declare const nextfridayPlugin: {
|
|
|
2227
2230
|
"nextjs/recommended": ({
|
|
2228
2231
|
files: string[];
|
|
2229
2232
|
rules: {
|
|
2233
|
+
"nextfriday/file-kebab-case": string;
|
|
2230
2234
|
"nextfriday/jsx-pascal-case": string;
|
|
2231
2235
|
};
|
|
2232
2236
|
} | {
|
package/lib/index.d.ts
CHANGED
|
@@ -917,6 +917,7 @@ declare const configs: {
|
|
|
917
917
|
nextjs: ({
|
|
918
918
|
files: string[];
|
|
919
919
|
rules: {
|
|
920
|
+
"nextfriday/file-kebab-case": string;
|
|
920
921
|
"nextfriday/jsx-pascal-case": string;
|
|
921
922
|
};
|
|
922
923
|
} | {
|
|
@@ -1106,6 +1107,7 @@ declare const configs: {
|
|
|
1106
1107
|
"nextjs/recommended": ({
|
|
1107
1108
|
files: string[];
|
|
1108
1109
|
rules: {
|
|
1110
|
+
"nextfriday/file-kebab-case": string;
|
|
1109
1111
|
"nextfriday/jsx-pascal-case": string;
|
|
1110
1112
|
};
|
|
1111
1113
|
} | {
|
|
@@ -2038,6 +2040,7 @@ declare const nextfridayPlugin: {
|
|
|
2038
2040
|
nextjs: ({
|
|
2039
2041
|
files: string[];
|
|
2040
2042
|
rules: {
|
|
2043
|
+
"nextfriday/file-kebab-case": string;
|
|
2041
2044
|
"nextfriday/jsx-pascal-case": string;
|
|
2042
2045
|
};
|
|
2043
2046
|
} | {
|
|
@@ -2227,6 +2230,7 @@ declare const nextfridayPlugin: {
|
|
|
2227
2230
|
"nextjs/recommended": ({
|
|
2228
2231
|
files: string[];
|
|
2229
2232
|
rules: {
|
|
2233
|
+
"nextfriday/file-kebab-case": string;
|
|
2230
2234
|
"nextfriday/jsx-pascal-case": string;
|
|
2231
2235
|
};
|
|
2232
2236
|
} | {
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "eslint-plugin-nextfriday",
|
|
4
|
-
version: "3.
|
|
4
|
+
version: "3.1.0",
|
|
5
5
|
description: "A comprehensive ESLint plugin providing custom rules and configurations for Next Friday development workflows.",
|
|
6
6
|
keywords: [
|
|
7
7
|
"eslint",
|
|
@@ -4708,14 +4708,15 @@ var createConfig = (configRules) => ({
|
|
|
4708
4708
|
rules: configRules
|
|
4709
4709
|
});
|
|
4710
4710
|
var NEXTJS_ROUTING_GLOBS = [
|
|
4711
|
-
"app/**/*.{jsx,tsx}",
|
|
4712
|
-
"src/app/**/*.{jsx,tsx}",
|
|
4713
|
-
"pages/**/*.{jsx,tsx}",
|
|
4714
|
-
"src/pages/**/*.{jsx,tsx}"
|
|
4711
|
+
"app/**/*.{js,jsx,ts,tsx}",
|
|
4712
|
+
"src/app/**/*.{js,jsx,ts,tsx}",
|
|
4713
|
+
"pages/**/*.{js,jsx,ts,tsx}",
|
|
4714
|
+
"src/pages/**/*.{js,jsx,ts,tsx}"
|
|
4715
4715
|
];
|
|
4716
4716
|
var nextjsRoutingOverride = {
|
|
4717
4717
|
files: NEXTJS_ROUTING_GLOBS,
|
|
4718
4718
|
rules: {
|
|
4719
|
+
"nextfriday/file-kebab-case": "off",
|
|
4719
4720
|
"nextfriday/jsx-pascal-case": "off"
|
|
4720
4721
|
}
|
|
4721
4722
|
};
|