Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.16 KB

CONTRIBUTTING.md

File metadata and controls

47 lines (26 loc) · 1.16 KB

header

PRETTIER

Usage

Formatting:

  • npm run prettier: Format files by Prettier.
  • npm run prettier-check: Check the files are formatted or not.

Setting

  • You can change Prettier setting in .prettierrc.json

ESLINT

Usage

Running:

  • npm run eslint: Show the errors from the files by Eslint.
  • npm run eslint-fix: Fix the errors from the files by Eslint.

Setting

  • You can change Prettier setting in .eslintrc.json

Vscode

  • Prettier: esbenp.prettier-vscode

  • ESLint: dbaeumer.vscode-eslint

  • It will automatically set the Prettier and ESLint as a default option to your Vscode.

Test the SSG

Usage

  • npm test or npm run test : test the code by in test dir.
  • npm test:cover or npm run test:cover : test the code by set coverage.

Setting

  • You can change jest(for testing) setting in jest.config.js

footer