Linter
Last updated
Was this helpful?
Last updated
Was this helpful?
A linter is the equivalent of a grammar check for code. It doesn't mean the code is correct, but it helps maintain consistency across the code base.
For this project, we will be using for Typescript.
Let's start by adding typescript
and tslint
and creating a tslint.json
file at the root of the project.
Create a file in packages/api/index.ts
with invalid code structure:
Have a look at .
The Node API and React app tslint.json
configuration could be different. We can share common rules between the project from the root.
Replace the content of packages/api/tslint.json
with:
You can do the same with web
but we'll come back to it later.
branch available on GitHub.