mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
[eslint config] [minor] enable react/prefer-es6-class rule
This commit is contained in:
5
packages/eslint-config-airbnb/rules/react.js
vendored
5
packages/eslint-config-airbnb/rules/react.js
vendored
@@ -84,6 +84,9 @@ module.exports = {
|
||||
declaration: true,
|
||||
assignment: true,
|
||||
return: true
|
||||
}]
|
||||
}],
|
||||
// Require ES6 class declarations over React.createClass
|
||||
// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
|
||||
'react/prefer-es6-class': [2, 'always'],
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user