jaredpalmer / tsdx

Zero-config CLI for TypeScript package development
https://tsdx.io
MIT License
11.28k stars 507 forks source link

(format): format all files, not just src/ and test/ #648

Closed agilgur5 closed 4 years ago

agilgur5 commented 4 years ago

Split out from #646 where I realized when editing the jest.config.js that it wasn't being linted/formatted.

This also starts another conversation -- shouldn't tsdx lint or the scripts in the templates default to './' and not just src test? src test already misses things like example and stories as well as .eslintrc.js, jest.config.js, and any other root files or root directories. Personally I think it should default to './' and we'll need an .eslintignore or symlink to .gitignore for the templates then too since we need to ignore all node_modules (at root and at example) as well as dist/. See also #517 that ESLint by default does not use .gitignore for ignores for some reason