Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit efaec93

Browse files
Fix React deprecation warnings 👏
1 parent 2eec51f commit efaec93

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

environments/react/best-practices.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,9 @@ module.exports = {
4343
// Prevent usage of deprecated methods
4444
'react/no-deprecated': 1,
4545

46-
// Restrict file extensions that may be required
47-
// require() statements should generally not include a file extension as there is a well defined
48-
// mechanism for resolving a module ID to a specific file. This rule inspects the module ID
49-
// being required and creates a warning if the ID contains a '.jsx' file extension.
50-
'react/require-extension': [1, {
51-
extensions: ['.js', '.jsx']
52-
}],
53-
5446
// Prevent missing parentheses around multiline JSX
5547
// Wrapping multiline JSX in parentheses can improve readability and/or convenience.
56-
'react/wrap-multilines': [1, {
48+
'react/jsx-wrap-multilines': [2, {
5749
declaration: true,
5850
assignment: true,
5951
return: true

0 commit comments

Comments
 (0)