Skip to content

Commit

Permalink
also check that /* */ style blocks are handled too
Browse files Browse the repository at this point in the history
  • Loading branch information
Brianzchen committed May 7, 2024
1 parent 8f478a5 commit 2df6ea8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/rules/assertions/noFlowSuppressionsInStrictFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ export default {
*/
// $FlowExpectedError[xxx]
const text: string = 42;`),
invalid(`/*
* @flow strict
*
* something multi lined
*/
/* $FlowIgnore[xxx] */
const text: string = 42;`),
invalid(
'// @flow strict\n\n// $FlowFixMe\nconst text: string = 42;',
Expand Down

0 comments on commit 2df6ea8

Please sign in to comment.