diff --git a/tests/lib/rules/no-typos.js b/tests/lib/rules/no-typos.js index 0123327e1c..cccc87a434 100644 --- a/tests/lib/rules/no-typos.js +++ b/tests/lib/rules/no-typos.js @@ -241,15 +241,6 @@ ruleTester.run('no-typos', rule, { } `, parserOptions: parserOptions - }, { - // PropTypes declared on a component that is detected through JSDoc comments and is - // declared AFTER the PropTypes assignment does not work. - code: ` - MyComponent.PROPTYPES = {} - /** @extends React.Component */ - class MyComponent extends BaseComponent {} - `, - parserOptions: parserOptions }, { // https://github.com/yannickcr/eslint-plugin-react/issues/1353 code: ` @@ -1354,6 +1345,19 @@ ruleTester.run('no-typos', rule, { }] }] /* +// PropTypes declared on a component that is detected through JSDoc comments and is +// declared AFTER the PropTypes assignment +// Commented out since it only works with ESLint 5. + ,{ + code: ` + MyComponent.PROPTYPES = {} + \/** @extends React.Component *\/ + class MyComponent extends BaseComponent {} + `, + parserOptions: parserOptions + }, +*/ +/* // createClass tests below fail, so they're commented out // --------- }, {