Skip to content

Commit 0fb22a7

Browse files
author
Julien Neuhart
committed
Add Static Analysis for webapp documentation
1 parent 1069927 commit 0fb22a7

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Static Analysis
3+
slug: /webapp/static-analysis
4+
---
5+
6+
The boilerplate provides static analysis tools for helping you catch common mistakes and format your source code.
7+
8+
:::note
9+
10+
📣  All commands have to be run in the `webapp` service (`make webapp`).
11+
12+
:::
13+
14+
## ESLint
15+
16+
[ESLint](https://eslint.org/) is both a linting and a formatting tool.
17+
18+
It also comes with [Prettier](https://prettier.io/) that provides more rules.
19+
20+
It will parse your JavaScript and CSS source code, catch common mistakes plus format it.
21+
22+
This command will try to fix and format your source code:
23+
24+
```bash title="console"
25+
yarn lint:fix
26+
```
27+
28+
This command will verify your source code:
29+
30+
```bash title="console"
31+
yarn lint
32+
```
33+
34+
:::note
35+
36+
📣  In your development environment, hot reloading automatically runs the lint command.
37+
38+
:::

0 commit comments

Comments
 (0)