Skip to content

Commit

Permalink
Add TypeScript to the supported languages for a rule that listed only…
Browse files Browse the repository at this point in the history
… JavaScript.
  • Loading branch information
mjambon committed Oct 3, 2023
1 parent e81f323 commit a61b93c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion typescript/react/best-practice/react-props-spreading.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ rules:
The spread operator risks passing invalid HTML props to an HTML element,
which can cause console warnings or worse, give malicious actors a way
to inject unexpected attributes.
languages: [javascript]
languages:
- typescript
- javascript
severity: WARNING
metadata:
source-rule-url: https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spreading.md
Expand Down

0 comments on commit a61b93c

Please sign in to comment.