@neralabs/rerail-pack-next 0.1.1 → 0.1.2
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/README.md +2 -2
- package/licenses/next.js/UPSTREAM.md +8 -0
- package/pack.json +31 -4
- package/package.json +1 -1
- package/rules/next-google-font-display.json +135 -0
- package/rules/next-no-head-element.json +78 -0
- package/rules/next-no-img-element.json +3 -3
- package/rules/next-no-location-assign-relative-destination.json +432 -0
- package/rules/next-no-page-custom-font.json +341 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Rerail rule pack: Next.js
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
21 code rules for Next.js projects, ported from `@next/eslint-plugin-next` 16.3.8. Each is scored against the
|
|
4
4
|
plugin's own findings on the plugin's rule tests, through the engine's production workspace path; no disagreement is
|
|
5
5
|
declared today, so the pack has no `divergences.json`.
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ The pack follows the [pack structure and validation contract](../../docs/pack-fo
|
|
|
13
13
|
| `rules/` | The code-rule documents (`rerail.policy/v1`) |
|
|
14
14
|
| `conformance.json` | Each ported rule's upstream rule, how findings compare, and the capabilities it exercises, the shipped rules first and then the candidates; the pinned plugin and the pinned corpora (shadcn-ui, next-examples, commerce) |
|
|
15
15
|
| `upstream/eslint-plugin-next/` | The plugin's copied rule tests (`tests/`) and the cases extracted from them (`fixtures/`), its recordings (`fixtures.expected.json`, `corpus-<name>.expected.json`, `fixtures.cases.json`) and the recorder (`generate.mjs`) |
|
|
16
|
-
| `candidates/` | Ports that cannot pass their fixtures yet or that fail the
|
|
16
|
+
| `candidates/` | Ports that cannot pass their fixtures yet or that fail the port readiness gates (`rules/`, none today; scored through `conformance.json`, never gating), the Next fact model's probes (`probes/`), and the generators that write them and `rules/` (`build-policies.mjs`, `build-probes.mjs`) |
|
|
17
17
|
| `licenses/next.js/` | Next.js's licence and `UPSTREAM.md`, listing every copied file |
|
|
18
18
|
|
|
19
19
|
The rule documents, `conformance.json`'s and `pack.json`'s rule lists and the candidates are generated, offline:
|
|
@@ -214,3 +214,11 @@ Paths are relative to the pack directory, `packs/next/`.
|
|
|
214
214
|
| `upstream/eslint-plugin-next/fixtures/no-unwanted-polyfillio/invalid-001.js` | `test/unit/eslint-plugin-next/no-unwanted-polyfillio.test.ts` | extracted from invalid[1] (its `code`, verbatim) |
|
|
215
215
|
| `upstream/eslint-plugin-next/fixtures/no-unwanted-polyfillio/invalid-002.js` | `test/unit/eslint-plugin-next/no-unwanted-polyfillio.test.ts` | extracted from invalid[2] (its `code`, verbatim) |
|
|
216
216
|
| `upstream/eslint-plugin-next/fixtures/no-unwanted-polyfillio/invalid-003.js` | `test/unit/eslint-plugin-next/no-unwanted-polyfillio.test.ts` | extracted from invalid[3] (its `code`, verbatim) |
|
|
217
|
+
| `upstream/eslint-plugin-next/fixtures/no-head-element/2a7f549f6c61.ts` | `test/unit/eslint-plugin-next/no-head-element.test.ts` | derived |
|
|
218
|
+
|
|
219
|
+
> `recording.json` is a port readiness recording, and no file of this pack, so it is recorded here rather than in the
|
|
220
|
+
> table above: the tool-pack's `recording.lock` names it and a GitHub release holds the bytes (docs/port-readiness.md).
|
|
221
|
+
> It carries excerpts of this upstream's tests (`test/unit/eslint-plugin-next/*.test.ts`: the `code` of each RuleTester
|
|
222
|
+
> case), redistributed under the licence above, together with Rerail's Apache-2.0; the LICENSE beside this file is this
|
|
223
|
+
> upstream's own, at the pinned commit.
|
|
224
|
+
|
package/pack.json
CHANGED
|
@@ -3,14 +3,17 @@
|
|
|
3
3
|
"id": "next",
|
|
4
4
|
"name": "Next.js",
|
|
5
5
|
"category": "framework",
|
|
6
|
-
"covers": "
|
|
6
|
+
"covers": "21 @next/eslint-plugin-next rules ported to Rerail, each scored against the plugin's own recorded findings on its rule tests.",
|
|
7
7
|
"reason": "matches Next.js",
|
|
8
8
|
"match": {
|
|
9
9
|
"any": [
|
|
10
10
|
{
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"ecosystem": "npm",
|
|
13
|
+
"names": [
|
|
14
|
+
"next"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
14
17
|
}
|
|
15
18
|
]
|
|
16
19
|
},
|
|
@@ -31,6 +34,12 @@
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
},
|
|
37
|
+
{
|
|
38
|
+
"id": "next-no-head-element",
|
|
39
|
+
"document": "rules/next-no-head-element.json",
|
|
40
|
+
"title": "No head element",
|
|
41
|
+
"group": "Next.js"
|
|
42
|
+
},
|
|
34
43
|
{
|
|
35
44
|
"id": "next-no-sync-scripts",
|
|
36
45
|
"document": "rules/next-no-sync-scripts.json",
|
|
@@ -53,6 +62,12 @@
|
|
|
53
62
|
"title": "No css tags",
|
|
54
63
|
"group": "Next.js"
|
|
55
64
|
},
|
|
65
|
+
{
|
|
66
|
+
"id": "next-google-font-display",
|
|
67
|
+
"document": "rules/next-google-font-display.json",
|
|
68
|
+
"title": "Google font display",
|
|
69
|
+
"group": "Next.js"
|
|
70
|
+
},
|
|
56
71
|
{
|
|
57
72
|
"id": "next-google-font-preconnect",
|
|
58
73
|
"document": "rules/next-google-font-preconnect.json",
|
|
@@ -176,6 +191,18 @@
|
|
|
176
191
|
"document": "rules/next-no-typos.json",
|
|
177
192
|
"title": "No typos",
|
|
178
193
|
"group": "Next.js"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "next-no-page-custom-font",
|
|
197
|
+
"document": "rules/next-no-page-custom-font.json",
|
|
198
|
+
"title": "No page custom font",
|
|
199
|
+
"group": "Next.js"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"id": "next-no-location-assign-relative-destination",
|
|
203
|
+
"document": "rules/next-no-location-assign-relative-destination.json",
|
|
204
|
+
"title": "No location assign relative destination",
|
|
205
|
+
"group": "Next.js"
|
|
179
206
|
}
|
|
180
207
|
]
|
|
181
208
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "next-google-font-display",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "@next/eslint-plugin-next 16.3.8 @next/next/google-font-display: a <link> whose literal href is a Google Fonts CSS URL whose query has no display parameter, or display=auto|block|fallback.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.mts",
|
|
11
|
+
"**/*.cts",
|
|
12
|
+
"**/*.tsx",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "upstream",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"rule": {
|
|
27
|
+
"all": [
|
|
28
|
+
{
|
|
29
|
+
"any": [
|
|
30
|
+
{
|
|
31
|
+
"kind": "jsx_opening_element"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"kind": "jsx_self_closing_element"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"has": {
|
|
40
|
+
"field": "name",
|
|
41
|
+
"kind": "identifier",
|
|
42
|
+
"regex": "^link$"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"has": {
|
|
47
|
+
"kind": "jsx_attribute",
|
|
48
|
+
"all": [
|
|
49
|
+
{
|
|
50
|
+
"has": {
|
|
51
|
+
"kind": "property_identifier",
|
|
52
|
+
"regex": "^href$"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"has": {
|
|
57
|
+
"any": [
|
|
58
|
+
{
|
|
59
|
+
"kind": "string",
|
|
60
|
+
"value": {
|
|
61
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
62
|
+
},
|
|
63
|
+
"any": [
|
|
64
|
+
{
|
|
65
|
+
"not": {
|
|
66
|
+
"value": {
|
|
67
|
+
"regex": "^[^?]*\\?(?:[^&?]*&)*display(?:=|&|\\?|$)"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"value": {
|
|
73
|
+
"regex": "^[^?]*\\?(?:[^&?]*&)*display=(?:auto|block|fallback)(?:&|\\?|$)"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"kind": "jsx_expression",
|
|
80
|
+
"has": {
|
|
81
|
+
"kind": "string",
|
|
82
|
+
"value": {
|
|
83
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
84
|
+
},
|
|
85
|
+
"any": [
|
|
86
|
+
{
|
|
87
|
+
"not": {
|
|
88
|
+
"value": {
|
|
89
|
+
"regex": "^[^?]*\\?(?:[^&?]*&)*display(?:=|&|\\?|$)"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"value": {
|
|
95
|
+
"regex": "^[^?]*\\?(?:[^&?]*&)*display=(?:auto|block|fallback)(?:&|\\?|$)"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"violation": {
|
|
112
|
+
"anchor": "witness.span",
|
|
113
|
+
"code": "@next/next/google-font-display",
|
|
114
|
+
"message": "A font-display parameter is missing or not recommended. See: https://nextjs.org/docs/messages/google-font-display",
|
|
115
|
+
"suppress": {
|
|
116
|
+
"eslint": {
|
|
117
|
+
"rules": [
|
|
118
|
+
"@next/next/google-font-display"
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
"oxlint": {
|
|
122
|
+
"rules": [
|
|
123
|
+
"google-font-display"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
"biome": {
|
|
127
|
+
"rules": [
|
|
128
|
+
"lint/suspicious/useGoogleFontDisplay"
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "next-no-head-element",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "@next/eslint-plugin-next 16.3.8 @next/next/no-head-element: a <head> opening element, unless the file's path contains `app/`.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.mts",
|
|
11
|
+
"**/*.cts",
|
|
12
|
+
"**/*.tsx",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "upstream",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"file": {
|
|
27
|
+
"path": {
|
|
28
|
+
"notRegex": "app/"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"rule": {
|
|
32
|
+
"all": [
|
|
33
|
+
{
|
|
34
|
+
"any": [
|
|
35
|
+
{
|
|
36
|
+
"kind": "jsx_opening_element"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "jsx_self_closing_element"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"has": {
|
|
45
|
+
"field": "name",
|
|
46
|
+
"kind": "identifier",
|
|
47
|
+
"regex": "^head$"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"violation": {
|
|
55
|
+
"anchor": "witness.span",
|
|
56
|
+
"code": "@next/next/no-head-element",
|
|
57
|
+
"message": "Do not use `<head>` element. Use `<Head />` from `next/head` instead. See: https://nextjs.org/docs/messages/no-head-element",
|
|
58
|
+
"suppress": {
|
|
59
|
+
"eslint": {
|
|
60
|
+
"rules": [
|
|
61
|
+
"@next/next/no-head-element"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"oxlint": {
|
|
65
|
+
"rules": [
|
|
66
|
+
"no-head-element"
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"biome": {
|
|
70
|
+
"rules": [
|
|
71
|
+
"lint/style/noHeadElement"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": "rerail.policy/v1",
|
|
3
3
|
"id": "next-no-img-element",
|
|
4
|
-
"revision":
|
|
4
|
+
"revision": 4,
|
|
5
5
|
"mode": "steer",
|
|
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).",
|
|
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). The message is upstream's with more added (NER-1946): what `<Image />` needs (width and height or fill; a matching images.remotePatterns entry for a remote src) and the eslint-disable comment that keeps `<img>`.",
|
|
7
7
|
"scope": {
|
|
8
8
|
"include": [
|
|
9
9
|
"**/*.ts",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"violation": {
|
|
218
218
|
"anchor": "witness.span",
|
|
219
219
|
"code": "@next/next/no-img-element",
|
|
220
|
-
"message": "Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element",
|
|
220
|
+
"message": "Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` or a custom image loader to automatically optimize images. This may incur additional usage or cost from your provider. `<Image />` needs `width` and `height` (or `fill`) unless `src` is a static import, and a remote `src` needs a matching `images.remotePatterns` entry in next.config. To keep `<img>`, e.g. for images from arbitrary hosts, put `// eslint-disable-next-line @next/next/no-img-element -- <reason>` on the line above (as `{/* ... */}` among JSX children). See: https://nextjs.org/docs/messages/no-img-element",
|
|
221
221
|
"suppress": {
|
|
222
222
|
"eslint": {
|
|
223
223
|
"rules": [
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "next-no-location-assign-relative-destination",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "@next/eslint-plugin-next 16.3.8 @next/next/no-location-assign-relative-destination: an assignment to location.href (or window/globalThis/document/self.location.href) or a call of its assign(), whose value's static string prefix is a relative URL.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.mts",
|
|
11
|
+
"**/*.cts",
|
|
12
|
+
"**/*.tsx",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "href",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"languageOptions": {
|
|
27
|
+
"globals": {
|
|
28
|
+
"location": "readonly",
|
|
29
|
+
"window": "readonly",
|
|
30
|
+
"document": "readonly",
|
|
31
|
+
"self": "readonly"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"utils": {
|
|
35
|
+
"location-root": {
|
|
36
|
+
"any": [
|
|
37
|
+
{
|
|
38
|
+
"kind": "identifier",
|
|
39
|
+
"resolves": {
|
|
40
|
+
"global": [
|
|
41
|
+
"location"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"all": [
|
|
47
|
+
{
|
|
48
|
+
"any": [
|
|
49
|
+
{
|
|
50
|
+
"kind": "member_expression",
|
|
51
|
+
"has": {
|
|
52
|
+
"field": "property",
|
|
53
|
+
"kind": "property_identifier",
|
|
54
|
+
"regex": "^location$"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"kind": "subscript_expression",
|
|
59
|
+
"has": {
|
|
60
|
+
"field": "index",
|
|
61
|
+
"kind": "string",
|
|
62
|
+
"value": {
|
|
63
|
+
"eq": "location"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"has": {
|
|
71
|
+
"field": "object",
|
|
72
|
+
"kind": "identifier",
|
|
73
|
+
"resolves": {
|
|
74
|
+
"global": [
|
|
75
|
+
"window",
|
|
76
|
+
"globalThis",
|
|
77
|
+
"document",
|
|
78
|
+
"self"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"relative-prefix": {
|
|
88
|
+
"any": [
|
|
89
|
+
{
|
|
90
|
+
"value": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"follow": true
|
|
93
|
+
},
|
|
94
|
+
"not": {
|
|
95
|
+
"value": {
|
|
96
|
+
"regex": "^(?:[A-Za-z][0-9+.A-Za-z-]*:|//)",
|
|
97
|
+
"follow": true
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "template_string",
|
|
103
|
+
"has": {
|
|
104
|
+
"kind": "template_substitution"
|
|
105
|
+
},
|
|
106
|
+
"not": {
|
|
107
|
+
"regex": "^`(?:[A-Za-z][0-9+.A-Za-z-]*:|//)"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "binary_expression",
|
|
112
|
+
"has": {
|
|
113
|
+
"field": "operator",
|
|
114
|
+
"regex": "^\\+$"
|
|
115
|
+
},
|
|
116
|
+
"all": [
|
|
117
|
+
{
|
|
118
|
+
"has": {
|
|
119
|
+
"field": "left",
|
|
120
|
+
"matches": "relative-prefix"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"kind": "parenthesized_expression",
|
|
127
|
+
"has": {
|
|
128
|
+
"matches": "relative-prefix"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"kind": "identifier",
|
|
133
|
+
"resolves": {
|
|
134
|
+
"binding": {
|
|
135
|
+
"value": {
|
|
136
|
+
"matches": "relative-prefix"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"kind": "identifier",
|
|
143
|
+
"resolves": {
|
|
144
|
+
"binding": {
|
|
145
|
+
"occurrence": {
|
|
146
|
+
"kind": "identifier",
|
|
147
|
+
"inside": {
|
|
148
|
+
"kind": "assignment_expression",
|
|
149
|
+
"field": "left",
|
|
150
|
+
"has": {
|
|
151
|
+
"field": "right",
|
|
152
|
+
"matches": "relative-prefix"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"rule": {
|
|
163
|
+
"kind": "assignment_expression",
|
|
164
|
+
"all": [
|
|
165
|
+
{
|
|
166
|
+
"has": {
|
|
167
|
+
"field": "left",
|
|
168
|
+
"all": [
|
|
169
|
+
{
|
|
170
|
+
"any": [
|
|
171
|
+
{
|
|
172
|
+
"kind": "member_expression",
|
|
173
|
+
"has": {
|
|
174
|
+
"field": "property",
|
|
175
|
+
"kind": "property_identifier",
|
|
176
|
+
"regex": "^href$"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"kind": "subscript_expression",
|
|
181
|
+
"has": {
|
|
182
|
+
"field": "index",
|
|
183
|
+
"kind": "string",
|
|
184
|
+
"value": {
|
|
185
|
+
"eq": "href"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"has": {
|
|
193
|
+
"field": "object",
|
|
194
|
+
"matches": "location-root"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"has": {
|
|
202
|
+
"field": "right",
|
|
203
|
+
"matches": "relative-prefix"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"violation": {
|
|
211
|
+
"anchor": "witness.span",
|
|
212
|
+
"code": "@next/next/no-location-assign-relative-destination",
|
|
213
|
+
"message": "Do not use `location` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination",
|
|
214
|
+
"suppress": {
|
|
215
|
+
"eslint": {
|
|
216
|
+
"rules": [
|
|
217
|
+
"@next/next/no-location-assign-relative-destination"
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"id": "assign",
|
|
225
|
+
"forbid": {
|
|
226
|
+
"ast": {
|
|
227
|
+
"language": "typescript",
|
|
228
|
+
"languageOptions": {
|
|
229
|
+
"globals": {
|
|
230
|
+
"location": "readonly",
|
|
231
|
+
"window": "readonly",
|
|
232
|
+
"document": "readonly",
|
|
233
|
+
"self": "readonly"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"utils": {
|
|
237
|
+
"location-root": {
|
|
238
|
+
"any": [
|
|
239
|
+
{
|
|
240
|
+
"kind": "identifier",
|
|
241
|
+
"resolves": {
|
|
242
|
+
"global": [
|
|
243
|
+
"location"
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"all": [
|
|
249
|
+
{
|
|
250
|
+
"any": [
|
|
251
|
+
{
|
|
252
|
+
"kind": "member_expression",
|
|
253
|
+
"has": {
|
|
254
|
+
"field": "property",
|
|
255
|
+
"kind": "property_identifier",
|
|
256
|
+
"regex": "^location$"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
"kind": "subscript_expression",
|
|
261
|
+
"has": {
|
|
262
|
+
"field": "index",
|
|
263
|
+
"kind": "string",
|
|
264
|
+
"value": {
|
|
265
|
+
"eq": "location"
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"has": {
|
|
273
|
+
"field": "object",
|
|
274
|
+
"kind": "identifier",
|
|
275
|
+
"resolves": {
|
|
276
|
+
"global": [
|
|
277
|
+
"window",
|
|
278
|
+
"globalThis",
|
|
279
|
+
"document",
|
|
280
|
+
"self"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
]
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"relative-prefix": {
|
|
290
|
+
"any": [
|
|
291
|
+
{
|
|
292
|
+
"value": {
|
|
293
|
+
"type": "string",
|
|
294
|
+
"follow": true
|
|
295
|
+
},
|
|
296
|
+
"not": {
|
|
297
|
+
"value": {
|
|
298
|
+
"regex": "^(?:[A-Za-z][0-9+.A-Za-z-]*:|//)",
|
|
299
|
+
"follow": true
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"kind": "template_string",
|
|
305
|
+
"has": {
|
|
306
|
+
"kind": "template_substitution"
|
|
307
|
+
},
|
|
308
|
+
"not": {
|
|
309
|
+
"regex": "^`(?:[A-Za-z][0-9+.A-Za-z-]*:|//)"
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"kind": "binary_expression",
|
|
314
|
+
"has": {
|
|
315
|
+
"field": "operator",
|
|
316
|
+
"regex": "^\\+$"
|
|
317
|
+
},
|
|
318
|
+
"all": [
|
|
319
|
+
{
|
|
320
|
+
"has": {
|
|
321
|
+
"field": "left",
|
|
322
|
+
"matches": "relative-prefix"
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"kind": "parenthesized_expression",
|
|
329
|
+
"has": {
|
|
330
|
+
"matches": "relative-prefix"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"kind": "identifier",
|
|
335
|
+
"resolves": {
|
|
336
|
+
"binding": {
|
|
337
|
+
"value": {
|
|
338
|
+
"matches": "relative-prefix"
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"kind": "identifier",
|
|
345
|
+
"resolves": {
|
|
346
|
+
"binding": {
|
|
347
|
+
"occurrence": {
|
|
348
|
+
"kind": "identifier",
|
|
349
|
+
"inside": {
|
|
350
|
+
"kind": "assignment_expression",
|
|
351
|
+
"field": "left",
|
|
352
|
+
"has": {
|
|
353
|
+
"field": "right",
|
|
354
|
+
"matches": "relative-prefix"
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
]
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"rule": {
|
|
365
|
+
"kind": "call_expression",
|
|
366
|
+
"all": [
|
|
367
|
+
{
|
|
368
|
+
"has": {
|
|
369
|
+
"field": "function",
|
|
370
|
+
"all": [
|
|
371
|
+
{
|
|
372
|
+
"any": [
|
|
373
|
+
{
|
|
374
|
+
"kind": "member_expression",
|
|
375
|
+
"has": {
|
|
376
|
+
"field": "property",
|
|
377
|
+
"kind": "property_identifier",
|
|
378
|
+
"regex": "^assign$"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"kind": "subscript_expression",
|
|
383
|
+
"has": {
|
|
384
|
+
"field": "index",
|
|
385
|
+
"kind": "string",
|
|
386
|
+
"value": {
|
|
387
|
+
"eq": "assign"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"has": {
|
|
395
|
+
"field": "object",
|
|
396
|
+
"matches": "location-root"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
]
|
|
400
|
+
}
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"has": {
|
|
404
|
+
"field": "arguments",
|
|
405
|
+
"has": {
|
|
406
|
+
"nthChild": 1,
|
|
407
|
+
"not": {
|
|
408
|
+
"kind": "spread_element"
|
|
409
|
+
},
|
|
410
|
+
"matches": "relative-prefix"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"violation": {
|
|
419
|
+
"anchor": "witness.span",
|
|
420
|
+
"code": "@next/next/no-location-assign-relative-destination",
|
|
421
|
+
"message": "Do not use `location` to navigate to internal Next.js pages. Use `redirect()` in the render phase, or `useRouter().push()` in Client Components' event handlers instead. See: https://nextjs.org/docs/messages/no-location-assign-relative-destination",
|
|
422
|
+
"suppress": {
|
|
423
|
+
"eslint": {
|
|
424
|
+
"rules": [
|
|
425
|
+
"@next/next/no-location-assign-relative-destination"
|
|
426
|
+
]
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "next-no-page-custom-font",
|
|
4
|
+
"revision": 1,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "@next/eslint-plugin-next 16.3.8 @next/next/no-page-custom-font: a <link> whose literal href is a Google Fonts CSS URL, unless the file is pages/_document (last `pages` piece starts with /_document) and the link is inside the default-exported component.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.mts",
|
|
11
|
+
"**/*.cts",
|
|
12
|
+
"**/*.tsx",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "page",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"file": {
|
|
27
|
+
"path": {
|
|
28
|
+
"notRegex": "pages(?:/_document(?:[^p]|p(?:p|ap|agp|agep)*(?:[^pa]|a[^gp]|ag[^ep]|age[^sp]))*(?:p(?:p|ap|agp|agep)*(?:a|ag|age)?)?)?$"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"rule": {
|
|
32
|
+
"all": [
|
|
33
|
+
{
|
|
34
|
+
"any": [
|
|
35
|
+
{
|
|
36
|
+
"kind": "jsx_opening_element"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "jsx_self_closing_element"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"has": {
|
|
45
|
+
"field": "name",
|
|
46
|
+
"kind": "identifier",
|
|
47
|
+
"regex": "^link$"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"has": {
|
|
52
|
+
"kind": "jsx_attribute",
|
|
53
|
+
"all": [
|
|
54
|
+
{
|
|
55
|
+
"has": {
|
|
56
|
+
"kind": "property_identifier",
|
|
57
|
+
"regex": "^href$"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"has": {
|
|
62
|
+
"any": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "string",
|
|
65
|
+
"value": {
|
|
66
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "jsx_expression",
|
|
71
|
+
"has": {
|
|
72
|
+
"kind": "string",
|
|
73
|
+
"value": {
|
|
74
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"violation": {
|
|
89
|
+
"anchor": "witness.span",
|
|
90
|
+
"code": "@next/next/no-page-custom-font",
|
|
91
|
+
"message": "Custom fonts not added in `pages/_document.js` will only load for a single page. This is discouraged. See: https://nextjs.org/docs/messages/no-page-custom-font",
|
|
92
|
+
"suppress": {
|
|
93
|
+
"eslint": {
|
|
94
|
+
"rules": [
|
|
95
|
+
"@next/next/no-page-custom-font"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"oxlint": {
|
|
99
|
+
"rules": [
|
|
100
|
+
"no-page-custom-font"
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"id": "document",
|
|
108
|
+
"forbid": {
|
|
109
|
+
"ast": {
|
|
110
|
+
"language": "typescript",
|
|
111
|
+
"file": {
|
|
112
|
+
"path": {
|
|
113
|
+
"regex": "pages/_document(?:[^p]|p(?:p|ap|agp|agep)*(?:[^pa]|a[^gp]|ag[^ep]|age[^sp]))*(?:p(?:p|ap|agp|agep)*(?:a|ag|age)?)?$"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"rule": {
|
|
117
|
+
"all": [
|
|
118
|
+
{
|
|
119
|
+
"all": [
|
|
120
|
+
{
|
|
121
|
+
"any": [
|
|
122
|
+
{
|
|
123
|
+
"kind": "jsx_opening_element"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"kind": "jsx_self_closing_element"
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"has": {
|
|
132
|
+
"field": "name",
|
|
133
|
+
"kind": "identifier",
|
|
134
|
+
"regex": "^link$"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"has": {
|
|
139
|
+
"kind": "jsx_attribute",
|
|
140
|
+
"all": [
|
|
141
|
+
{
|
|
142
|
+
"has": {
|
|
143
|
+
"kind": "property_identifier",
|
|
144
|
+
"regex": "^href$"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"has": {
|
|
149
|
+
"any": [
|
|
150
|
+
{
|
|
151
|
+
"kind": "string",
|
|
152
|
+
"value": {
|
|
153
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"kind": "jsx_expression",
|
|
158
|
+
"has": {
|
|
159
|
+
"kind": "string",
|
|
160
|
+
"value": {
|
|
161
|
+
"startsWith": "https://fonts.googleapis.com/css"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"not": {
|
|
175
|
+
"inside": {
|
|
176
|
+
"stopBy": "end",
|
|
177
|
+
"any": [
|
|
178
|
+
{
|
|
179
|
+
"any": [
|
|
180
|
+
{
|
|
181
|
+
"kind": "function_declaration"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"kind": "function_expression"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"inside": {
|
|
188
|
+
"kind": "export_statement",
|
|
189
|
+
"regex": "^export\\s+default\\s"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"all": [
|
|
194
|
+
{
|
|
195
|
+
"all": [
|
|
196
|
+
{
|
|
197
|
+
"any": [
|
|
198
|
+
{
|
|
199
|
+
"kind": "class_declaration"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"kind": "class",
|
|
203
|
+
"inside": {
|
|
204
|
+
"kind": "export_statement"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"has": {
|
|
211
|
+
"kind": "class_heritage",
|
|
212
|
+
"any": [
|
|
213
|
+
{
|
|
214
|
+
"has": {
|
|
215
|
+
"kind": "identifier",
|
|
216
|
+
"pattern": "$D"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"has": {
|
|
221
|
+
"kind": "extends_clause",
|
|
222
|
+
"has": {
|
|
223
|
+
"field": "value",
|
|
224
|
+
"kind": "identifier",
|
|
225
|
+
"pattern": "$D"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"inside": {
|
|
234
|
+
"kind": "program",
|
|
235
|
+
"stopBy": "end",
|
|
236
|
+
"has": {
|
|
237
|
+
"kind": "import_statement",
|
|
238
|
+
"all": [
|
|
239
|
+
{
|
|
240
|
+
"has": {
|
|
241
|
+
"field": "source",
|
|
242
|
+
"kind": "string",
|
|
243
|
+
"value": {
|
|
244
|
+
"eq": "next/document"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"has": {
|
|
250
|
+
"kind": "import_clause",
|
|
251
|
+
"has": {
|
|
252
|
+
"kind": "identifier",
|
|
253
|
+
"pattern": "$D"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"inside": {
|
|
265
|
+
"kind": "export_statement",
|
|
266
|
+
"regex": "^export\\s+default\\s"
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"all": [
|
|
273
|
+
{
|
|
274
|
+
"any": [
|
|
275
|
+
{
|
|
276
|
+
"kind": "function_declaration"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"kind": "class_declaration"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"kind": "function_expression"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"kind": "class"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"kind": "variable_declarator"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"has": {
|
|
294
|
+
"field": "name",
|
|
295
|
+
"pattern": "$X"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"inside": {
|
|
300
|
+
"kind": "program",
|
|
301
|
+
"stopBy": "end",
|
|
302
|
+
"has": {
|
|
303
|
+
"kind": "export_statement",
|
|
304
|
+
"has": {
|
|
305
|
+
"field": "value",
|
|
306
|
+
"kind": "identifier",
|
|
307
|
+
"pattern": "$X"
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
]
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
"violation": {
|
|
323
|
+
"anchor": "witness.span",
|
|
324
|
+
"code": "@next/next/no-page-custom-font",
|
|
325
|
+
"message": "Using `<link />` outside of `<Head>` will disable automatic font optimization. This is discouraged. See: https://nextjs.org/docs/messages/no-page-custom-font",
|
|
326
|
+
"suppress": {
|
|
327
|
+
"eslint": {
|
|
328
|
+
"rules": [
|
|
329
|
+
"@next/next/no-page-custom-font"
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
"oxlint": {
|
|
333
|
+
"rules": [
|
|
334
|
+
"no-page-custom-font"
|
|
335
|
+
]
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|