Closed corgrath closed 1 year ago
Hey! @corgrath Thanks for your report!
I can't reproduce the issue, please provide a minimal reproductible example.
By default *.min.js
files are ignored. JavaScript files are included like *.js
. But in package.json
with:
"ts-standard": {
"ignore": ["**/*.js"]
},
It successfully ignores all JavaScript files.
What version of this package are you using?
ts-standard --version
says12.0.1
What operating system, Node.js, and npm version? MacOS Monterey npm 8.3.1 node 17.4.0
What happened? I am using
ts-standard
in my front end TypeScript project.My folder structure looks like:
Where I have both a TypeScript backend and a front end project, and in the front end project I have the external thirdparty minified file
libs/showdown.min.js
.When I run ts-standard, it is linting all the files in the
src/frontend/**
folder, but unfortunately also theshowdown.min.js
:Even with
--ext ts
and--ext .ts
the file is linted.I have also tried this in the main
package.json
:What did you expect to happen? All
*.min.js
files should be excluded from the linting.Are you willing to submit a pull request to fix this bug?