File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
docs/docs/4_Web Application Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 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+ :::
You can’t perform that action at this time.
0 commit comments