@book000/eslint-config 1.14.62 → 1.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +16 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -98,6 +98,22 @@ export default tseslint.config(
|
|
|
98
98
|
],
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
|
+
{
|
|
102
|
+
// Vue コンポーネントは PascalCase の命名規則が慣習であるため、
|
|
103
|
+
// .vue ファイルに限り pascalCase を適用する。
|
|
104
|
+
// unicorn/filename-case のルールは ESLint flat config の「最後に定義したルールが勝つ」
|
|
105
|
+
// 仕様により、プロジェクト側でオーバーライドするとここで設定した checkDirectories: false
|
|
106
|
+
// も上書きされてしまう。
|
|
107
|
+
// そのため、プロジェクト側で filename-case を再定義せずにこのデフォルト設定を
|
|
108
|
+
// 使い続けられるよう、あらかじめ checkDirectories: false も含めて設定する。
|
|
109
|
+
files: ["**/*.vue"],
|
|
110
|
+
rules: {
|
|
111
|
+
"unicorn/filename-case": [
|
|
112
|
+
"error",
|
|
113
|
+
{ case: "pascalCase", checkDirectories: false },
|
|
114
|
+
],
|
|
115
|
+
},
|
|
116
|
+
},
|
|
101
117
|
{
|
|
102
118
|
ignores: ["dist", "output", "node_modules", "data", "logs", "coverage"],
|
|
103
119
|
},
|