diff --git a/index.js b/index.js index 25cbdb4c6b..708a6498e3 100644 --- a/index.js +++ b/index.js @@ -27,7 +27,6 @@ module.exports = { 'jsx-equals-spacing': require('./lib/rules/jsx-equals-spacing'), 'jsx-sort-props': require('./lib/rules/jsx-sort-props'), 'sort-prop-types': require('./lib/rules/sort-prop-types'), - 'jsx-sort-prop-types': require('./lib/rules/jsx-sort-prop-types'), 'jsx-boolean-value': require('./lib/rules/jsx-boolean-value'), 'sort-comp': require('./lib/rules/sort-comp'), 'require-extension': require('./lib/rules/require-extension'), diff --git a/lib/rules/jsx-sort-prop-types.js b/lib/rules/jsx-sort-prop-types.js deleted file mode 100644 index 549654ad59..0000000000 --- a/lib/rules/jsx-sort-prop-types.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * @fileoverview Enforce propTypes declarations alphabetical sorting - * @deprecated - */ -'use strict'; - -// ------------------------------------------------------------------------------ -// Rule Definition -// ------------------------------------------------------------------------------ - -var util = require('util'); -var sortPropTypes = require('./sort-prop-types'); -var isWarnedForDeprecation = false; - -module.exports = function(context) { - return util._extend(sortPropTypes(context), { - Program: function() { - if (isWarnedForDeprecation || /\=-(f|-format)=/.test(process.argv.join('='))) { - return; - } - - /* eslint-disable no-console */ - console.log('The react/jsx-sort-prop-types rule is deprecated. Please ' + - 'use the react/sort-prop-types rule instead.'); - /* eslint-enable no-console */ - isWarnedForDeprecation = true; - } - }); -}; - -module.exports.schema = [{ - type: 'object', - properties: { - requiredFirst: { - type: 'boolean' - }, - callbacksLast: { - type: 'boolean' - }, - ignoreCase: { - type: 'boolean' - } - }, - additionalProperties: false -}];