Skip to content

Commit bfa9fe9

Browse files
authored
Merge pull request #448 from iclanton/handle-ts-built-in-directives
Handle TS buit-in @jsx* directives.
1 parent b00cd54 commit bfa9fe9

File tree

11 files changed

+674
-270
lines changed

11 files changed

+674
-270
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/tsdoc-config",
5+
"comment": "",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc-config"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/tsdoc",
5+
"comment": "Standardize TypeScript's `@jsx`, `@jsxRuntime`, `@jsxFrag`, `@jsxImportSource` tags.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@microsoft/tsdoc"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "eslint-plugin-tsdoc",
5+
"comment": "",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "eslint-plugin-tsdoc"
10+
}

eslint-plugin/src/tests/plugin.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const ruleTester: RuleTester = new RuleTester();
88
ruleTester.run('"tsdoc/syntax" rule', plugin.rules.syntax, {
99
valid: [
1010
'/**\nA great function!\n */\nfunction foobar() {}\n',
11-
'/**\nA great class!\n */\nclass FooBar {}\n'
11+
'/**\nA great class!\n */\nclass FooBar {}\n',
12+
'/** @jsx h */'
1213
],
1314
invalid: [
1415
{

0 commit comments

Comments
 (0)