Skip to content

Commit d318e52

Browse files
brettdhljharb
authored andcommitted
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 ec01d9a commit d318e52

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/lib/rules/no-typos.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -980,17 +980,5 @@ ruleTester.run('no-typos', rule, {
980980
}, {
981981
message: 'Typo in declared prop type: objectof'
982982
}]
983-
}, {
984-
code: `
985-
import RealReactDifferentName from "react"
986-
Component.propTypes = {
987-
b: RealReactDifferentName.PropTypes.STRING,
988-
}
989-
`,
990-
parser: 'babel-eslint',
991-
parserOptions: parserOptions,
992-
errors: [{
993-
message: 'Typo in prop type chain qualifier: STRING'
994-
}]
995983
}]
996984
});

0 commit comments

Comments
 (0)