Skip to content

Commit 797e633

Browse files
authored
Tweak styleguide (vuejs#422)
* add contributor * tweak syleguide * update contributions * rule D translation omission
1 parent 4c65b68 commit 797e633

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

src/contribution/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ api.md | API リファレンス | [hikimon](https://github.com/hikimon)
103103
- 対象ファイル: index.md
104104
- [GitHub Projects](https://github.com/vuejs/jp.vuejs.org/projects/2)
105105

106-
ファイル | ルール | 貢献者
106+
英語カテゴリ | 翻訳カテゴリ | 貢献者
107107
----- | ------------- | ---
108-
index.md | Priority A Rules | [hisako135](https://github.com/hisako135)
109-
index.md | Priority B Rules | [wonderful-panda](https://github.com/wonderful-panda)
110-
index.md | Priority C Rules | [shika358](https://github.com/shika358)
111-
index.md | Priority D Rules | WIP
108+
Introduction | - | [potato4d](https://github.com/potato4d)
109+
Priority A Rules | 優先度 A ルール | [hisako135](https://github.com/hisako135)
110+
Priority B Rules | 優先度 B ルール | [wonderful-panda](https://github.com/wonderful-panda)
111+
Priority C Rules | 優先度 C ルール | [shika358](https://github.com/shika358)
112+
Priority D Rules | 優先度 D ルール | [zakuro9715](https://github.com/zakuro9715)
112113

113114
## Vue.js 公式ブログ "The Vue Point" の翻訳
114115

src/v2/style-guide/index.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
---
22
type: style-guide
3-
updated: 2017-10-09
3+
updated: 2017-11-04
44
---
55

66
# スタイルガイド <sup class="beta">beta</sup>
77

8-
> 注意⚠️ : このドキュメントはまだ完全に翻訳されていません。このページは[随時翻訳作業](https://github.com/vuejs/jp.vuejs.org/projects/2)につき更新されていきます🙏 !
9-
108
このドキュメントは、 Vue 固有の記法についての公式なスタイルガイドです。もしあなたがプロジェクトにおいて Vue を使用する場合は、エラーや有益でない議論、アンチパターンを避けるための参考となります。しかし、スタイルガイドはすべてのチームやプロジェクトで理想とは限らないと考えていますので、過去の経験や、周囲の技術スタック、個人の価値観に基づいた上で必要に応じて慎重に逸脱することが推奨されます。
119

12-
殆どのパートにおいて、基本的に JavaScript や HTML に対する提案はさけています。セミコロンやカンマの使用の是非はどちらでも良いです。 HTML の属性に対してシングルクォートかダブルクォートどちらかを利用するかもどちらでも良いです。しかし、特定のパターンにおいて Vue のコンテキストが役立つと判明した場合については、その限りではありません。
10+
ほとんどのパートにおいて、基本的に JavaScript や HTML に対する提案はさけています。セミコロンやカンマの使用の是非はどちらでも良いです。 HTML の属性に対してシングルクォートかダブルクォートどちらかを利用するかもどちらでも良いです。しかし、特定のパターンにおいて Vue のコンテキストが役立つと判明した場合については、その限りではありません。
1311

1412
> **近々、実施のヒントを提供予定です** スタイルガイドについて、必要に応じて自身で実施しなければならない場所もありますが、可能な限り ESLint やその他自動化されたプロセスを用いて、より簡単に行う方法を明示します。
1513
1614
最後に、私たちはルール群を 4 つのカテゴリに分割しました:
1715

1816

1917

20-
## Rule Categories
18+
## ルールカテゴリ
2119

22-
### 優先度 A: 不可欠
20+
### 優先度 A: 必須
2321

2422
これらのルールは、エラー防止に役立ちます。ですので、学び、遵守してください。例外は存在するかもしれませんが、それらは極めて稀で、かつ JavaScript と Vue の両方の専門知識を持った人によってのみ作られるべきです。
2523

@@ -35,13 +33,13 @@ updated: 2017-10-09
3533
2. ほとんどのコミュニティのコードサンプルを変更なしにコピーして貼り付ける事ができます。
3634
3. 少なくとも Vue に関しては、ほとんどの場合、新たな人材はあなたのコーディングスタイルよりも既に慣れ親しんだものを好みます。
3735

38-
### Priority D: Use with Caution
36+
### 優先度 D: 使用注意
3937

40-
Some features of Vue exist to accommodate rare edge cases or smoother migrations from a legacy code base. When overused however, they can make your code more difficult to maintain or even become a source of bugs. These rules shine a light on potentially risky features, describing when and why they should be avoided.
38+
Vue のいくつかの機能は、レアケースまたは従来のコードベースからスムーズな移行に対応するために存在します。しかしながら、これを使いすぎると、コードを保守することが難しくなり、またバグの原因になることさえあります。これらのルールは潜在的な危険な機能を照らし、いつ、なぜ避けなかればならないのかを説明しています。
4139

4240

4341

44-
## 優先度 A ルール: 不可欠 (エラー防止)
42+
## 優先度 A ルール: 必須 (エラー防止)
4543

4644

4745

themes/vue/layout/partials/contribution.ejs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@
122122
'sotayamashita'
123123
]
124124
var style = [
125+
'potato4d',
125126
'hisako135',
126127
'wonderful-panda',
127-
'shika358'
128+
'shika358',
129+
'zakuro9715'
128130
]
129131
var contributors2 = [
130132
'inouetakuya',

0 commit comments

Comments
 (0)