@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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +52 -2
  3. package/package.json +3 -3
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 D-ZERO Co., Ltd.
3
+ Copyright (c) 2024 D-ZERO Co., Ltd.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.17",
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.17",
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": "0fbc8d97c4bdd7f01f3eeeb0620020e1baf6f712"
34
+ "gitHead": "cd48829b16eb5fb76fb041265a6e062c8c3f27f9"
35
35
  }