Best Practices
Last updated
Was this helpful?
Last updated
Was this helpful?
Use
Use typescript
Use eslint
Use prettier
Use jest
Use husky
Used to lint files
See
Update lerna.json
Install
Update package.json
package.json
when creating a new package:
Each package manages it's own typescript
and eslint
.
For example, at the root directory.
JSON5 Short Example:
Used by create-react-app
Used by create-react-app
As early as possible:
JavaScript:
TypeScript:
Or
Used by create-react-app
The JSON5 Data Interchange Format (JSON5) is a superset of that aims to alleviate some of the limitations of JSON by expanding its syntax to include some productions from .
fs-extra
adds file system methods that aren't included in the native fs
module and adds promise support to the fs
methods. It also uses to prevent EMFILE
errors. It should be a drop in replacement for fs
.