@neralabs/rerail-pack-javascript 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/LICENSE +202 -0
- package/NOTICE +7 -0
- package/README.md +37 -0
- package/licenses/eslint/LICENSE +19 -0
- package/licenses/eslint/UPSTREAM.md +10363 -0
- package/licenses/eslint-plugin-unicorn/LICENSE +9 -0
- package/licenses/eslint-plugin-unicorn/UPSTREAM.md +297 -0
- package/pack.json +499 -0
- package/package.json +30 -0
- package/rules/eslint-arrow-body-style.json +1 -0
- package/rules/eslint-capitalized-comments.json +1 -0
- package/rules/eslint-default-case-last.json +52 -0
- package/rules/eslint-default-case.json +1 -0
- package/rules/eslint-eqeqeq.json +608 -0
- package/rules/eslint-func-style.json +1 -0
- package/rules/eslint-guard-for-in.json +144 -0
- package/rules/eslint-no-bitwise.json +1 -0
- package/rules/eslint-no-caller.json +63 -0
- package/rules/eslint-no-case-declarations.json +101 -0
- package/rules/eslint-no-compare-neg-zero.json +109 -0
- package/rules/eslint-no-cond-assign.json +1 -0
- package/rules/eslint-no-console.json +1 -0
- package/rules/eslint-no-continue.json +48 -0
- package/rules/eslint-no-debugger.json +55 -0
- package/rules/eslint-no-delete-var.json +63 -0
- package/rules/eslint-no-div-regex.json +1 -0
- package/rules/eslint-no-dupe-keys.json +295 -0
- package/rules/eslint-no-duplicate-case.json +160 -0
- package/rules/eslint-no-empty-pattern.json +1 -0
- package/rules/eslint-no-empty-static-block.json +64 -0
- package/rules/eslint-no-empty.json +187 -0
- package/rules/eslint-no-eq-null.json +65 -0
- package/rules/eslint-no-extend-native.json +1 -0
- package/rules/eslint-no-inline-comments.json +1 -0
- package/rules/eslint-no-iterator.json +1 -0
- package/rules/eslint-no-loss-of-precision.json +1 -0
- package/rules/eslint-no-multi-str.json +61 -0
- package/rules/eslint-no-negated-condition.json +114 -0
- package/rules/eslint-no-nested-ternary.json +76 -0
- package/rules/eslint-no-new-wrappers.json +89 -0
- package/rules/eslint-no-new.json +56 -0
- package/rules/eslint-no-nonoctal-decimal-escape.json +54 -0
- package/rules/eslint-no-octal-escape.json +1 -0
- package/rules/eslint-no-octal.json +15 -0
- package/rules/eslint-no-plusplus.json +1 -0
- package/rules/eslint-no-proto.json +1 -0
- package/rules/eslint-no-prototype-builtins.json +143 -0
- package/rules/eslint-no-return-assign.json +1 -0
- package/rules/eslint-no-script-url.json +81 -0
- package/rules/eslint-no-self-compare.json +121 -0
- package/rules/eslint-no-setter-return.json +1 -0
- package/rules/eslint-no-sparse-arrays.json +59 -0
- package/rules/eslint-no-template-curly-in-string.json +58 -0
- package/rules/eslint-no-ternary.json +48 -0
- package/rules/eslint-no-unneeded-ternary.json +1 -0
- package/rules/eslint-no-unsafe-finally.json +570 -0
- package/rules/eslint-no-unsafe-negation.json +1 -0
- package/rules/eslint-no-useless-call.json +1 -0
- package/rules/eslint-no-useless-catch.json +239 -0
- package/rules/eslint-no-useless-concat.json +1 -0
- package/rules/eslint-no-void.json +1 -0
- package/rules/eslint-no-warning-comments.json +1 -0
- package/rules/eslint-no-with.json +51 -0
- package/rules/eslint-operator-assignment.json +1 -0
- package/rules/eslint-prefer-numeric-literals.json +1 -0
- package/rules/eslint-prefer-spread.json +1 -0
- package/rules/eslint-prefer-template.json +187 -0
- package/rules/eslint-radix.json +533 -0
- package/rules/eslint-sort-imports.json +1 -0
- package/rules/eslint-sort-keys.json +1 -0
- package/rules/eslint-sort-vars.json +1 -0
- package/rules/eslint-use-isnan.json +400 -0
- package/rules/eslint-valid-typeof.json +1 -0
- package/rules/eslint-yoda.json +1 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-new",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "Port of ESLint's `no-new` rule (https://eslint.org/docs/latest/rules/no-new). Reports an expression statement whose expression (through parentheses) is a `new` expression.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*"
|
|
10
|
+
],
|
|
11
|
+
"exclude": []
|
|
12
|
+
},
|
|
13
|
+
"clauses": [
|
|
14
|
+
{
|
|
15
|
+
"id": "new-statement",
|
|
16
|
+
"forbid": {
|
|
17
|
+
"ast": {
|
|
18
|
+
"language": "typescript",
|
|
19
|
+
"rule": {
|
|
20
|
+
"kind": "expression_statement",
|
|
21
|
+
"has": {
|
|
22
|
+
"kind": "new_expression",
|
|
23
|
+
"stopBy": {
|
|
24
|
+
"not": {
|
|
25
|
+
"kind": "parenthesized_expression"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"violation": {
|
|
33
|
+
"anchor": "witness.span",
|
|
34
|
+
"code": "no-new",
|
|
35
|
+
"message": "Do not use 'new' for side effects.",
|
|
36
|
+
"suppress": {
|
|
37
|
+
"eslint": {
|
|
38
|
+
"rules": [
|
|
39
|
+
"no-new"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"oxlint": {
|
|
43
|
+
"rules": [
|
|
44
|
+
"no-new"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"biome": {
|
|
48
|
+
"rules": [
|
|
49
|
+
"lint/correctness/noUnusedInstantiation"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-nonoctal-decimal-escape",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "Port of ESLint's `no-nonoctal-decimal-escape` rule (https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape). Reports each \\8 or \\9 escape sequence in a string literal.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*"
|
|
10
|
+
],
|
|
11
|
+
"exclude": []
|
|
12
|
+
},
|
|
13
|
+
"clauses": [
|
|
14
|
+
{
|
|
15
|
+
"id": "decimal-escape",
|
|
16
|
+
"forbid": {
|
|
17
|
+
"ast": {
|
|
18
|
+
"language": "typescript",
|
|
19
|
+
"rule": {
|
|
20
|
+
"kind": "escape_sequence",
|
|
21
|
+
"regex": "^\\\\[89]$",
|
|
22
|
+
"inside": {
|
|
23
|
+
"kind": "string",
|
|
24
|
+
"stopBy": "neighbor"
|
|
25
|
+
},
|
|
26
|
+
"pattern": "$ESC"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"violation": {
|
|
31
|
+
"anchor": "witness.span",
|
|
32
|
+
"code": "no-nonoctal-decimal-escape",
|
|
33
|
+
"message": "Don't use '$ESC' escape sequence.",
|
|
34
|
+
"suppress": {
|
|
35
|
+
"eslint": {
|
|
36
|
+
"rules": [
|
|
37
|
+
"no-nonoctal-decimal-escape"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"oxlint": {
|
|
41
|
+
"rules": [
|
|
42
|
+
"no-nonoctal-decimal-escape"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"biome": {
|
|
46
|
+
"rules": [
|
|
47
|
+
"lint/correctness/noNonoctalDecimalEscape"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":"rerail.policy/v1","id":"eslint-no-octal-escape","revision":4,"mode":"steer","description":"Port of ESLint's `no-octal-escape` rule (https://eslint.org/docs/latest/rules/no-octal-escape). Reports a string literal containing a legacy octal escape (\\1-\\7, or \\0 followed by a digit), found by scanning the raw text escape by escape.","scope":{"include":["**/*"],"exclude":[]},"clauses":[{"id":"octal-escape","forbid":{"ast":{"language":"typescript","rule":{"kind":"string","regex":"(?s)^(?:[^\\\\]|\\\\.)*?(?:(?<SEQ>\\\\(?:[0-3][0-7]{1,2}|[4-7][0-7]))|(?<SEQZ>\\\\0)[89]|(?<SEQD>\\\\[1-7]))"}}},"violation":{"anchor":"witness.span","code":"no-octal-escape","message":"Don't use octal: '$SEQ$SEQZ$SEQD'. Use '\\u....' instead.","suppress":{"eslint":{"rules":["no-octal-escape"]}, "biome":{"rules":["lint/suspicious/noOctalEscape"]}}}}]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-octal",
|
|
4
|
+
"revision": 2,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "Port of ESLint's `no-octal` rule (https://eslint.org/docs/latest/rules/no-octal). Disallows legacy octal (and 0-prefixed decimal) numeric literals: a number whose raw text is 0 followed by a digit.",
|
|
7
|
+
"scope": { "include": ["**/*"], "exclude": [] },
|
|
8
|
+
"clauses": [
|
|
9
|
+
{
|
|
10
|
+
"id": "octal-literal",
|
|
11
|
+
"forbid": { "ast": { "language": "typescript", "rule": { "kind": "number", "regex": "^0[0-9]" } } },
|
|
12
|
+
"violation": { "anchor": "witness.span", "code": "no-octal", "message": "Octal literals should not be used.", "suppress": { "eslint": { "rules": ["no-octal"] } } }
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":"rerail.policy/v1","id":"eslint-no-plusplus","revision":4,"mode":"steer","description":"Port of ESLint's `no-plusplus` rule. Flags every ++ and -- update expression. Options are declared in the `options` define (the rule's defaults); a variant is a config patch.","scope":{"include":["**/*"],"exclude":[]},"clauses":[{"id":"options","define":{"options":{"allowForLoopAfterthoughts":{"type":"boolean","nullable":true,"default":null}}}},{"id":"shared","define":{"language":"typescript","utils":{"afterthought":{"any":[{"inside":{"kind":"for_statement"},"precedes":{"regex":"^\\)$","stopBy":{"not":{"kind":"comment"}}}},{"inside":{"any":[{"kind":"sequence_expression"},{"kind":"parenthesized_expression"}],"matches":"afterthought"}}]},"r1":{"has":{"regex":"^\\+\\+$"},"kind":"update_expression"},"r2":{"has":{"regex":"^--$"},"kind":"update_expression"}}}},{"id":"update-increment","forbid":{"ast":{"$option":"allowForLoopAfterthoughts","cases":{"true":{"language":"typescript","rule":{"all":[{"matches":"r1"},{"not":{"matches":"afterthought"}}]}}},"default":{"language":"typescript","rule":{"matches":"r1"}}}},"violation":{"anchor":"witness.span","code":"no-plusplus","message":"Unary operator '++' used.","suppress":{"eslint":{"rules":["no-plusplus"]},"oxlint":{"rules":["no-plusplus"]},"biome":{"rules":["lint/style/noIncrementDecrement"]}}}},{"id":"update-decrement","forbid":{"ast":{"$option":"allowForLoopAfterthoughts","cases":{"true":{"language":"typescript","rule":{"all":[{"matches":"r2"},{"not":{"matches":"afterthought"}}]}}},"default":{"language":"typescript","rule":{"matches":"r2"}}}},"violation":{"anchor":"witness.span","code":"no-plusplus","message":"Unary operator '--' used.","suppress":{"eslint":{"rules":["no-plusplus"]},"oxlint":{"rules":["no-plusplus"]},"biome":{"rules":["lint/style/noIncrementDecrement"]}}}}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":"rerail.policy/v1","id":"eslint-no-proto","revision":4,"mode":"steer","description":"Port of ESLint's `no-proto` rule (https://eslint.org/docs/latest/rules/no-proto). Flags member accesses whose static property name (getStaticPropertyName) is `__proto__`: a non-computed name (identifier escapes decoded), or a string or substitution-free template index by its cooked value.","scope":{"include":["**/*"],"exclude":[]},"clauses":[{"id":"proto-member","forbid":{"ast":{"language":"typescript","utils":{"static-str":{"any":[{"kind":"string"},{"kind":"template_string","not":{"has":{"kind":"template_substitution","stopBy":"neighbor"}}},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"static-str"}}]}},"rule":{"any":[{"kind":"member_expression","has":{"kind":"property_identifier","stopBy":"neighbor","regex":"^(?:[_]|\\\\u005[fF]|\\\\u\\{0*5[fF]\\})(?:[_]|\\\\u005[fF]|\\\\u\\{0*5[fF]\\})(?:[p]|\\\\u0070|\\\\u\\{0*70\\})(?:[r]|\\\\u0072|\\\\u\\{0*72\\})(?:[o]|\\\\u006[fF]|\\\\u\\{0*6[fF]\\})(?:[t]|\\\\u0074|\\\\u\\{0*74\\})(?:[o]|\\\\u006[fF]|\\\\u\\{0*6[fF]\\})(?:[_]|\\\\u005[fF]|\\\\u\\{0*5[fF]\\})(?:[_]|\\\\u005[fF]|\\\\u\\{0*5[fF]\\})$"}},{"kind":"subscript_expression","has":{"stopBy":"neighbor","precedes":{"regex":"^\\]$","stopBy":"neighbor"},"matches":"static-str","value":{"eq":"__proto__"}}}]}}},"violation":{"anchor":"witness.span","code":"no-proto","message":"The '__proto__' property is deprecated.","suppress":{"eslint":{"rules":["no-proto"]},"oxlint":{"rules":["no-proto"]},"biome":{"rules":["lint/suspicious/noProto"]}}}}]}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-prototype-builtins",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "Port of ESLint's `no-prototype-builtins` rule (https://eslint.org/docs/latest/rules/no-prototype-builtins). Flags calling hasOwnProperty, isPrototypeOf or propertyIsEnumerable as a method of an object, reported at the property. Scope only matters to ESLint's suggestion, which is not a fix.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*"
|
|
10
|
+
],
|
|
11
|
+
"exclude": []
|
|
12
|
+
},
|
|
13
|
+
"clauses": [
|
|
14
|
+
{
|
|
15
|
+
"id": "prototype-builtin",
|
|
16
|
+
"forbid": {
|
|
17
|
+
"ast": {
|
|
18
|
+
"language": "typescript",
|
|
19
|
+
"rule": {
|
|
20
|
+
"kind": "call_expression",
|
|
21
|
+
"has": {
|
|
22
|
+
"matches": "member-callee"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"utils": {
|
|
26
|
+
"member-callee": {
|
|
27
|
+
"any": [
|
|
28
|
+
{
|
|
29
|
+
"kind": "member_expression",
|
|
30
|
+
"has": {
|
|
31
|
+
"kind": "property_identifier",
|
|
32
|
+
"regex": "^(hasOwnProperty|isPrototypeOf|propertyIsEnumerable)$",
|
|
33
|
+
"pattern": "$PROP"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"kind": "parenthesized_expression",
|
|
38
|
+
"has": {
|
|
39
|
+
"matches": "member-callee"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"violation": {
|
|
48
|
+
"anchor": "capture.PROP",
|
|
49
|
+
"code": "no-prototype-builtins",
|
|
50
|
+
"message": "Do not access Object.prototype method '$PROP' from target object.",
|
|
51
|
+
"suppress": {
|
|
52
|
+
"eslint": {
|
|
53
|
+
"rules": [
|
|
54
|
+
"no-prototype-builtins"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"oxlint": {
|
|
58
|
+
"rules": [
|
|
59
|
+
"no-prototype-builtins"
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
"biome": {
|
|
63
|
+
"rules": [
|
|
64
|
+
"lint/suspicious/noPrototypeBuiltins"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "prototype-builtin-computed",
|
|
72
|
+
"forbid": {
|
|
73
|
+
"ast": {
|
|
74
|
+
"language": "typescript",
|
|
75
|
+
"rule": {
|
|
76
|
+
"kind": "call_expression",
|
|
77
|
+
"has": {
|
|
78
|
+
"matches": "computed-callee"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"utils": {
|
|
82
|
+
"computed-callee": {
|
|
83
|
+
"any": [
|
|
84
|
+
{
|
|
85
|
+
"kind": "subscript_expression",
|
|
86
|
+
"has": {
|
|
87
|
+
"any": [
|
|
88
|
+
{
|
|
89
|
+
"kind": "string"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"kind": "template_string",
|
|
93
|
+
"not": {
|
|
94
|
+
"has": {
|
|
95
|
+
"kind": "template_substitution"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"has": {
|
|
101
|
+
"kind": "string_fragment",
|
|
102
|
+
"regex": "^(hasOwnProperty|isPrototypeOf|propertyIsEnumerable)$",
|
|
103
|
+
"pattern": "$NAME"
|
|
104
|
+
},
|
|
105
|
+
"pattern": "$PROP"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"kind": "parenthesized_expression",
|
|
110
|
+
"has": {
|
|
111
|
+
"matches": "computed-callee"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"violation": {
|
|
120
|
+
"anchor": "capture.PROP",
|
|
121
|
+
"code": "no-prototype-builtins",
|
|
122
|
+
"message": "Do not access Object.prototype method '$NAME' from target object.",
|
|
123
|
+
"suppress": {
|
|
124
|
+
"eslint": {
|
|
125
|
+
"rules": [
|
|
126
|
+
"no-prototype-builtins"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
"oxlint": {
|
|
130
|
+
"rules": [
|
|
131
|
+
"no-prototype-builtins"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
"biome": {
|
|
135
|
+
"rules": [
|
|
136
|
+
"lint/suspicious/noPrototypeBuiltins"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":"rerail.policy/v1","id":"eslint-no-return-assign","revision":4,"mode":"steer","description":"Port of ESLint's `no-return-assign` (https://eslint.org/docs/latest/rules/no-return-assign) with its default `except-parens`: an unparenthesized assignment whose nearest statement/function/class ancestor is a `return` or an expression-bodied arrow, reported at that ancestor. Options are declared in the `options` define (the rule's defaults); a variant is a config patch.","scope":{"include":["**/*"],"exclude":[]},"clauses":[{"id":"options","define":{"options":{"option":{"type":"string","nullable":true,"default":null}}}},{"id":"shared","define":{"language":"typescript","utils":{"assign":{"any":[{"kind":"assignment_expression"},{"kind":"augmented_assignment_expression"}]},"parenthesised":{"all":[{"follows":{"regex":"^\\($","stopBy":"neighbor"}},{"precedes":{"regex":"^\\)$","stopBy":"neighbor"}}]},"sentinel":{"any":[{"kind":"expression_statement"},{"kind":"return_statement"},{"kind":"if_statement"},{"kind":"statement_block"},{"kind":"for_statement"},{"kind":"for_in_statement"},{"kind":"while_statement"},{"kind":"do_statement"},{"kind":"try_statement"},{"kind":"throw_statement"},{"kind":"switch_statement"},{"kind":"break_statement"},{"kind":"continue_statement"},{"kind":"labeled_statement"},{"kind":"empty_statement"},{"kind":"with_statement"},{"kind":"debugger_statement"},{"kind":"arrow_function"},{"kind":"function_expression"},{"kind":"generator_function"},{"kind":"class"}]}}}},{"id":"return-assignment","forbid":{"ast":{"language":"typescript","rule":{"all":[{"matches":"assign"},{"$option":"option","cases":{"always":[]},"default":[{"not":{"matches":"parenthesised"}}],"spread":true},{"inside":{"stopBy":{"matches":"sentinel"},"all":[{"kind":"return_statement"},{"pattern":"$SENT"}]}}]}}},"violation":{"anchor":"capture.SENT","code":"no-return-assign","message":"Return statement should not contain assignment.","suppress":{"eslint":{"rules":["no-return-assign"]},"oxlint":{"rules":["no-return-assign"]},"biome":{"rules":["lint/suspicious/noReturnAssign"]}}}},{"id":"arrow-assignment","forbid":{"ast":{"language":"typescript","rule":{"all":[{"matches":"assign"},{"$option":"option","cases":{"always":[]},"default":[{"not":{"matches":"parenthesised"}}],"spread":true},{"not":{"inside":{"kind":"formal_parameters","stopBy":{"matches":"sentinel"}}}},{"inside":{"stopBy":{"matches":"sentinel"},"all":[{"kind":"arrow_function"},{"pattern":"$SENT"}]}}]}}},"violation":{"anchor":"capture.SENT","code":"no-return-assign","message":"Arrow function should not return assignment.","suppress":{"eslint":{"rules":["no-return-assign"]},"oxlint":{"rules":["no-return-assign"]},"biome":{"rules":["lint/suspicious/noReturnAssign"]}}}}]}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-script-url",
|
|
4
|
+
"revision": 4,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "ESLint 10.11.0 no-script-url, default options. Port of ESLint's `no-script-url` rule (https://eslint.org/docs/latest/rules/no-script-url). Flags string literals and untagged, substitution-free template literals whose value starts with `javascript:` (case-insensitive): cooked, or for a JSX attribute string raw with HTML character references decoded.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.tsx",
|
|
11
|
+
"**/*.mts",
|
|
12
|
+
"**/*.cts",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "script-url",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"rule": {
|
|
27
|
+
"any": [
|
|
28
|
+
{
|
|
29
|
+
"kind": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"kind": "template_string",
|
|
33
|
+
"not": {
|
|
34
|
+
"any": [
|
|
35
|
+
{
|
|
36
|
+
"has": {
|
|
37
|
+
"kind": "template_substitution",
|
|
38
|
+
"stopBy": "neighbor"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"inside": {
|
|
43
|
+
"kind": "call_expression",
|
|
44
|
+
"stopBy": "neighbor"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"value": {
|
|
52
|
+
"regex": "^(?i:javascript:)"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"violation": {
|
|
58
|
+
"anchor": "witness.span",
|
|
59
|
+
"code": "no-script-url",
|
|
60
|
+
"message": "Script URL is a form of eval.",
|
|
61
|
+
"suppress": {
|
|
62
|
+
"eslint": {
|
|
63
|
+
"rules": [
|
|
64
|
+
"no-script-url"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"oxlint": {
|
|
68
|
+
"rules": [
|
|
69
|
+
"no-script-url"
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"biome": {
|
|
73
|
+
"rules": [
|
|
74
|
+
"lint/security/noScriptUrl"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-self-compare",
|
|
4
|
+
"revision": 4,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "ESLint 10.11.0 no-self-compare, default options. Port of ESLint's `no-self-compare` rule (https://eslint.org/docs/latest/rules/no-self-compare). Reports an equality or relational comparison whose operands (parentheses around an operand aside, as ESTree drops them) have the same tokens, comments aside.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.tsx",
|
|
11
|
+
"**/*.mts",
|
|
12
|
+
"**/*.cts",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "self-compare",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"utils": {
|
|
27
|
+
"left": {
|
|
28
|
+
"any": [
|
|
29
|
+
{
|
|
30
|
+
"not": {
|
|
31
|
+
"kind": "parenthesized_expression"
|
|
32
|
+
},
|
|
33
|
+
"pattern": "$L"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"kind": "parenthesized_expression",
|
|
37
|
+
"has": {
|
|
38
|
+
"stopBy": "neighbor",
|
|
39
|
+
"not": {
|
|
40
|
+
"kind": "comment"
|
|
41
|
+
},
|
|
42
|
+
"matches": "left"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
"right": {
|
|
48
|
+
"any": [
|
|
49
|
+
{
|
|
50
|
+
"not": {
|
|
51
|
+
"kind": "parenthesized_expression"
|
|
52
|
+
},
|
|
53
|
+
"pattern": "$R"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"kind": "parenthesized_expression",
|
|
57
|
+
"has": {
|
|
58
|
+
"stopBy": "neighbor",
|
|
59
|
+
"not": {
|
|
60
|
+
"kind": "comment"
|
|
61
|
+
},
|
|
62
|
+
"matches": "right"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"rule": {
|
|
69
|
+
"kind": "binary_expression",
|
|
70
|
+
"has": {
|
|
71
|
+
"stopBy": "neighbor",
|
|
72
|
+
"regex": "^(===|==|!==|!=|>|<|>=|<=)$",
|
|
73
|
+
"follows": {
|
|
74
|
+
"stopBy": "end",
|
|
75
|
+
"not": {
|
|
76
|
+
"kind": "comment"
|
|
77
|
+
},
|
|
78
|
+
"matches": "left"
|
|
79
|
+
},
|
|
80
|
+
"precedes": {
|
|
81
|
+
"stopBy": "end",
|
|
82
|
+
"not": {
|
|
83
|
+
"kind": "comment"
|
|
84
|
+
},
|
|
85
|
+
"matches": "right"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"compare": {
|
|
89
|
+
"left": "L",
|
|
90
|
+
"op": "eq",
|
|
91
|
+
"right": "R",
|
|
92
|
+
"text": "tokens"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"violation": {
|
|
98
|
+
"anchor": "witness.span",
|
|
99
|
+
"code": "no-self-compare",
|
|
100
|
+
"message": "Comparing to itself is potentially pointless.",
|
|
101
|
+
"suppress": {
|
|
102
|
+
"eslint": {
|
|
103
|
+
"rules": [
|
|
104
|
+
"no-self-compare"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"oxlint": {
|
|
108
|
+
"rules": [
|
|
109
|
+
"no-self-compare"
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"biome": {
|
|
113
|
+
"rules": [
|
|
114
|
+
"lint/suspicious/noSelfCompare"
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"format":"rerail.policy/v1","id":"eslint-no-setter-return","revision":3,"mode":"steer","description":"Port of ESLint's `no-setter-return` rule (https://eslint.org/docs/latest/rules/no-setter-return). Flags `return <value>` in a setter (class or object `set` accessor, or the `set` function of a property descriptor passed to Object.defineProperty, Reflect.defineProperty, Object.defineProperties or Object.create), and an arrow descriptor setter's expression body. `Object` and `Reflect` must resolve to declared globals (`resolves` under `ast.languageOptions`).","scope":{"include":["**/*"],"exclude":[]},"clauses":[{"id":"return-value","forbid":{"ast":{"language":"typescript","languageOptions":{},"rule":{"kind":"return_statement","has":{"stopBy":"neighbor","not":{"regex":"^(return|;)$"}},"inside":{"stopBy":{"any":[{"kind":"function_declaration"},{"kind":"generator_function_declaration"},{"kind":"function_expression"},{"kind":"generator_function"},{"kind":"arrow_function"},{"kind":"method_definition"}]},"matches":"setter"}},"utils":{"callee-Object-defineProperty":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(defineProperty)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](defineProperty)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Object-defineProperty"}}]},"callee-Reflect-defineProperty":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Reflect"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(defineProperty)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Reflect"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](defineProperty)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Reflect-defineProperty"}}]},"callee-Object-create-defineProperties":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(create|defineProperties)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](create|defineProperties)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Object-create-defineProperties"}}]},"descriptor":{"kind":"object","any":[{"inside":{"kind":"arguments","stopBy":"neighbor","inside":{"kind":"call_expression","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"matches":"callee-Object-defineProperty"},{"matches":"callee-Reflect-defineProperty"}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}}}},"count":{"follows":{"regex":"^,$","stopBy":"end"},"min":2,"max":2}},{"inside":{"kind":"pair","stopBy":"neighbor","inside":{"kind":"object","stopBy":"neighbor","inside":{"kind":"arguments","stopBy":"neighbor","inside":{"kind":"call_expression","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"matches":"callee-Object-create-defineProperties"}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}}}},"count":{"follows":{"regex":"^,$","stopBy":"end"},"min":1,"max":1}}}}]},"setter":{"any":[{"kind":"method_definition","has":{"regex":"^set$","not":{"kind":"property_identifier"},"stopBy":"neighbor"}},{"kind":"method_definition","all":[{"not":{"has":{"regex":"^get$","not":{"kind":"property_identifier"},"stopBy":"neighbor"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"property_identifier","regex":"^set$"},{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"computed_property_name","has":{"stopBy":"neighbor","any":[{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"template_string","regex":"^`set`$"}]}}]}}],"inside":{"stopBy":"neighbor","matches":"descriptor"}},{"any":[{"kind":"function_expression"},{"kind":"generator_function"},{"kind":"arrow_function"}],"inside":{"kind":"pair","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"kind":"property_identifier","regex":"^set$"},{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"computed_property_name","has":{"stopBy":"neighbor","any":[{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"template_string","regex":"^`set`$"}]}}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}},"inside":{"stopBy":"neighbor","matches":"descriptor"}}}]}}}},"violation":{"anchor":"witness.span","code":"no-setter-return","message":"Setter cannot return a value.","suppress":{"eslint":{"rules":["no-setter-return"]},"oxlint":{"rules":["no-setter-return"]},"biome":{"rules":["lint/correctness/noSetterReturn"]}}}},{"id":"arrow-expression-body","forbid":{"ast":{"language":"typescript","languageOptions":{},"rule":{"not":{"any":[{"kind":"statement_block"},{"regex":"^=>$"}]},"follows":{"regex":"^=>$","stopBy":"neighbor"},"inside":{"stopBy":"neighbor","kind":"arrow_function","matches":"setter"}},"utils":{"callee-Object-defineProperty":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(defineProperty)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](defineProperty)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Object-defineProperty"}}]},"callee-Reflect-defineProperty":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Reflect"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(defineProperty)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Reflect"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](defineProperty)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Reflect-defineProperty"}}]},"callee-Object-create-defineProperties":{"any":[{"kind":"member_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","kind":"property_identifier","regex":"^(create|defineProperties)$"}}]},{"kind":"subscript_expression","all":[{"has":{"stopBy":"neighbor","any":[{"kind":"identifier"},{"kind":"parenthesized_expression"}],"resolves":{"global":["Object"],"directives":"eslint"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"string"},{"kind":"template_string"}],"regex":"^['\"`](create|defineProperties)['\"`]$"}}]},{"kind":"parenthesized_expression","has":{"stopBy":"neighbor","matches":"callee-Object-create-defineProperties"}}]},"descriptor":{"kind":"object","any":[{"inside":{"kind":"arguments","stopBy":"neighbor","inside":{"kind":"call_expression","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"matches":"callee-Object-defineProperty"},{"matches":"callee-Reflect-defineProperty"}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}}}},"count":{"follows":{"regex":"^,$","stopBy":"end"},"min":2,"max":2}},{"inside":{"kind":"pair","stopBy":"neighbor","inside":{"kind":"object","stopBy":"neighbor","inside":{"kind":"arguments","stopBy":"neighbor","inside":{"kind":"call_expression","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"matches":"callee-Object-create-defineProperties"}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}}}},"count":{"follows":{"regex":"^,$","stopBy":"end"},"min":1,"max":1}}}}]},"setter":{"any":[{"kind":"method_definition","has":{"regex":"^set$","not":{"kind":"property_identifier"},"stopBy":"neighbor"}},{"kind":"method_definition","all":[{"not":{"has":{"regex":"^get$","not":{"kind":"property_identifier"},"stopBy":"neighbor"}}},{"has":{"stopBy":"neighbor","any":[{"kind":"property_identifier","regex":"^set$"},{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"computed_property_name","has":{"stopBy":"neighbor","any":[{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"template_string","regex":"^`set`$"}]}}]}}],"inside":{"stopBy":"neighbor","matches":"descriptor"}},{"any":[{"kind":"function_expression"},{"kind":"generator_function"},{"kind":"arrow_function"}],"inside":{"kind":"pair","stopBy":"neighbor","has":{"stopBy":"neighbor","any":[{"kind":"property_identifier","regex":"^set$"},{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"computed_property_name","has":{"stopBy":"neighbor","any":[{"kind":"string","regex":"^['\"]set['\"]$"},{"kind":"template_string","regex":"^`set`$"}]}}],"not":{"follows":{"regex":"[\\s\\S]","stopBy":"neighbor"}}},"inside":{"stopBy":"neighbor","matches":"descriptor"}}}]}}}},"violation":{"anchor":"witness.span","code":"no-setter-return","message":"Setter cannot return a value.","suppress":{"eslint":{"rules":["no-setter-return"]},"oxlint":{"rules":["no-setter-return"]},"biome":{"rules":["lint/correctness/noSetterReturn"]}}}}]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-sparse-arrays",
|
|
4
|
+
"revision": 3,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "Port of ESLint's `no-sparse-arrays` rule (https://eslint.org/docs/latest/rules/no-sparse-arrays). Reports, at the comma, every hole in an array literal: a comma whose previous non-comment sibling is `[` or another comma.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*"
|
|
10
|
+
],
|
|
11
|
+
"exclude": []
|
|
12
|
+
},
|
|
13
|
+
"clauses": [
|
|
14
|
+
{
|
|
15
|
+
"id": "hole-comma",
|
|
16
|
+
"forbid": {
|
|
17
|
+
"ast": {
|
|
18
|
+
"language": "typescript",
|
|
19
|
+
"rule": {
|
|
20
|
+
"regex": "^,$",
|
|
21
|
+
"inside": {
|
|
22
|
+
"kind": "array"
|
|
23
|
+
},
|
|
24
|
+
"follows": {
|
|
25
|
+
"regex": "^[\\[,]$",
|
|
26
|
+
"stopBy": {
|
|
27
|
+
"not": {
|
|
28
|
+
"kind": "comment"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"violation": {
|
|
36
|
+
"anchor": "witness.span",
|
|
37
|
+
"code": "no-sparse-arrays",
|
|
38
|
+
"message": "Unexpected comma in middle of array.",
|
|
39
|
+
"suppress": {
|
|
40
|
+
"eslint": {
|
|
41
|
+
"rules": [
|
|
42
|
+
"no-sparse-arrays"
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
"oxlint": {
|
|
46
|
+
"rules": [
|
|
47
|
+
"no-sparse-arrays"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"biome": {
|
|
51
|
+
"rules": [
|
|
52
|
+
"lint/suspicious/noSparseArray"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": "rerail.policy/v1",
|
|
3
|
+
"id": "eslint-no-template-curly-in-string",
|
|
4
|
+
"revision": 4,
|
|
5
|
+
"mode": "steer",
|
|
6
|
+
"description": "ESLint 10.11.0 no-template-curly-in-string, default options. Port of ESLint's `no-template-curly-in-string` rule (https://eslint.org/docs/latest/rules/no-template-curly-in-string). Flags a string literal whose value contains `${...}`: cooked, or for a JSX attribute string raw with HTML character references decoded.",
|
|
7
|
+
"scope": {
|
|
8
|
+
"include": [
|
|
9
|
+
"**/*.ts",
|
|
10
|
+
"**/*.tsx",
|
|
11
|
+
"**/*.mts",
|
|
12
|
+
"**/*.cts",
|
|
13
|
+
"**/*.js",
|
|
14
|
+
"**/*.jsx",
|
|
15
|
+
"**/*.mjs",
|
|
16
|
+
"**/*.cjs"
|
|
17
|
+
],
|
|
18
|
+
"exclude": []
|
|
19
|
+
},
|
|
20
|
+
"clauses": [
|
|
21
|
+
{
|
|
22
|
+
"id": "template-curly-in-string",
|
|
23
|
+
"forbid": {
|
|
24
|
+
"ast": {
|
|
25
|
+
"language": "typescript",
|
|
26
|
+
"rule": {
|
|
27
|
+
"kind": "string",
|
|
28
|
+
"value": {
|
|
29
|
+
"regex": "\\$\\{[^}]+\\}"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"violation": {
|
|
35
|
+
"anchor": "witness.span",
|
|
36
|
+
"code": "no-template-curly-in-string",
|
|
37
|
+
"message": "Unexpected template string expression.",
|
|
38
|
+
"suppress": {
|
|
39
|
+
"eslint": {
|
|
40
|
+
"rules": [
|
|
41
|
+
"no-template-curly-in-string"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"oxlint": {
|
|
45
|
+
"rules": [
|
|
46
|
+
"no-template-curly-in-string"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"biome": {
|
|
50
|
+
"rules": [
|
|
51
|
+
"lint/suspicious/noTemplateCurlyInString"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|