@neralabs/rerail-pack-next 0.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.
@@ -0,0 +1,186 @@
1
+ {
2
+ "format": "rerail.policy/v1",
3
+ "id": "next-no-title-in-document-head",
4
+ "revision": 1,
5
+ "mode": "steer",
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
+ "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_self_closing_element",
32
+ "has": {
33
+ "field": "name",
34
+ "kind": "identifier",
35
+ "regex": "^title$"
36
+ }
37
+ },
38
+ {
39
+ "kind": "jsx_element",
40
+ "has": {
41
+ "field": "open_tag",
42
+ "has": {
43
+ "field": "name",
44
+ "kind": "identifier",
45
+ "regex": "^title$"
46
+ }
47
+ }
48
+ }
49
+ ]
50
+ },
51
+ {
52
+ "inside": {
53
+ "kind": "jsx_element",
54
+ "has": {
55
+ "field": "open_tag",
56
+ "has": {
57
+ "field": "name",
58
+ "kind": "identifier",
59
+ "regex": "^Head$"
60
+ }
61
+ }
62
+ }
63
+ },
64
+ {
65
+ "not": {
66
+ "follows": {
67
+ "stopBy": "end",
68
+ "any": [
69
+ {
70
+ "kind": "jsx_self_closing_element",
71
+ "has": {
72
+ "field": "name",
73
+ "kind": "identifier",
74
+ "regex": "^title$"
75
+ }
76
+ },
77
+ {
78
+ "kind": "jsx_element",
79
+ "has": {
80
+ "field": "open_tag",
81
+ "has": {
82
+ "field": "name",
83
+ "kind": "identifier",
84
+ "regex": "^title$"
85
+ }
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "inside": {
94
+ "kind": "program",
95
+ "stopBy": "end",
96
+ "has": {
97
+ "kind": "import_statement",
98
+ "all": [
99
+ {
100
+ "has": {
101
+ "field": "source",
102
+ "kind": "string",
103
+ "value": {
104
+ "eq": "next/document"
105
+ }
106
+ }
107
+ },
108
+ {
109
+ "has": {
110
+ "kind": "import_clause",
111
+ "any": [
112
+ {
113
+ "has": {
114
+ "kind": "identifier",
115
+ "regex": "^Head$"
116
+ }
117
+ },
118
+ {
119
+ "has": {
120
+ "kind": "namespace_import",
121
+ "has": {
122
+ "kind": "identifier",
123
+ "regex": "^Head$"
124
+ }
125
+ }
126
+ },
127
+ {
128
+ "has": {
129
+ "kind": "named_imports",
130
+ "has": {
131
+ "kind": "import_specifier",
132
+ "any": [
133
+ {
134
+ "has": {
135
+ "field": "alias",
136
+ "regex": "^Head$"
137
+ }
138
+ },
139
+ {
140
+ "all": [
141
+ {
142
+ "not": {
143
+ "has": {
144
+ "field": "alias",
145
+ "kind": "identifier"
146
+ }
147
+ }
148
+ },
149
+ {
150
+ "has": {
151
+ "field": "name",
152
+ "regex": "^Head$"
153
+ }
154
+ }
155
+ ]
156
+ }
157
+ ]
158
+ }
159
+ }
160
+ }
161
+ ]
162
+ }
163
+ }
164
+ ]
165
+ }
166
+ }
167
+ }
168
+ ]
169
+ }
170
+ }
171
+ },
172
+ "violation": {
173
+ "anchor": "witness.span",
174
+ "code": "@next/next/no-title-in-document-head",
175
+ "message": "Do not use `<title>` element with `<Head />` component from `next/document`. Titles should defined at the page-level using `<Head />` from `next/head` instead. See: https://nextjs.org/docs/messages/no-title-in-document-head",
176
+ "suppress": {
177
+ "eslint": {
178
+ "rules": [
179
+ "@next/next/no-title-in-document-head"
180
+ ]
181
+ }
182
+ }
183
+ }
184
+ }
185
+ ]
186
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "format": "rerail.policy/v1",
3
+ "id": "next-no-typos",
4
+ "revision": 1,
5
+ "mode": "steer",
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
+ "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
+ "regex": "^(?:[^p]|p(?:p|ap|agp|agep)*(?:[^pa]|a[^gp]|ag[^ep]|age[^sp]))*(?:p(?:p|ap|agp|agep)*(?:a|ag|age)?)?pages(?:[^p]|p(?:[^a]|$)|pa(?:[^g]|$)|pag(?:[^e]|$)|page(?:[^s]|$))",
29
+ "notRegex": "^(?:[^p]|p(?:p|ap|agp|agep)*(?:[^pa]|a[^gp]|ag[^ep]|age[^sp]))*(?:p(?:p|ap|agp|agep)*(?:a|ag|age)?)?pages/api(?:[^p]|p(?:p|ap|agp|agep)*(?:[^pa]|a[^gp]|ag[^ep]|age[^sp]))*(?:p(?:p|ap|agp|agep)*(?:a|ag|age)?)?/(?:[^/p]|p(?:[^a]|$)|pa(?:[^g]|$)|pag(?:[^e]|$)|page(?:[^s]|$))"
30
+ }
31
+ },
32
+ "rule": {
33
+ "all": [
34
+ {
35
+ "any": [
36
+ {
37
+ "kind": "function_declaration",
38
+ "has": {
39
+ "field": "name",
40
+ "regex": "^(?:[A-Za-z0-9_$]etStaticProps|etStaticProps|g[A-Za-z0-9_$]tStaticProps|gtStaticProps|ge[A-Za-z0-9_$]StaticProps|geStaticProps|get[A-Za-z0-9_$]taticProps|gettaticProps|getS[A-Za-z0-9_$]aticProps|getSaticProps|getSt[A-Za-z0-9_$]ticProps|getStticProps|getSta[A-Za-z0-9_$]icProps|getStaicProps|getStat[A-Za-z0-9_$]cProps|getStatcProps|getStati[A-Za-z0-9_$]Props|getStatiProps|getStatic[A-Za-z0-9_$]rops|getStaticrops|getStaticP[A-Za-z0-9_$]ops|getStaticPops|getStaticPr[A-Za-z0-9_$]ps|getStaticPrps|getStaticPro[A-Za-z0-9_$]s|getStaticPros|getStaticProp[A-Za-z0-9_$]|getStaticProp|[A-Za-z0-9_$]getStaticProps|g[A-Za-z0-9_$]etStaticProps|ge[A-Za-z0-9_$]tStaticProps|get[A-Za-z0-9_$]StaticProps|getS[A-Za-z0-9_$]taticProps|getSt[A-Za-z0-9_$]aticProps|getSta[A-Za-z0-9_$]ticProps|getStat[A-Za-z0-9_$]icProps|getStati[A-Za-z0-9_$]cProps|getStatic[A-Za-z0-9_$]Props|getStaticP[A-Za-z0-9_$]rops|getStaticPr[A-Za-z0-9_$]ops|getStaticPro[A-Za-z0-9_$]ps|getStaticProp[A-Za-z0-9_$]s|getStaticProps[A-Za-z0-9_$]|[A-Za-z0-9_$]etStaticPaths|etStaticPaths|g[A-Za-z0-9_$]tStaticPaths|gtStaticPaths|ge[A-Za-z0-9_$]StaticPaths|geStaticPaths|get[A-Za-z0-9_$]taticPaths|gettaticPaths|getS[A-Za-z0-9_$]aticPaths|getSaticPaths|getSt[A-Za-z0-9_$]ticPaths|getStticPaths|getSta[A-Za-z0-9_$]icPaths|getStaicPaths|getStat[A-Za-z0-9_$]cPaths|getStatcPaths|getStati[A-Za-z0-9_$]Paths|getStatiPaths|getStatic[A-Za-z0-9_$]aths|getStaticaths|getStaticP[A-Za-z0-9_$]ths|getStaticPths|getStaticPa[A-Za-z0-9_$]hs|getStaticPahs|getStaticPat[A-Za-z0-9_$]s|getStaticPats|getStaticPath[A-Za-z0-9_$]|getStaticPath|[A-Za-z0-9_$]getStaticPaths|g[A-Za-z0-9_$]etStaticPaths|ge[A-Za-z0-9_$]tStaticPaths|get[A-Za-z0-9_$]StaticPaths|getS[A-Za-z0-9_$]taticPaths|getSt[A-Za-z0-9_$]aticPaths|getSta[A-Za-z0-9_$]ticPaths|getStat[A-Za-z0-9_$]icPaths|getStati[A-Za-z0-9_$]cPaths|getStatic[A-Za-z0-9_$]Paths|getStaticP[A-Za-z0-9_$]aths|getStaticPa[A-Za-z0-9_$]ths|getStaticPat[A-Za-z0-9_$]hs|getStaticPath[A-Za-z0-9_$]s|getStaticPaths[A-Za-z0-9_$]|[A-Za-z0-9_$]etServerSideProps|etServerSideProps|g[A-Za-z0-9_$]tServerSideProps|gtServerSideProps|ge[A-Za-z0-9_$]ServerSideProps|geServerSideProps|get[A-Za-z0-9_$]erverSideProps|geterverSideProps|getS[A-Za-z0-9_$]rverSideProps|getSrverSideProps|getSe[A-Za-z0-9_$]verSideProps|getSeverSideProps|getSer[A-Za-z0-9_$]erSideProps|getSererSideProps|getServ[A-Za-z0-9_$]rSideProps|getServrSideProps|getServe[A-Za-z0-9_$]SideProps|getServeSideProps|getServer[A-Za-z0-9_$]ideProps|getServerideProps|getServerS[A-Za-z0-9_$]deProps|getServerSdeProps|getServerSi[A-Za-z0-9_$]eProps|getServerSieProps|getServerSid[A-Za-z0-9_$]Props|getServerSidProps|getServerSide[A-Za-z0-9_$]rops|getServerSiderops|getServerSideP[A-Za-z0-9_$]ops|getServerSidePops|getServerSidePr[A-Za-z0-9_$]ps|getServerSidePrps|getServerSidePro[A-Za-z0-9_$]s|getServerSidePros|getServerSideProp[A-Za-z0-9_$]|getServerSideProp|[A-Za-z0-9_$]getServerSideProps|g[A-Za-z0-9_$]etServerSideProps|ge[A-Za-z0-9_$]tServerSideProps|get[A-Za-z0-9_$]ServerSideProps|getS[A-Za-z0-9_$]erverSideProps|getSe[A-Za-z0-9_$]rverSideProps|getSer[A-Za-z0-9_$]verSideProps|getServ[A-Za-z0-9_$]erSideProps|getServe[A-Za-z0-9_$]rSideProps|getServer[A-Za-z0-9_$]SideProps|getServerS[A-Za-z0-9_$]ideProps|getServerSi[A-Za-z0-9_$]deProps|getServerSid[A-Za-z0-9_$]eProps|getServerSide[A-Za-z0-9_$]Props|getServerSideP[A-Za-z0-9_$]rops|getServerSidePr[A-Za-z0-9_$]ops|getServerSidePro[A-Za-z0-9_$]ps|getServerSideProp[A-Za-z0-9_$]s|getServerSideProps[A-Za-z0-9_$])$",
41
+ "not": {
42
+ "regex": "^(?:getStaticProps|getStaticPaths|getServerSideProps)$"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "kind": "variable_declarator",
48
+ "has": {
49
+ "field": "name",
50
+ "kind": "identifier",
51
+ "regex": "^(?:[A-Za-z0-9_$]etStaticProps|etStaticProps|g[A-Za-z0-9_$]tStaticProps|gtStaticProps|ge[A-Za-z0-9_$]StaticProps|geStaticProps|get[A-Za-z0-9_$]taticProps|gettaticProps|getS[A-Za-z0-9_$]aticProps|getSaticProps|getSt[A-Za-z0-9_$]ticProps|getStticProps|getSta[A-Za-z0-9_$]icProps|getStaicProps|getStat[A-Za-z0-9_$]cProps|getStatcProps|getStati[A-Za-z0-9_$]Props|getStatiProps|getStatic[A-Za-z0-9_$]rops|getStaticrops|getStaticP[A-Za-z0-9_$]ops|getStaticPops|getStaticPr[A-Za-z0-9_$]ps|getStaticPrps|getStaticPro[A-Za-z0-9_$]s|getStaticPros|getStaticProp[A-Za-z0-9_$]|getStaticProp|[A-Za-z0-9_$]getStaticProps|g[A-Za-z0-9_$]etStaticProps|ge[A-Za-z0-9_$]tStaticProps|get[A-Za-z0-9_$]StaticProps|getS[A-Za-z0-9_$]taticProps|getSt[A-Za-z0-9_$]aticProps|getSta[A-Za-z0-9_$]ticProps|getStat[A-Za-z0-9_$]icProps|getStati[A-Za-z0-9_$]cProps|getStatic[A-Za-z0-9_$]Props|getStaticP[A-Za-z0-9_$]rops|getStaticPr[A-Za-z0-9_$]ops|getStaticPro[A-Za-z0-9_$]ps|getStaticProp[A-Za-z0-9_$]s|getStaticProps[A-Za-z0-9_$]|[A-Za-z0-9_$]etStaticPaths|etStaticPaths|g[A-Za-z0-9_$]tStaticPaths|gtStaticPaths|ge[A-Za-z0-9_$]StaticPaths|geStaticPaths|get[A-Za-z0-9_$]taticPaths|gettaticPaths|getS[A-Za-z0-9_$]aticPaths|getSaticPaths|getSt[A-Za-z0-9_$]ticPaths|getStticPaths|getSta[A-Za-z0-9_$]icPaths|getStaicPaths|getStat[A-Za-z0-9_$]cPaths|getStatcPaths|getStati[A-Za-z0-9_$]Paths|getStatiPaths|getStatic[A-Za-z0-9_$]aths|getStaticaths|getStaticP[A-Za-z0-9_$]ths|getStaticPths|getStaticPa[A-Za-z0-9_$]hs|getStaticPahs|getStaticPat[A-Za-z0-9_$]s|getStaticPats|getStaticPath[A-Za-z0-9_$]|getStaticPath|[A-Za-z0-9_$]getStaticPaths|g[A-Za-z0-9_$]etStaticPaths|ge[A-Za-z0-9_$]tStaticPaths|get[A-Za-z0-9_$]StaticPaths|getS[A-Za-z0-9_$]taticPaths|getSt[A-Za-z0-9_$]aticPaths|getSta[A-Za-z0-9_$]ticPaths|getStat[A-Za-z0-9_$]icPaths|getStati[A-Za-z0-9_$]cPaths|getStatic[A-Za-z0-9_$]Paths|getStaticP[A-Za-z0-9_$]aths|getStaticPa[A-Za-z0-9_$]ths|getStaticPat[A-Za-z0-9_$]hs|getStaticPath[A-Za-z0-9_$]s|getStaticPaths[A-Za-z0-9_$]|[A-Za-z0-9_$]etServerSideProps|etServerSideProps|g[A-Za-z0-9_$]tServerSideProps|gtServerSideProps|ge[A-Za-z0-9_$]ServerSideProps|geServerSideProps|get[A-Za-z0-9_$]erverSideProps|geterverSideProps|getS[A-Za-z0-9_$]rverSideProps|getSrverSideProps|getSe[A-Za-z0-9_$]verSideProps|getSeverSideProps|getSer[A-Za-z0-9_$]erSideProps|getSererSideProps|getServ[A-Za-z0-9_$]rSideProps|getServrSideProps|getServe[A-Za-z0-9_$]SideProps|getServeSideProps|getServer[A-Za-z0-9_$]ideProps|getServerideProps|getServerS[A-Za-z0-9_$]deProps|getServerSdeProps|getServerSi[A-Za-z0-9_$]eProps|getServerSieProps|getServerSid[A-Za-z0-9_$]Props|getServerSidProps|getServerSide[A-Za-z0-9_$]rops|getServerSiderops|getServerSideP[A-Za-z0-9_$]ops|getServerSidePops|getServerSidePr[A-Za-z0-9_$]ps|getServerSidePrps|getServerSidePro[A-Za-z0-9_$]s|getServerSidePros|getServerSideProp[A-Za-z0-9_$]|getServerSideProp|[A-Za-z0-9_$]getServerSideProps|g[A-Za-z0-9_$]etServerSideProps|ge[A-Za-z0-9_$]tServerSideProps|get[A-Za-z0-9_$]ServerSideProps|getS[A-Za-z0-9_$]erverSideProps|getSe[A-Za-z0-9_$]rverSideProps|getSer[A-Za-z0-9_$]verSideProps|getServ[A-Za-z0-9_$]erSideProps|getServe[A-Za-z0-9_$]rSideProps|getServer[A-Za-z0-9_$]SideProps|getServerS[A-Za-z0-9_$]ideProps|getServerSi[A-Za-z0-9_$]deProps|getServerSid[A-Za-z0-9_$]eProps|getServerSide[A-Za-z0-9_$]Props|getServerSideP[A-Za-z0-9_$]rops|getServerSidePr[A-Za-z0-9_$]ops|getServerSidePro[A-Za-z0-9_$]ps|getServerSideProp[A-Za-z0-9_$]s|getServerSideProps[A-Za-z0-9_$])$",
52
+ "not": {
53
+ "regex": "^(?:getStaticProps|getStaticPaths|getServerSideProps)$"
54
+ }
55
+ },
56
+ "inside": {
57
+ "any": [
58
+ {
59
+ "kind": "lexical_declaration"
60
+ },
61
+ {
62
+ "kind": "variable_declaration"
63
+ }
64
+ ]
65
+ }
66
+ }
67
+ ]
68
+ },
69
+ {
70
+ "inside": {
71
+ "stopBy": "end",
72
+ "kind": "export_statement",
73
+ "pattern": "$E",
74
+ "not": {
75
+ "regex": "^export\\s+default\\s"
76
+ }
77
+ }
78
+ }
79
+ ]
80
+ }
81
+ }
82
+ },
83
+ "violation": {
84
+ "anchor": "capture.E",
85
+ "code": "@next/next/no-typos",
86
+ "message": "A data-fetching export may be a typo of getStaticProps, getStaticPaths or getServerSideProps.",
87
+ "suppress": {
88
+ "eslint": {
89
+ "rules": [
90
+ "@next/next/no-typos"
91
+ ]
92
+ }
93
+ }
94
+ }
95
+ }
96
+ ]
97
+ }
@@ -0,0 +1,191 @@
1
+ {
2
+ "format": "rerail.policy/v1",
3
+ "id": "next-no-unwanted-polyfillio",
4
+ "revision": 1,
5
+ "mode": "steer",
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
+ "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
+ "any": [
40
+ {
41
+ "has": {
42
+ "field": "name",
43
+ "kind": "identifier",
44
+ "regex": "^script$"
45
+ }
46
+ },
47
+ {
48
+ "all": [
49
+ {
50
+ "has": {
51
+ "field": "name",
52
+ "kind": "identifier",
53
+ "pattern": "$N"
54
+ }
55
+ },
56
+ {
57
+ "inside": {
58
+ "kind": "program",
59
+ "stopBy": "end",
60
+ "has": {
61
+ "kind": "import_statement",
62
+ "all": [
63
+ {
64
+ "has": {
65
+ "field": "source",
66
+ "kind": "string",
67
+ "value": {
68
+ "eq": "next/script"
69
+ }
70
+ }
71
+ },
72
+ {
73
+ "has": {
74
+ "kind": "import_clause",
75
+ "any": [
76
+ {
77
+ "has": {
78
+ "kind": "identifier",
79
+ "nthChild": 1,
80
+ "pattern": "$N"
81
+ }
82
+ },
83
+ {
84
+ "has": {
85
+ "kind": "namespace_import",
86
+ "nthChild": 1,
87
+ "has": {
88
+ "kind": "identifier",
89
+ "pattern": "$N"
90
+ }
91
+ }
92
+ },
93
+ {
94
+ "has": {
95
+ "kind": "named_imports",
96
+ "nthChild": 1,
97
+ "has": {
98
+ "kind": "import_specifier",
99
+ "nthChild": 1,
100
+ "any": [
101
+ {
102
+ "has": {
103
+ "field": "alias",
104
+ "pattern": "$N"
105
+ }
106
+ },
107
+ {
108
+ "all": [
109
+ {
110
+ "not": {
111
+ "has": {
112
+ "field": "alias",
113
+ "kind": "identifier"
114
+ }
115
+ }
116
+ },
117
+ {
118
+ "has": {
119
+ "field": "name",
120
+ "pattern": "$N"
121
+ }
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
127
+ }
128
+ }
129
+ ]
130
+ }
131
+ }
132
+ ]
133
+ }
134
+ }
135
+ }
136
+ ]
137
+ }
138
+ ]
139
+ },
140
+ {
141
+ "has": {
142
+ "any": [
143
+ {
144
+ "kind": "jsx_attribute"
145
+ },
146
+ {
147
+ "kind": "jsx_expression"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ {
153
+ "has": {
154
+ "kind": "jsx_attribute",
155
+ "all": [
156
+ {
157
+ "has": {
158
+ "kind": "property_identifier",
159
+ "regex": "^src$"
160
+ }
161
+ },
162
+ {
163
+ "has": {
164
+ "kind": "string",
165
+ "value": {
166
+ "regex": "^(?:https://cdn\\.polyfill\\.io/v2/|https://polyfill\\.io/v3/|https://polyfill-fastly\\.net/|https://polyfill-fastly\\.io/|https://cdnjs\\.cloudflare\\.com/polyfill/)[^?#]*\\?(?:[^&#]*&)*features=(?:[^&#]*?(?:,|%2[Cc]))?(?:Array\\.prototype\\.(?:@|%40)(?:@|%40)iterator|Array\\.prototype\\.at|Array\\.prototype\\.copyWithin|Array\\.prototype\\.fill|Array\\.prototype\\.find|Array\\.prototype\\.findIndex|Array\\.prototype\\.flatMap|Array\\.prototype\\.flat|Array\\.from|Array\\.prototype\\.includes|Array\\.of|Function\\.prototype\\.name|fetch|Map|Number\\.EPSILON|Number\\.Epsilon|Number\\.isFinite|Number\\.isNaN|Number\\.isInteger|Number\\.isSafeInteger|Number\\.MAX_SAFE_INTEGER|Number\\.MIN_SAFE_INTEGER|Number\\.parseFloat|Number\\.parseInt|Object\\.assign|Object\\.entries|Object\\.fromEntries|Object\\.getOwnPropertyDescriptor|Object\\.getOwnPropertyDescriptors|Object\\.hasOwn|Object\\.is|Object\\.keys|Object\\.values|Reflect|Set|Symbol|Symbol\\.asyncIterator|String\\.prototype\\.codePointAt|String\\.prototype\\.endsWith|String\\.fromCodePoint|String\\.prototype\\.includes|String\\.prototype\\.(?:@|%40)(?:@|%40)iterator|String\\.prototype\\.padEnd|String\\.prototype\\.padStart|String\\.prototype\\.repeat|String\\.raw|String\\.prototype\\.startsWith|String\\.prototype\\.trimEnd|String\\.prototype\\.trimStart|URL|URL\\.prototype\\.toJSON|URLSearchParams|WeakMap|WeakSet|Promise|Promise\\.prototype\\.finally|es2015|es2016|es2017|es2018|es2019|es5|es6|es7)(?:(?:,|%2[Cc])|&|#|$)"
167
+ }
168
+ }
169
+ }
170
+ ]
171
+ }
172
+ }
173
+ ]
174
+ }
175
+ }
176
+ },
177
+ "violation": {
178
+ "anchor": "witness.span",
179
+ "code": "@next/next/no-unwanted-polyfillio",
180
+ "message": "No duplicate polyfills from Polyfill.io are allowed. See: https://nextjs.org/docs/messages/no-unwanted-polyfillio",
181
+ "suppress": {
182
+ "eslint": {
183
+ "rules": [
184
+ "@next/next/no-unwanted-polyfillio"
185
+ ]
186
+ }
187
+ }
188
+ }
189
+ }
190
+ ]
191
+ }