Skip to content

Commit

Permalink
chore: fix warning React version not specified (#139)
Browse files Browse the repository at this point in the history
Warning: React version not specified in eslint-plugin-react settings. See https://github.com/jsx-eslint/eslint-plugin-react#configuration
  • Loading branch information
afc163 committed Jun 24, 2022
1 parent 064757f commit c986166
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/eslint.ts
Expand Up @@ -104,6 +104,9 @@ module.exports = {
'import/extensions': ['.js', '.mjs', '.jsx', '.ts', '.tsx', '.d.ts'],
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
polyfills: ['fetch', 'Promise', 'URL', 'object-assign'],
react: {
version: 'detect',
},
},
overrides: isTsProject
? [
Expand Down

0 comments on commit c986166

Please sign in to comment.