File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## 2.23.0
4+ - Added react/void-dom-elements-no-children rule
5+ - Added react/forbid-foreign-prop-types rule
6+
37## 2.22.0
48- Added style/template-tag-spacing rule
59
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-config-smartthings" ,
3- "version" : " 2.22 .0" ,
3+ "version" : " 2.23 .0" ,
44 "description" : " SmartThings's ESLint config" ,
55 "main" : " index.js" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ module.exports = {
1313 'react/display-name' : 0 ,
1414 // Forbid certain props on Components
1515 'react/forbid-component-props' : 0 ,
16+ // Forbid certain elements (forbid-elements)
17+ 'react/forbid-elements' : 0 ,
18+ // Forbid foreign propTypes (forbid-foreign-prop-types)
19+ 'react/forbid-foreign-prop-types' : 2 ,
1620 // Checks all JSX components and verifies that no forbidden propsTypes are used.
1721 'react/forbid-prop-types' : 0 ,
1822 // Enforce boolean attributes notation in JSX
@@ -141,6 +145,8 @@ module.exports = {
141145 // Enforce propTypes declarations alphabetical sorting
142146 'react/sort-prop-types' : 0 ,
143147 // Enforce style prop value being an object
144- 'react/style-prop-object' : 2
148+ 'react/style-prop-object' : 2 ,
149+ // Prevent void DOM elements (e.g. <img />, <br />) from receiving children
150+ 'react/void-dom-elements-no-children' : 2
145151 }
146152} ;
You can’t perform that action at this time.
0 commit comments