@d-zero/stylelint-config 5.0.0-alpha.17 → 5.0.0-alpha.18
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 +52 -2
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,54 @@
|
|
|
1
1
|
# `@d-zero/stylelint-config`
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
## 個別インストール
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
yarn add -D @d-zero/stylelint-config
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
## 使い方
|
|
10
|
+
|
|
11
|
+
`.stylelintrc`を作成し、[`extends`](https://stylelint.io/user-guide/configure#extends)機能を使って読み込みます。
|
|
12
|
+
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"extends": ["@d-zero/stylelint-config"]
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### 拡張
|
|
20
|
+
|
|
21
|
+
プロジェクトに合わせて設定を追加します。
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"extends": "@d-zero/stylelint-config",
|
|
26
|
+
"rules": {
|
|
27
|
+
// 例: @ルールで未知のルールを許可する
|
|
28
|
+
"at-rule-no-unknown": null
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 種類別プリセット
|
|
34
|
+
|
|
35
|
+
| パッケージパス | 用途 |
|
|
36
|
+
| --------------------------------- | ---------------- |
|
|
37
|
+
| `@d-zero/stylelint-config` | フルセット |
|
|
38
|
+
| `@d-zero/stylelint-config/base` | 基本セット |
|
|
39
|
+
| `@d-zero/stylelint-config/name` | 命名規則 |
|
|
40
|
+
| `@d-zero/stylelint-config/order` | プロパティの順番 |
|
|
41
|
+
| `@d-zero/stylelint-config/values` | プロパティ値 |
|
|
42
|
+
| `@d-zero/stylelint-config/scss` | SCSS関連 |
|
|
43
|
+
|
|
44
|
+
`@d-zero/stylelint-config`はすべてのルールを含んでいるので、一部のルールのみを利用する場合は、それぞれ種類別のものを利用します。
|
|
45
|
+
|
|
46
|
+
```json
|
|
47
|
+
{
|
|
48
|
+
"extends": [
|
|
49
|
+
"@d-zero/stylelint-config/scss",
|
|
50
|
+
"@d-zero/stylelint-config/base",
|
|
51
|
+
"@d-zero/stylelint-config/values"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/stylelint-config",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.18",
|
|
4
4
|
"description": "Configurations of Stylelint",
|
|
5
5
|
"repository": "https://github.com/d-zero-dev/linters.git",
|
|
6
6
|
"author": "D-ZERO Co., Ltd.",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"main": "index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@d-zero/stylelint-rules": "5.0.0-alpha.
|
|
26
|
+
"@d-zero/stylelint-rules": "5.0.0-alpha.18",
|
|
27
27
|
"postcss-scss": "4.0.9",
|
|
28
28
|
"stylelint": "16.2.1",
|
|
29
29
|
"stylelint-config-recess-order": "5.0.0",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"stylelint-order": "6.0.4",
|
|
32
32
|
"stylelint-scss": "6.2.1"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "cd48829b16eb5fb76fb041265a6e062c8c3f27f9"
|
|
35
35
|
}
|