@d-zero/eslint-config 5.0.0-alpha.17 → 5.0.0-alpha.19
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/LICENSE +1 -1
- package/README.md +39 -2
- package/package.json +4 -4
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
# `@d-zero/eslint-config`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
## 個別インストール
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
yarn add -D @d-zero/eslint-config
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 使い方
|
|
10
|
+
|
|
11
|
+
`.eslintrc`を作成し、[`extends`](https://eslint.org/docs/latest/use/configure/configuration-files#extending-configuration-files)機能を使って読み込みます。
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"extends": ["@d-zero/eslint-config"]
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### 拡張
|
|
20
|
+
|
|
21
|
+
プロジェクトに合わせて設定を追加します。
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"extends": ["@d-zero/eslint-config"],
|
|
26
|
+
"rules": {
|
|
27
|
+
// 例: console.logを許可する
|
|
28
|
+
"no-console": 0
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## JavaScriptのみ
|
|
34
|
+
|
|
35
|
+
:warning: TypeScriptを利用**しない**場合は、`@d-zero/eslint-config`の代わりに`@d-zero/eslint-config/base`を利用します。
|
|
36
|
+
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"extends": ["@d-zero/eslint-config/base"]
|
|
40
|
+
}
|
|
41
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/eslint-config",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.19",
|
|
4
4
|
"description": "Configurations of ESLint",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/linters.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
28
|
-
"@typescript-eslint/parser": "7.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "7.3.1",
|
|
28
|
+
"@typescript-eslint/parser": "7.3.1",
|
|
29
29
|
"eslint": "8.57.0",
|
|
30
30
|
"eslint-plugin-eslint-comments": "3.2.0",
|
|
31
31
|
"eslint-plugin-import": "2.29.1",
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"eslint-plugin-sort-class-members": "1.20.0",
|
|
35
35
|
"eslint-plugin-unicorn": "51.0.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "6412911b34fa89cf326259dd356563838532adea"
|
|
38
38
|
}
|