next-landing-vpn icon indicating copy to clipboard operation
next-landing-vpn copied to clipboard

fix: Add ESLint and Prettier for standardization

Open Vinitvh opened this issue 2 years ago • 3 comments

  • Added ESLint with script lint:fix: "eslint . --fix" which checks for linting problems.
  • Added Prettier with script format: "prettier . --write" which formats code according to config.

closes #17

Vinitvh avatar Oct 11 '22 14:10 Vinitvh

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-landing-vpn ❌ Failed (Inspect) Oct 25, 2022 at 7:01AM (UTC)

vercel[bot] avatar Oct 11 '22 14:10 vercel[bot]

  1. Can you provide screenshot if ESLint and Prettier work with script?
  2. Can you use npm not yarn and not uploaded yarn.lock file?

naufaldi avatar Oct 12 '22 15:10 naufaldi

This is the screenshot for ESLint script. lint

This is the screenshot for prettier script. prettier

  • Both yarn and npm can be used.

Vinitvh avatar Oct 12 '22 17:10 Vinitvh

can you resolve conflict and make file not error when production @Vinitvh ?

naufaldi avatar Oct 25 '22 03:10 naufaldi

Hi @naufaldi, looks like I'm having issues solving merge conflicts. Sorry for that. Will try to resolve those as soon as possible.

Vinitvh avatar Oct 25 '22 07:10 Vinitvh