@d-zero/stylelint-rules 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.
|
@@ -60,15 +60,11 @@ export default createRule({
|
|
|
60
60
|
const matched = matchesStringOrRegExp(raw, checkList);
|
|
61
61
|
if (matched) {
|
|
62
62
|
const word = matched.substring;
|
|
63
|
-
const index = raw.indexOf(word);
|
|
64
|
-
const endIndex = index + word.length;
|
|
65
63
|
stylelint.utils.report({
|
|
66
64
|
result,
|
|
67
65
|
ruleName,
|
|
68
66
|
message: messages.rejected(word, node.valueType),
|
|
69
67
|
node: decl,
|
|
70
|
-
index,
|
|
71
|
-
endIndex,
|
|
72
68
|
word,
|
|
73
69
|
});
|
|
74
70
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d-zero/stylelint-rules",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Rules of Stylelint for D-ZERO",
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/d-zero-dev/linters.git",
|
|
8
|
+
"directory": "packages/@d-zero/stylelint-rules"
|
|
9
|
+
},
|
|
6
10
|
"author": "D-ZERO Co., Ltd.",
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"publishConfig": {
|
|
@@ -22,14 +26,14 @@
|
|
|
22
26
|
"build": "tsc"
|
|
23
27
|
},
|
|
24
28
|
"dependencies": {
|
|
25
|
-
"@d-zero/csstree-scss-syntax": "5.
|
|
29
|
+
"@d-zero/csstree-scss-syntax": "5.1.0",
|
|
26
30
|
"css-tree": "3.1.0",
|
|
27
31
|
"postcss-selector-parser": "7.1.1",
|
|
28
32
|
"postcss-value-parser": "4.2.0",
|
|
29
|
-
"stylelint": "
|
|
33
|
+
"stylelint": "17.4.0"
|
|
30
34
|
},
|
|
31
35
|
"devDependencies": {
|
|
32
36
|
"postcss": "8.5.6"
|
|
33
37
|
},
|
|
34
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "645a686188fe078102000e8d59860ec33f2ed750"
|
|
35
39
|
}
|