Skip to content

Commit 1963a2b

Browse files
committed
ESLint start to fail by JSON that have npm flavored comment
Related mixi-inc#28
1 parent 4d804e4 commit 1963a2b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.eslintrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
"node": true
44
},
55
"rules": {
6-
"//": "single quote に統一",
6+
// single quote に統一
77
"quotes": [2, "single", "avoid-escape"],
88

9-
"//": "関数宣言文以外は hoisting 避けのため禁止",
9+
// 関数宣言文以外は hoisting 避けのため禁止
1010
"no-use-before-define": [2, "nofunc"],
1111

12-
"//": "この形式のキャストはくっついていないと読みづらい",
12+
// この形式のキャストはくっついていないと読みづらい
1313
"space-infix-ops": [2, { "int32Hint": false }],
1414

15-
"//": "ガード節の読みやすさを重視して、一行の場合のみ許可する",
15+
// ガード節の読みやすさを重視して、一行の場合のみ許可する
1616
"curly": [2, "multi-line"]
1717
}
1818
}

public/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"expect": false
99
},
1010
"rules": {
11-
"//": "chai の expect 構文が誤警告になるため無視",
11+
// chai の expect 構文が誤警告になるため無視
1212
"no-unused-expressions": 0
1313
}
1414
}

public/stage6/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"rules": {
3-
"//": "シャレオツコードの意図が undefined 代入だとわかりやすいので許可",
3+
// シャレオツコードの意図が undefined 代入だとわかりやすいので許可
44
"no-undef-init": 0
55
},
66
"globals": {

public/stage7/.eslintrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"rules": {
3-
"//": "undefined 上書き問題のため、明示的な undefined 代入を許可",
3+
// undefined 上書き問題のため、明示的な undefined 代入を許可
44
"no-undef-init": 0,
55

6-
"//": "== 演算子の振る舞いの問題の警告は誤警告",
6+
// == 演算子の振る舞いの問題の警告は誤警告
77
"yoda": 0,
88

9-
"//": "truthy, falsey を判定する問題のため、定数式を許可",
9+
// truthy, falsey を判定する問題のため、定数式を許可
1010
"no-constant-condition": 0
1111
},
1212
"globals": {

0 commit comments

Comments
 (0)