Skip to content

Commit 2672e6e

Browse files
committed
add eslint in the contributing guidelines
1 parent 466398e commit 2672e6e

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CONTRIBUTING.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ Please follow the existing code style and conventions used in the project. If yo
2929
```
3030
pip install -r backend/dev-requirements.txt --upgrade
3131
```
32+
Also install the eslint for both `cli/` and `webserver/`. Please use node 16 for that
33+
*NOTE*: If NVM is not installed, install using [nvm](https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating)
34+
```
35+
nvm install 16
36+
nvm use 16
37+
```
38+
```
39+
cd cli
40+
yarn add eslint@^8.40.0 eslint-config-next@13.5.6 eslint-plugin-import@^2.29.0 eslint-plugin-prettier@^5.0.1 eslint-plugin-react@^7.29.4 eslint-plugin-unused-imports@^3.0.0 --dev
41+
```
42+
```
43+
cd webserver
44+
yarn add eslint@^8.40.0 eslint-config-next@13.5.6 eslint-plugin-import@^2.29.0 eslint-plugin-prettier@^5.0.1 eslint-plugin-react@^7.29.4 eslint-plugin-unused-imports@^3.0.0 --dev
45+
```
3246
Then install it:
3347
```
3448
pre-commit install

cli/source/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const CliUi = () => {
135135
}, [appState, exit]);
136136

137137
useInput((input) => {
138-
const lowerCaseInput = input.toLowerCase();
138+
const lowerCaseInput = input.toLowerCase();
139139

140140
if (appState === AppStates.DOCKER_READY) {
141141
dispatch(appSlice.actions.setLogsStream([]));

0 commit comments

Comments
 (0)