File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/eslint-config-airbnb/rules Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,9 @@ module.exports = {
5454 // Prevent usage of unknown DOM property
5555 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md
5656 'react/no-unknown-property' : 2 ,
57+ // Require ES6 class declarations over React.createClass
58+ // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
59+ 'react/prefer-es6-class' : [ 2 , 'always' ] ,
5760 // Prevent missing props validation in a React component definition
5861 // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prop-types.md
5962 'react/prop-types' : 2 ,
@@ -85,8 +88,5 @@ module.exports = {
8588 assignment : true ,
8689 return : true
8790 } ] ,
88- // Require ES6 class declarations over React.createClass
89- // https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
90- 'react/prefer-es6-class' : [ 2 , 'always' ] ,
9191 }
9292} ;
You can’t perform that action at this time.
0 commit comments