Skip to content

Commit 6769612

Browse files
committed
Proposal: [react][breaking] Only .js files should contain JSX.
1 parent 6454839 commit 6769612

File tree

1 file changed

+2
-2
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+2
-2
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,9 @@ module.exports = {
223223
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
224224
'react/jsx-no-target-blank': 2,
225225

226-
// only .jsx files may have JSX
226+
// only .js files may have JSX
227227
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
228-
'react/jsx-filename-extension': [2, { extensions: ['.jsx'] }],
228+
'react/jsx-filename-extension': [2, { extensions: ['.js'] }],
229229

230230
// prevent accidental JS comments from being injected into JSX as text
231231
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-comment-textnodes.md

0 commit comments

Comments
 (0)