Skip to content

Commit 45fc650

Browse files
authored
🔧 declare React version dynamically (#18)
Avoid warning "Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration ."
1 parent 983e650 commit 45fc650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,10 @@ module.exports = {
1010
'jsx-boolean-value': 0,
1111
'jsx-no-lambda': 0,
1212
'newline-before-return': 1
13+
},
14+
settings: {
15+
react: {
16+
version: "detect"
17+
}
1318
}
1419
}

0 commit comments

Comments
 (0)