Skip to content

Commit

Permalink
[Tests] no-typos: test case from #2136
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 17, 2019
1 parent c7e5f38 commit df7ffc1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/lib/rules/no-typos.js
Expand Up @@ -619,6 +619,20 @@ ruleTester.run('no-typos', rule, {
`,
parser: 'babel-eslint',
parserOptions: parserOptions
}, {
code: `
import { string, element } from "prop-types";
class Sample extends React.Component {
render() { return null; }
}
Sample.propTypes = {
title: string.isRequired,
body: element.isRequired
};
`,
parserOptions: parserOptions
}],

invalid: [{
Expand Down

0 comments on commit df7ffc1

Please sign in to comment.