Skip to content

Commit 1560764

Browse files
committed
changed example in no-property-in-node to js
1 parent 6a4ab31 commit 1560764

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/rules/no-property-in-node.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Instead, checking a node's `type` property is generally considered preferable.
1313

1414
Examples of **incorrect** code for this rule:
1515

16-
```ts
16+
```js
17+
/** @type {import('eslint').Rule.RuleModule} */
1718
module.exports = {
1819
meta: {
1920
/* ... */
@@ -27,12 +28,13 @@ module.exports = {
2728
},
2829
};
2930
},
30-
} satisfies Rule.RuleModule;
31+
};
3132
```
3233

3334
Examples of **correct** code for this rule:
3435

35-
```ts
36+
```js
37+
/** @type {import('eslint').Rule.RuleModule} */
3638
module.exports = {
3739
meta: {
3840
/* ... */
@@ -46,7 +48,7 @@ module.exports = {
4648
},
4749
};
4850
},
49-
} satisfies Rule.RuleModule;
51+
};
5052
```
5153

5254
## Options

0 commit comments

Comments
 (0)