Formatting:
npm run prettier
: Format files by Prettier.npm run prettier-check
: Check the files are formatted or not.
- You can change Prettier setting in
.prettierrc.json
Running:
npm run eslint
: Show the errors from the files by Eslint.npm run eslint-fix
: Fix the errors from the files by Eslint.
- You can change Prettier setting in
.eslintrc.json
-
Prettier:
esbenp.prettier-vscode
-
ESLint:
dbaeumer.vscode-eslint
-
It will automatically set the Prettier and ESLint as a default option to your Vscode.
npm test
ornpm run test
: test the code by in test dir.npm test:cover
ornpm run test:cover
: test the code by set coverage.
- You can change jest(for testing) setting in
jest.config.js