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

Commit 2760e7c

Browse files
chore: lower react/forbid-dom-props to warning until next semver-major
1 parent 3052c8a commit 2760e7c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

environments/react/recommended.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ module.exports = {
266266
// Forbid certain props on DOM Nodes
267267
// This rule checks all JSX elements and verifies that no forbidden props are used on DOM Nodes.
268268
// This rule only applies to DOM Nodes (e.g. <div />) and not Components (e.g. <Component />).
269-
'react/forbid-dom-props': ['error', { forbid: ['style', 'id'] }],
269+
// @TODO(semver-major): Change to error
270+
'react/forbid-dom-props': ['warn', {
271+
forbid: ['style', 'id'],
272+
}],
270273
},
271274
}

0 commit comments

Comments
 (0)