-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support spell checking of JSX/TSX Text
- New Option: `checkJSXText` defaults to `true`. fixes: #3342
- Loading branch information
Showing
13 changed files
with
1,376 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
], | ||
"words": [ | ||
"estree", | ||
"treeshake", | ||
"tsbuildinfo" | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/cspell-eslint-plugin/fixtures/samples/react/sample.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as React from "react"; | ||
import * as ReactDOM from "react-dom"; | ||
ReactDOM.render( | ||
<div> | ||
<h1>Hello, Welcome to React and TypeScript</h1> | ||
</div>, | ||
document.getElementById("root") | ||
); |
8 changes: 8 additions & 0 deletions
8
packages/cspell-eslint-plugin/fixtures/samples/react/sample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as React from "react"; | ||
import * as ReactDOM from "react-dom"; | ||
ReactDOM.render( | ||
<div> | ||
<h1>Hello, Welcome to React and TypeScript</h1> | ||
</div>, | ||
document.getElementById("root") | ||
); |
12 changes: 12 additions & 0 deletions
12
packages/cspell-eslint-plugin/fixtures/with-errors/react/sample.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as React from 'react'; | ||
import * as ReactDOM from 'react-dom'; | ||
import FirstComponent from './components/FirstComponent'; | ||
import UserComponent from './components/UserComponent'; | ||
ReactDOM.render( | ||
<div> | ||
<h1>Hello, Welcomeeeee to React and TypeScript</h1> | ||
<FirstComponent /> | ||
<UserComponent name="John Doe" age={26} address="87 Summmer St, Boston, MA 02110" dob={new Date()} /> | ||
</div>, | ||
document.getElementById('root') | ||
); |
12 changes: 12 additions & 0 deletions
12
packages/cspell-eslint-plugin/fixtures/with-errors/react/sample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as React from "react"; | ||
import * as ReactDOM from "react-dom"; | ||
import FirstComponent from './components/FirstComponent' | ||
import UserComponent from './components/UserComponent' | ||
ReactDOM.render( | ||
<div> | ||
<h1>Hello, Welcomeeeee to React and TypeScript</h1> | ||
<FirstComponent/> | ||
<UserComponent name="John Doe" age={26} address="87 Summmer St, Boston, MA 02110" dob={new Date()} /> | ||
</div>, | ||
document.getElementById("root") | ||
); |
Oops, something went wrong.