Documentation conflicts with object-property-newline setting?
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 42/100
- Issue 類型
- 文件
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- eslint, javascript
- 領域
- documentation, tooling
研究方向
從 packages/eslint-config-airbnb-base/rules/style.js 中的 object-property-newline 設定開始,然後將其選項與 style guide 中相關聯的 functions、arrays 和 object 區段進行比較。判斷 style guide 是否應該說明此選項,或是否應讓設定保持一致,並記錄所選行為及其理由。
由索引模型根據 Issue 內容生成。
描述
It seems like the documentation consistently promotes having a new line for each item in multiline lists, whether it be in a function invocation or in an array (both of which mention bad examples of not having each item on a new line).
And even the object examples (although not referring to this specific rule) seem to favor this approach.
With that said, what is the reasoning behind allowing object properties to all appear on the same line?
It would seem more consistent to remove that option for object-property-newline. But at the very least, the reasoning and/or use case should probably be documented.
- 主要語言
- JavaScript
- 星號
- 148k
- 分支
- 26.5k
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
airbnb/javascript 的其他 Issue
-
Severity: Unhandled promise rejection in `whitespace-async.js` when ESLint async path is used可能已有人在做 @bodapatisaikrishna 於 27 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
airbnb/javascript#3237 · 6 則留言 ·
-
Inconsistent semicolon usage in examples (Arrays vs Functions)可能已有人在做 @Developer-shivamMishra 於 17 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
airbnb/javascript#3152 · 4 則留言 ·
-
No error handling around execSync + JSON.parse in whitespace.js (ESLint 9 path)可能已有人在做 @dataCenter430 於 222 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 48/100
airbnb/javascript#3238 · 8 則留言 ·
-
Upgrading eslint-plugin-react-hooks可能已有人在做 @weihongyu12 於 367 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 38/100
airbnb/javascript#3186 · 3 則留言 · 2 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 45/100
airbnb/javascript#3173 · 9 則留言 · 1 個 reaction ·
查看 airbnb/javascript 的全部 Issue
相似的 Issue
-
[scanner] check:spelling skips blog/ — posts and author metadata are never spell-checked可能已有人在做 @hivecommons-hive 今天認領。 未關閉agent/scanner bug hive/covered-by-pr hive/hosted-available-lke648397-260827-5n31
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 1 天內回覆
-
Edit: HTVKey.vn未關閉channels:edit check:passed
難度 1/5 1 小時以內 新手友好度 72/100
維護者通常 6 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
-
beginner bug
難度 1/5 1 小時以內 新手友好度 88/100
hiero-ledger/hiero-sdk-js#4517 ·
維護者通常 1 天內回覆
-
`timer` rule rejects dates the engine accepts可能已有人在做 @MFA-G 今天認領。 未關閉bug ready
難度 2/5 1-3 小時 新手友好度 72/100
camunda/bpmnlint-plugin-camunda-compat#281 · 3 則留言 ·
維護者通常 1 天內回覆