@neralabs/rerail-pack-next 0.1.0 → 0.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neralabs/rerail-pack-next",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Rerail rule pack: @next/eslint-plugin-next rules ported to Rerail code rules.",
5
5
  "license": "Apache-2.0 AND MIT",
6
6
  "repository": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-google-font-preconnect",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/google-font-preconnect: a <link> whose literal href starts with https://fonts.gstatic.com and whose rel is not the literal \"preconnect\".",
7
7
  "scope": {
@@ -125,6 +125,16 @@
125
125
  "rules": [
126
126
  "@next/next/google-font-preconnect"
127
127
  ]
128
+ },
129
+ "oxlint": {
130
+ "rules": [
131
+ "google-font-preconnect"
132
+ ]
133
+ },
134
+ "biome": {
135
+ "rules": [
136
+ "lint/performance/useGoogleFontPreconnect"
137
+ ]
128
138
  }
129
139
  }
130
140
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-inline-script-id",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/inline-script-id: an element named by the first local an import from next/script binds, with children or dangerouslySetInnerHTML and no id (attributes and keys of object-literal spreads; any other spread makes it uncheckable).",
7
7
  "scope": {
@@ -389,6 +389,16 @@
389
389
  "rules": [
390
390
  "@next/next/inline-script-id"
391
391
  ]
392
+ },
393
+ "oxlint": {
394
+ "rules": [
395
+ "inline-script-id"
396
+ ]
397
+ },
398
+ "biome": {
399
+ "rules": [
400
+ "lint/correctness/useInlineScriptId"
401
+ ]
392
402
  }
393
403
  }
394
404
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-next-script-for-ga",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/next-script-for-ga: a <script> with a literal src containing the Google Analytics or gtag URL, or whose dangerouslySetInnerHTML object's first property is a template literal whose first quasi contains the GA or GTM script URL.",
7
7
  "scope": {
@@ -135,6 +135,11 @@
135
135
  "rules": [
136
136
  "@next/next/next-script-for-ga"
137
137
  ]
138
+ },
139
+ "oxlint": {
140
+ "rules": [
141
+ "next-script-for-ga"
142
+ ]
138
143
  }
139
144
  }
140
145
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-assign-module-variable",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-assign-module-variable: a variable declaration with a declarator whose identifier is `module`.",
7
7
  "scope": {
@@ -52,6 +52,11 @@
52
52
  "rules": [
53
53
  "@next/next/no-assign-module-variable"
54
54
  ]
55
+ },
56
+ "oxlint": {
57
+ "rules": [
58
+ "no-assign-module-variable"
59
+ ]
55
60
  }
56
61
  }
57
62
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-async-client-component",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-async-client-component: after a top-level \"use client\" statement: an `export default async function` with a capitalized name, or the first top-level declaration of the capitalized name `export default` exports when it is an async function or a variable initialized with an async arrow.",
7
7
  "scope": {
@@ -69,6 +69,16 @@
69
69
  "rules": [
70
70
  "@next/next/no-async-client-component"
71
71
  ]
72
+ },
73
+ "oxlint": {
74
+ "rules": [
75
+ "no-async-client-component"
76
+ ]
77
+ },
78
+ "biome": {
79
+ "rules": [
80
+ "lint/correctness/noNextAsyncClientComponent"
81
+ ]
72
82
  }
73
83
  }
74
84
  }
@@ -204,6 +214,16 @@
204
214
  "rules": [
205
215
  "@next/next/no-async-client-component"
206
216
  ]
217
+ },
218
+ "oxlint": {
219
+ "rules": [
220
+ "no-async-client-component"
221
+ ]
222
+ },
223
+ "biome": {
224
+ "rules": [
225
+ "lint/correctness/noNextAsyncClientComponent"
226
+ ]
207
227
  }
208
228
  }
209
229
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-before-interactive-script-outside-document",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-before-interactive-script-outside-document: an opening element named by the default import of next/script with a plain strategy=\"beforeInteractive\", unless the path contains `/app/` or its segment after the first `pages` has a name starting with `_document`.",
7
7
  "scope": {
@@ -110,6 +110,16 @@
110
110
  "rules": [
111
111
  "@next/next/no-before-interactive-script-outside-document"
112
112
  ]
113
+ },
114
+ "oxlint": {
115
+ "rules": [
116
+ "no-before-interactive-script-outside-document"
117
+ ]
118
+ },
119
+ "biome": {
120
+ "rules": [
121
+ "lint/correctness/noBeforeInteractiveScriptOutsideDocument"
122
+ ]
113
123
  }
114
124
  }
115
125
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-css-tags",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-css-tags: a <link> with rel=\"stylesheet\" and a string href that does not start with http(s).",
7
7
  "scope": {
@@ -99,6 +99,11 @@
99
99
  "rules": [
100
100
  "@next/next/no-css-tags"
101
101
  ]
102
+ },
103
+ "oxlint": {
104
+ "rules": [
105
+ "no-css-tags"
106
+ ]
102
107
  }
103
108
  }
104
109
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-document-import-in-page",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-document-import-in-page: an import from next/document, unless the part of the path after its last `pages` is empty or starts with `/_document`.",
7
7
  "scope": {
@@ -53,6 +53,16 @@
53
53
  "rules": [
54
54
  "@next/next/no-document-import-in-page"
55
55
  ]
56
+ },
57
+ "oxlint": {
58
+ "rules": [
59
+ "no-document-import-in-page"
60
+ ]
61
+ },
62
+ "biome": {
63
+ "rules": [
64
+ "lint/suspicious/noDocumentImportInPage"
65
+ ]
56
66
  }
57
67
  }
58
68
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-duplicate-head",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-duplicate-head: every <Head> child of a returned element after the first, in a return inside a class extending the default import of next/document.",
7
7
  "scope": {
@@ -179,6 +179,11 @@
179
179
  "rules": [
180
180
  "@next/next/no-duplicate-head"
181
181
  ]
182
+ },
183
+ "oxlint": {
184
+ "rules": [
185
+ "no-duplicate-head"
186
+ ]
182
187
  }
183
188
  }
184
189
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-head-import-in-document",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-head-import-in-document: an import from next/head in a file whose path, between its first and second `pages`, names a document (name starts with `_document`, or `/_document/index`).",
7
7
  "scope": {
@@ -53,6 +53,16 @@
53
53
  "rules": [
54
54
  "@next/next/no-head-import-in-document"
55
55
  ]
56
+ },
57
+ "oxlint": {
58
+ "rules": [
59
+ "no-head-import-in-document"
60
+ ]
61
+ },
62
+ "biome": {
63
+ "rules": [
64
+ "lint/suspicious/noHeadImportInDocument"
65
+ ]
56
66
  }
57
67
  }
58
68
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-img-element",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-img-element: an <img> opening element with attributes, not a direct child of <picture>, unless the file is an app-dir metadata image route (the path relative to the ESLint cwd matches ^(src/)?app/ and /opengraph-image|twitter-image|icon.ext).",
7
7
  "scope": {
@@ -223,6 +223,16 @@
223
223
  "rules": [
224
224
  "@next/next/no-img-element"
225
225
  ]
226
+ },
227
+ "oxlint": {
228
+ "rules": [
229
+ "no-img-element"
230
+ ]
231
+ },
232
+ "biome": {
233
+ "rules": [
234
+ "lint/performance/noImgElement"
235
+ ]
226
236
  }
227
237
  }
228
238
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-script-component-in-head",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-script-component-in-head: a <Head> element with a direct <Script> element child, in a file that imports next/head.",
7
7
  "scope": {
@@ -94,6 +94,11 @@
94
94
  "rules": [
95
95
  "@next/next/no-script-component-in-head"
96
96
  ]
97
+ },
98
+ "oxlint": {
99
+ "rules": [
100
+ "no-script-component-in-head"
101
+ ]
97
102
  }
98
103
  }
99
104
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-styled-jsx-in-document",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-styled-jsx-in-document: a <style> opening element with a `jsx` attribute in a file whose path, between its first and second `pages`, names a document.",
7
7
  "scope": {
@@ -73,6 +73,11 @@
73
73
  "rules": [
74
74
  "@next/next/no-styled-jsx-in-document"
75
75
  ]
76
+ },
77
+ "oxlint": {
78
+ "rules": [
79
+ "no-styled-jsx-in-document"
80
+ ]
76
81
  }
77
82
  }
78
83
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-sync-scripts",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-sync-scripts: a <script> opening element with a src attribute and neither async nor defer.",
7
7
  "scope": {
@@ -98,6 +98,16 @@
98
98
  "rules": [
99
99
  "@next/next/no-sync-scripts"
100
100
  ]
101
+ },
102
+ "oxlint": {
103
+ "rules": [
104
+ "no-sync-scripts"
105
+ ]
106
+ },
107
+ "biome": {
108
+ "rules": [
109
+ "lint/performance/noSyncScripts"
110
+ ]
101
111
  }
102
112
  }
103
113
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-title-in-document-head",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-title-in-document-head: the first <title> element child of a <Head> element, in a file with an import from next/document that binds the local name Head.",
7
7
  "scope": {
@@ -178,6 +178,11 @@
178
178
  "rules": [
179
179
  "@next/next/no-title-in-document-head"
180
180
  ]
181
+ },
182
+ "oxlint": {
183
+ "rules": [
184
+ "no-title-in-document-head"
185
+ ]
181
186
  }
182
187
  }
183
188
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-typos",
4
- "revision": 1,
4
+ "revision": 2,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-typos: an exported function or variable whose name is one edit away from getStaticProps, getStaticPaths or getServerSideProps, in a file whose segment after the first `pages` is non-empty and not under /api.",
7
7
  "scope": {
@@ -89,6 +89,11 @@
89
89
  "rules": [
90
90
  "@next/next/no-typos"
91
91
  ]
92
+ },
93
+ "oxlint": {
94
+ "rules": [
95
+ "no-typos"
96
+ ]
92
97
  }
93
98
  }
94
99
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "format": "rerail.policy/v1",
3
3
  "id": "next-no-unwanted-polyfillio",
4
- "revision": 1,
4
+ "revision": 3,
5
5
  "mode": "steer",
6
6
  "description": "@next/eslint-plugin-next 16.3.8 @next/next/no-unwanted-polyfillio: a <script> (or the first local name an import from next/script binds) with a plain string src on a polyfill.io host whose first features parameter lists a feature Next.js already polyfills.",
7
7
  "scope": {
@@ -183,6 +183,16 @@
183
183
  "rules": [
184
184
  "@next/next/no-unwanted-polyfillio"
185
185
  ]
186
+ },
187
+ "oxlint": {
188
+ "rules": [
189
+ "no-unwanted-polyfillio"
190
+ ]
191
+ },
192
+ "biome": {
193
+ "rules": [
194
+ "lint/performance/noUnwantedPolyfillio"
195
+ ]
186
196
  }
187
197
  }
188
198
  }