Skip to content

Commit

Permalink
fix: jsx settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rintaun committed Dec 10, 2020
1 parent 4e0b9a0 commit 5537017
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ module.exports = {
/* JavaScript/TypeScript JSX files ONLY */
{
files: '**/*.{j,t}sx',
parserOptions: {
env: {
browser: true,
},
ecmaFeatures: {
jsx: true,
},
},
settings: {
react: {
pragma: 'React',
version: 'detect',
},
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
Expand Down

0 comments on commit 5537017

Please sign in to comment.