Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add ESLint to the project #1383

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"root": true,
"env": {
"commonjs": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"no-unused-vars": ["warn", { "ignoreRestSiblings": true, "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }],
"no-empty": "warn",
"no-useless-escape": "warn",
"no-regex-spaces": "warn",
"no-prototype-builtins": "warn"
}
}
4 changes: 0 additions & 4 deletions docs/contributing/contributing_zhtw.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@ Bruno 使用 Next.js 和 React 構建。我們使用 Electron 來封裝及發佈

您需要使用 [Node v18.x 或最新的 LTS 版本](https://nodejs.org/en/) 和 npm 8.x。我們在這個專案中使用 npm 工作區(_npm workspaces_)。


## 開發

Bruno 正以桌面應用程式的形式開發。您需要在一個終端機中執行 Next.js 來載入應用程式,然後在另一個終端機中執行 electron 應用程式。


### 開發依賴

- NodeJS v18
Expand Down Expand Up @@ -69,7 +67,6 @@ done
find . -type f -name "package-lock.json" -delete
```


### 測試

```bash
Expand All @@ -80,7 +77,6 @@ npm test --workspace=packages/bruno-schema
npm test --workspace=packages/bruno-lang
```


### 發送 Pull Request

- 請保持 PR 精簡並專注於一個目標
Expand Down
2 changes: 1 addition & 1 deletion docs/readme/readme_es.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ O cualquier otro sistema de control de versiones que prefieras
- [Precios](https://www.usebruno.com/pricing)
- [Descargas](https://www.usebruno.com/downloads)

### Casos de uso 🎥
### Casos de uso 🎥

- [Testimonios](https://github.com/usebruno/bruno/discussions/343)
- [Centro de Conocimiento](https://github.com/usebruno/bruno/discussions/386)
Expand Down
Loading
Loading