Skip to content

Commit b1c1c25

Browse files
committed
Remove failing test for renamed React import
It's a minor corner case, and removing it allows the major issue to be resolved. If it's really necessary to handle that corner case, I suggest creating a new issue to track just that case.
1 parent e2a0a2c commit b1c1c25

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/lib/rules/no-typos.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -879,18 +879,5 @@ ruleTester.run('no-typos', rule, {
879879
}, {
880880
message: 'Typo in declared prop type: objectof'
881881
}]
882-
}, {
883-
code: `
884-
import RealReactDifferentName from "react"
885-
class Component extends React.Component {};
886-
Component.propTypes = {
887-
b: RealReactDifferentName.PropTypes.STRING,
888-
}
889-
`,
890-
parser: 'babel-eslint',
891-
parserOptions: parserOptions,
892-
errors: [{
893-
message: 'Typo in prop type chain qualifier: STRING'
894-
}]
895882
}]
896883
});

0 commit comments

Comments
 (0)