@d-zero/stylelint-rules 5.0.0-alpha.55 → 5.0.0-alpha.57

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.
@@ -40,6 +40,7 @@ describe('Exact Match', () => {
40
40
  severity: 'error',
41
41
  text: 'クラス名がファイル名と一致しません',
42
42
  url: undefined,
43
+ fix: undefined,
43
44
  },
44
45
  {
45
46
  column: 1,
@@ -50,6 +51,7 @@ describe('Exact Match', () => {
50
51
  severity: 'error',
51
52
  text: 'セレクタの定義は1つだけです',
52
53
  url: undefined,
54
+ fix: undefined,
53
55
  },
54
56
  ]);
55
57
  });
@@ -44,6 +44,7 @@ describe('length-pattern', () => {
44
44
  endColumn: 19,
45
45
  text: 'Unexpected value "10px" for type "length" (@d-zero/declaration-value-type-disallowed-list)',
46
46
  url: undefined,
47
+ fix: undefined,
47
48
  },
48
49
  ]);
49
50
  });
@@ -35,12 +35,15 @@ function _getValueType(prop, value) {
35
35
  cssTreeDecl = CSSTree.lexer.matchProperty(prop, value);
36
36
  }
37
37
  const values = valueAst.nodes.filter((node) => node.type === 'string' || node.type === 'function' || node.type === 'word');
38
+ // @ts-ignore
38
39
  const props = cssTreeDecl.matched;
39
40
  if (props === null) {
40
41
  return null;
41
42
  }
42
43
  const valueTypes = props.match
44
+ // @ts-ignore
43
45
  .flatMap((node) => getValueNode(node))
46
+ // @ts-ignore
44
47
  .map((node) => node.syntax.name);
45
48
  return values.map((value, i) => {
46
49
  const valueType = valueTypes[i] ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/stylelint-rules",
3
- "version": "5.0.0-alpha.55",
3
+ "version": "5.0.0-alpha.57",
4
4
  "description": "Rules of Stylelint for D-ZERO",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -23,14 +23,14 @@
23
23
  "build": "tsc"
24
24
  },
25
25
  "dependencies": {
26
- "@d-zero/csstree-scss-syntax": "5.0.0-alpha.55",
26
+ "@d-zero/csstree-scss-syntax": "5.0.0-alpha.57",
27
27
  "css-tree": "3.1.0",
28
- "postcss-selector-parser": "7.0.0",
28
+ "postcss-selector-parser": "7.1.0",
29
29
  "postcss-value-parser": "4.2.0",
30
- "stylelint": "16.12.0"
30
+ "stylelint": "16.14.1"
31
31
  },
32
32
  "devDependencies": {
33
- "postcss": "8.4.49"
33
+ "postcss": "8.5.1"
34
34
  },
35
- "gitHead": "566dd038b0c911ed3499e03e0f61b861afdde14b"
35
+ "gitHead": "ee8b42f668a5c6171f2fd10bb3dd03c43c74922f"
36
36
  }