Enable Vue attribute formatting rules without changing rendered behavior
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 70/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
調査の方向性
Start in eslint.config.mjs under the libresign/disabled-during-migration block and remove only the 'off' entries for vue/first-attribute-linebreak and vue/max-attributes-per-line. Run the dry-run layout preview on src/**/*.vue and check that the proposed edits only split or join attribute lines. Done when both rules are enabled, the diff changes only attribute layout, and npm run lint, npm run ts:check and npm run build pass.
索引モデルが issue の本文から書いたものです。
説明
Goal
Enable two Vue template attribute-layout ESLint rules without changing HTML content, component behavior or visible UI. The work is layout-only and uses the existing ESLint preset and autofix workflow.
Rules
vue/first-attribute-linebreak(historical estimate: ~435 hits)vue/max-attributes-per-line(historical estimate: ~68 hits)
Counts are historical and may overlap; measure the current main before starting.
Good first issue
Start at eslint.config.mjs, inside libresign/disabled-during-migration, and at existing .vue templates under src/. This is similar to the merged formatting contribution in #9145. You do not need to design a Vue component, change business logic or modify APIs. Check ongoing work and discuss a genuine ambiguity with maintainers; no advance permission or assignment is required.
Step-by-step implementation
-
Create a branch based on the latest
mainand confirm a clean working tree. -
Verify the effective Nextcloud preset options for both rules. Remove only their
'off'entries fromeslint.config.mjsand leave their preset severity unchanged. -
Preview layout-only fixes without changing files:
npx eslint 'src/**/*.vue' --fix-dry-run --fix-type layout \ --format json > /tmp/eslint-vue-preview.json -
Record the current warning/error count and files affected. If the preview is limited to attribute line breaks and formatting, apply:
npx eslint 'src/**/*.vue' --fix --fix-type layout -
Review
git diff -- src/ eslint.config.mjs. Confirm changes only split/join attribute lines or adjust harmless layout. Verify every attribute name and value, Vue directive, binding expression,aria-*value, slot, event, selector and visible text is unchanged. Revert unrelated fixes produced by other already-enabled rules. -
Keep rule-specific commits separately reviewable with valid DCO sign-off. If a fix for one rule overlaps the other, explain the overlap rather than manufacturing meaningless edits.
-
Open one focused PR linking this issue. Report the changed-file count, before/after ESLint diagnostics and executed checks.
Verification
git diff --check
npm run lint
npm run ts:check
npm run build
Run npm test or the focused Vitest tests for any modified component whose rendering behavior needs verification. If a change unexpectedly affects rendered markup, include a sanitized screenshot or short video and request review before claiming success. A screenshot alone does not replace automated tests.
Done when
- Both layout rules inherit the intended Nextcloud preset options and applicable violations are resolved.
- Only attribute layout changes; props, slots, events, directives, CSS classes, accessible labels and user-visible text remain identical.
- The PR includes a reviewed diff, current diagnostics, file count, appropriate passing checks and signed-off commits.
- No generated code, translations, tests' assertions, new dependencies or unneeded suppressions are introduced.
Out of scope
Do not enable vue/attribute-hyphenation, event/slot casing rules, component-renaming rules, or introduce unrelated template refactors.
Additional context
Development workflow: https://docs.libresign.coop/developer_manual/development-workflow.html
Questions and community support: https://t.me/LibreSign
- 主要言語
- PHP
- スター
- 844
- フォーク
- 176
- 平均マージ
- 14時間 3分
- マージ済み PR(30日)
- 344
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
LibreSign/libresign のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
OpenSSL engine: leaf certificates get O=Internet Widgits Pty Ltd, ST=Some-State from system openssl.cnf対応中かも @vitormattos が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LibreSign/libresign#9366 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
LibreSign/libresign#9007 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
LibreSign/libresign#8284 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
frontend javascript technical debt
難易度 5/5 1週間以上 初心者へのやさしさ 8/100
メンテナーはふだん 1 日以内に返信
LibreSign/libresign の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
Automattic/blocks-engine#6318 ·
メンテナーはふだん 1 日以内に返信
-
[remove-resource] Delete Open Course Hub, Open Multicourse Hub, and Learn2 with GitSync skeletonsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
-
35-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信