Skip to content

Commit 6602586

Browse files
committed
[eslint config] [minor] Sort react/prefer-es6-class alphabetically
All of the other rules in this file are in alphabetical order, but this one was added by c98990c out of order at the end. Keeping these in alphabetical order will help developers find the rules that they are looking for.
1 parent c98990c commit 6602586

File tree

1 file changed

+3
-3
lines changed
  • packages/eslint-config-airbnb/rules

1 file changed

+3
-3
lines changed

packages/eslint-config-airbnb/rules/react.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)