Skip to content

Commit 3b04df6

Browse files
author
Kent C. Dodds
committed
fix: do not attempt to lint ts files
The lint config does not support ts files yet
1 parent e872e0f commit 3b04df6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/scripts/lint.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ if (filesGiven) {
4343
// we need to take all the flag-less arguments (the files that should be linted)
4444
// and filter out the ones that aren't js files. Otherwise json or css files
4545
// may be passed through
46-
args = args.filter(
47-
a => !parsedArgs._.includes(a) || /\.jsx?$|\.tsx?$/.test(a),
48-
)
46+
args = args.filter(a => !parsedArgs._.includes(a) || /\.jsx?$/.test(a))
4947
}
5048

5149
const result = spawn.sync(

0 commit comments

Comments
 (0)