Skip to content

Commit 9d4e27a

Browse files
committed
Ignore no-typos test that only works with ESLint 5
1 parent f2d8729 commit 9d4e27a

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

tests/lib/rules/no-typos.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,6 @@ ruleTester.run('no-typos', rule, {
241241
}
242242
`,
243243
parserOptions: parserOptions
244-
}, {
245-
// PropTypes declared on a component that is detected through JSDoc comments and is
246-
// declared AFTER the PropTypes assignment does not work.
247-
code: `
248-
MyComponent.PROPTYPES = {}
249-
/** @extends React.Component */
250-
class MyComponent extends BaseComponent {}
251-
`,
252-
parserOptions: parserOptions
253244
}, {
254245
// https://github.com/yannickcr/eslint-plugin-react/issues/1353
255246
code: `
@@ -1354,6 +1345,19 @@ ruleTester.run('no-typos', rule, {
13541345
}]
13551346
}]
13561347
/*
1348+
// PropTypes declared on a component that is detected through JSDoc comments and is
1349+
// declared AFTER the PropTypes assignment
1350+
// Commented out since it only works with ESLint 5.
1351+
,{
1352+
code: `
1353+
MyComponent.PROPTYPES = {}
1354+
\/** @extends React.Component *\/
1355+
class MyComponent extends BaseComponent {}
1356+
`,
1357+
parserOptions: parserOptions
1358+
},
1359+
*/
1360+
/*
13571361
// createClass tests below fail, so they're commented out
13581362
// ---------
13591363
}, {

0 commit comments

Comments
 (0)