@d-zero/stylelint-config 5.0.0 → 5.1.0
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/name.js +4 -1
- package/package.json +13 -9
package/name.js
CHANGED
|
@@ -22,13 +22,16 @@ module.exports = {
|
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
'selector-nested-pattern': [
|
|
25
|
-
'^[
|
|
25
|
+
'^[^.&]+.*|^&(?:\\s|\\.|\\[|:|#)',
|
|
26
26
|
{
|
|
27
27
|
/**
|
|
28
28
|
* @param {string} selector
|
|
29
29
|
* @returns {string}
|
|
30
30
|
*/
|
|
31
31
|
message: (selector) => {
|
|
32
|
+
if (selector.startsWith('&')) {
|
|
33
|
+
return `Stylelint v17以降「&」を使ったセレクタの文字列結合に対応しなくなったため、「&」の使用を禁止します: ${selector}`;
|
|
34
|
+
}
|
|
32
35
|
return `コンポーネントのスタイル定義の中で別のコンポーネントを定義してはいけません: ${selector}`;
|
|
33
36
|
},
|
|
34
37
|
},
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/stylelint-config",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Configurations of Stylelint",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/d-zero-dev/linters.git",
|
|
8
|
+
"directory": "packages/@d-zero/stylelint-config"
|
|
9
|
+
},
|
|
6
10
|
"author": "D-ZERO Co., Ltd.",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"publishConfig": {
|
|
@@ -25,14 +29,14 @@
|
|
|
25
29
|
],
|
|
26
30
|
"main": "index.js",
|
|
27
31
|
"dependencies": {
|
|
28
|
-
"@d-zero/stylelint-rules": "5.
|
|
32
|
+
"@d-zero/stylelint-rules": "5.1.0",
|
|
29
33
|
"postcss-scss": "4.0.9",
|
|
30
|
-
"stylelint": "
|
|
31
|
-
"stylelint-config-recess-order": "7.
|
|
32
|
-
"stylelint-config-standard": "
|
|
34
|
+
"stylelint": "17.4.0",
|
|
35
|
+
"stylelint-config-recess-order": "7.6.1",
|
|
36
|
+
"stylelint-config-standard": "40.0.0",
|
|
33
37
|
"stylelint-order": "7.0.1",
|
|
34
|
-
"stylelint-scss": "
|
|
35
|
-
"stylelint-use-logical": "2.1.
|
|
38
|
+
"stylelint-scss": "7.0.0",
|
|
39
|
+
"stylelint-use-logical": "2.1.3"
|
|
36
40
|
},
|
|
37
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "645a686188fe078102000e8d59860ec33f2ed750"
|
|
38
42
|
}
|