Skip to content

Commit

Permalink
fix: enable jsx for react
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 17, 2024
1 parent b964f54 commit 32a3407
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions configurations/react.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
const globals = require('globals');

module.exports.recommended = {
files: ['**/*.tsx'],
languageOptions: {
globals: {
...globals.browser,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
canonical: require('eslint-plugin-canonical'),
react: require('eslint-plugin-react'),
Expand Down

0 comments on commit 32a3407

Please sign in to comment.