eslint-plugin-nextjs 1.0.1 → 1.0.3
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.js +14 -14
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
// src/index.ts
|
2
|
-
import fs3 from "
|
2
|
+
import fs3 from "fs";
|
3
3
|
|
4
4
|
// src/rules/google-font-display.ts
|
5
|
-
import { URLSearchParams } from "
|
5
|
+
import { URLSearchParams } from "url";
|
6
6
|
|
7
7
|
// src/utils/node-attributes.ts
|
8
8
|
var NodeAttributes = class {
|
@@ -382,7 +382,7 @@ var noAsyncClientComponent = {
|
|
382
382
|
};
|
383
383
|
|
384
384
|
// src/rules/no-before-interactive-script-outside-document.ts
|
385
|
-
import * as path from "
|
385
|
+
import * as path from "path";
|
386
386
|
var name7 = "no-before-interactive-script-outside-document";
|
387
387
|
var url7 = `https://nextjs.org/docs/messages/${name7}`;
|
388
388
|
var convertToCorrectSeparator = (str) => str.replaceAll(/[/\\]/g, path.sep);
|
@@ -480,7 +480,7 @@ var noCssTags = {
|
|
480
480
|
};
|
481
481
|
|
482
482
|
// src/rules/no-document-import-in-page.ts
|
483
|
-
import * as path2 from "
|
483
|
+
import * as path2 from "path";
|
484
484
|
var name9 = "no-document-import-in-page";
|
485
485
|
var url9 = `https://nextjs.org/docs/messages/${name9}`;
|
486
486
|
var noDocumentImportInPage = {
|
@@ -573,7 +573,7 @@ var noDuplicateHead = {
|
|
573
573
|
};
|
574
574
|
|
575
575
|
// src/rules/no-head-element.ts
|
576
|
-
import path3 from "
|
576
|
+
import path3 from "path";
|
577
577
|
var name11 = "no-head-element";
|
578
578
|
var url11 = `https://nextjs.org/docs/messages/${name11}`;
|
579
579
|
var noHeadElement = {
|
@@ -610,7 +610,7 @@ var noHeadElement = {
|
|
610
610
|
};
|
611
611
|
|
612
612
|
// src/rules/no-head-import-in-document.ts
|
613
|
-
import * as path4 from "
|
613
|
+
import * as path4 from "path";
|
614
614
|
var name12 = "no-head-import-in-document";
|
615
615
|
var url12 = `https://nextjs.org/docs/messages/${name12}`;
|
616
616
|
var noHeadImportInDocument = {
|
@@ -648,8 +648,8 @@ var noHeadImportInDocument = {
|
|
648
648
|
};
|
649
649
|
|
650
650
|
// src/rules/no-html-link-for-pages.ts
|
651
|
-
import * as fs2 from "
|
652
|
-
import * as path6 from "
|
651
|
+
import * as fs2 from "fs";
|
652
|
+
import * as path6 from "path";
|
653
653
|
|
654
654
|
// src/utils/get-root-dirs.ts
|
655
655
|
import fastGlob from "fast-glob";
|
@@ -671,8 +671,8 @@ var getRootDirs = (context) => {
|
|
671
671
|
};
|
672
672
|
|
673
673
|
// src/utils/url.ts
|
674
|
-
import * as fs from "
|
675
|
-
import * as path5 from "
|
674
|
+
import * as fs from "fs";
|
675
|
+
import * as path5 from "path";
|
676
676
|
var fsReadDirSyncCache = {};
|
677
677
|
var parseUrlForPages = (urlprefix, directory) => {
|
678
678
|
fsReadDirSyncCache[directory] ??= fs.readdirSync(directory, {
|
@@ -914,7 +914,7 @@ var noHtmlLinkForPages = {
|
|
914
914
|
};
|
915
915
|
|
916
916
|
// src/rules/no-img-element.ts
|
917
|
-
import path7 from "
|
917
|
+
import path7 from "path";
|
918
918
|
var name14 = "no-img-element";
|
919
919
|
var url14 = `https://nextjs.org/docs/messages/${name14}`;
|
920
920
|
var noImgElement = {
|
@@ -961,7 +961,7 @@ var noImgElement = {
|
|
961
961
|
};
|
962
962
|
|
963
963
|
// src/rules/no-page-custom-font.ts
|
964
|
-
import { posix as posix2, sep as sep3 } from "
|
964
|
+
import { posix as posix2, sep as sep3 } from "path";
|
965
965
|
var name15 = "no-page-custom-font";
|
966
966
|
var url15 = `https://nextjs.org/docs/messages/${name15}`;
|
967
967
|
var isIdentifierMatch = (id1, id2) => id1 === null && id2 === null || id1 && id2 && id1.name === id2.name;
|
@@ -1142,7 +1142,7 @@ var noScriptComponentInHead = {
|
|
1142
1142
|
};
|
1143
1143
|
|
1144
1144
|
// src/rules/no-styled-jsx-in-document.ts
|
1145
|
-
import * as path8 from "
|
1145
|
+
import * as path8 from "path";
|
1146
1146
|
var name17 = "no-styled-jsx-in-document";
|
1147
1147
|
var url17 = `https://nextjs.org/docs/messages/${name17}`;
|
1148
1148
|
var noStyledJsxInDocument = {
|
@@ -1270,7 +1270,7 @@ var noTitleInDocumentHead = {
|
|
1270
1270
|
};
|
1271
1271
|
|
1272
1272
|
// src/rules/no-typos.ts
|
1273
|
-
import * as path9 from "
|
1273
|
+
import * as path9 from "path";
|
1274
1274
|
var NEXT_EXPORT_FUNCTIONS = [
|
1275
1275
|
"getStaticProps",
|
1276
1276
|
"getStaticPaths",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "eslint-plugin-nextjs",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.3",
|
4
4
|
"description": "A fork of @next/eslint-plugin-next that's been upgraded for TypeScript and ESLint V9.",
|
5
5
|
"keywords": [
|
6
6
|
"eslint",
|
@@ -50,13 +50,13 @@
|
|
50
50
|
"fast-glob": "^3.3.3"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@eslint/core": "^0.
|
53
|
+
"@eslint/core": "^0.15.0",
|
54
54
|
"@repo/typescript-config": "workspace:*",
|
55
|
-
"@types/bun": "^1.2.
|
56
|
-
"@types/node": "^22.
|
57
|
-
"eslint": "^9.
|
55
|
+
"@types/bun": "^1.2.16",
|
56
|
+
"@types/node": "^22.15.31",
|
57
|
+
"eslint": "^9.29.0",
|
58
58
|
"eslint-plugin-eslint-plugin": "^6.4.0",
|
59
|
-
"tsup": "^8.
|
59
|
+
"tsup": "^8.5.0",
|
60
60
|
"typescript": "^5.8.3"
|
61
61
|
},
|
62
62
|
"peerDependencies": {
|