Search
Get Started
TTC
Theo's Typesafe Cult
•
2y ago
Path of Epoch
(solved) How to eslint the whole project in VS Code?
VS code highlights open files using the eslint config
, but how do I lint the whole project
?
(i
.e
. also file I don
't currently have open
)
Theo's Typesafe Cult
Join
26,249
Members
View on Discord
Was this page helpful?
Yes
No
F
fl0w†
•
5/15/24, 5:00 PM
you can use the cli
:
or
(npm run lint
)
, for TS linting you can use this experimental setting in VSC
:
F
fl0w†
•
5/15/24, 5:00 PM
@Path of Epoch
P
Path of Epoch
OP
•
5/15/24, 5:01 PM
Ah
, makes sense
. I tried
> eslint instead of
> npx eslint
^
^
F
fl0w†
•
5/15/24, 5:02 PM
starehandshake
F
fl0w†
•
5/15/24, 5:03 PM
btw you can use the
-
-fix param to autofix some problems
:
)
npx eslint .
npx eslint .