Skip to content

Commit

Permalink
[fix] Turn ”react/prefer-es6-class" on as an error. Fixes #36.
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Feb 8, 2017
1 parent 8575c3f commit 7e2e820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/eslint-config-godaddy-es5/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
},
rules: {
'react/display-name': 2,
'react/prefer-es6-class': 0,
'strict': [2, 'never']
}
};
1 change: 1 addition & 0 deletions packages/eslint-config-godaddy-react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module.exports = {
rules: {
'react/display-name': 0,
'react/jsx-uses-react': 1,
'react/prefer-es6-class': 2,
//
// Whitespace rules for specific scenarios (e.g. JSX)
//
Expand Down

0 comments on commit 7e2e820

Please sign in to comment.