Skip to content

Commit

Permalink
Fix annoying React linting message (#263)
Browse files Browse the repository at this point in the history
Warning: React version was set to "detect" in eslint-plugin-react settings, but the "react" package is not installed. Assuming latest React version for linting.

See: \node_modules\eslint-plugin-react\lib\util\version.js for where I came up with 999.999.999
  • Loading branch information
dac514 authored Mar 15, 2019
1 parent ab05bd0 commit bd9774f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/eslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ module.exports = {
plugins: [
'jquery',
],
settings: {
react: {
version: '999.999.999',
},
},
rules: {
'jsx-a11y/href-no-hash': 0,
'jquery/no-ajax': 2,
Expand Down

0 comments on commit bd9774f

Please sign in to comment.