@primer/stylelint-config 13.3.0 → 13.3.1-rc.963f82a

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/dist/index.cjs CHANGED
@@ -566,6 +566,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
566
566
  if (parseInt(valueUnit.number) > 320) {
567
567
  problems.push({
568
568
  index: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex,
569
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex + node.value.length,
569
570
  message: messages$3.rejected(node.value),
570
571
  });
571
572
  }
@@ -574,6 +575,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
574
575
  if (parseInt(valueUnit.number) > 100) {
575
576
  problems.push({
576
577
  index: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex,
578
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex + node.value.length,
577
579
  message: messages$3.rejected(node.value),
578
580
  });
579
581
  }
@@ -585,6 +587,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
585
587
  for (const err of problems) {
586
588
  stylelint.utils.report({
587
589
  index: err.index,
590
+ endIndex: err.endIndex,
588
591
  message: err.message,
589
592
  node: decl,
590
593
  result,
package/dist/index.mjs CHANGED
@@ -563,6 +563,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
563
563
  if (parseInt(valueUnit.number) > 320) {
564
564
  problems.push({
565
565
  index: declarationValueIndex(decl) + node.sourceIndex,
566
+ endIndex: declarationValueIndex(decl) + node.sourceIndex + node.value.length,
566
567
  message: messages$3.rejected(node.value),
567
568
  });
568
569
  }
@@ -571,6 +572,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
571
572
  if (parseInt(valueUnit.number) > 100) {
572
573
  problems.push({
573
574
  index: declarationValueIndex(decl) + node.sourceIndex,
575
+ endIndex: declarationValueIndex(decl) + node.sourceIndex + node.value.length,
574
576
  message: messages$3.rejected(node.value),
575
577
  });
576
578
  }
@@ -582,6 +584,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
582
584
  for (const err of problems) {
583
585
  stylelint.utils.report({
584
586
  index: err.index,
587
+ endIndex: err.endIndex,
585
588
  message: err.message,
586
589
  node: decl,
587
590
  result,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "13.3.0",
3
+ "version": "13.3.1-rc.963f82a",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "author": "GitHub, Inc.",
6
6
  "license": "MIT",
@@ -47,9 +47,9 @@
47
47
  "postcss-styled-syntax": "^0.7.0",
48
48
  "postcss-value-parser": "^4.0.2",
49
49
  "string.prototype.matchall": "^4.0.2",
50
- "stylelint": "^16.11.0",
50
+ "stylelint": "^16.20.0",
51
51
  "stylelint-browser-compat": "^1.0.0-beta.140",
52
- "stylelint-config-standard": "^37.0.0",
52
+ "stylelint-config-standard": "^38.0.0",
53
53
  "stylelint-scss": "^6.2.0",
54
54
  "stylelint-value-no-unknown-custom-properties": "^6.0.1"
55
55
  },
@@ -60,6 +60,7 @@ export default stylelint.createPlugin(ruleName, (enabled, options = {}, context)
60
60
  if (parseInt(valueUnit.number) > 320) {
61
61
  problems.push({
62
62
  index: declarationValueIndex(decl) + node.sourceIndex,
63
+ endIndex: declarationValueIndex(decl) + node.sourceIndex + node.value.length,
63
64
  message: messages.rejected(node.value),
64
65
  })
65
66
  }
@@ -68,6 +69,7 @@ export default stylelint.createPlugin(ruleName, (enabled, options = {}, context)
68
69
  if (parseInt(valueUnit.number) > 100) {
69
70
  problems.push({
70
71
  index: declarationValueIndex(decl) + node.sourceIndex,
72
+ endIndex: declarationValueIndex(decl) + node.sourceIndex + node.value.length,
71
73
  message: messages.rejected(node.value),
72
74
  })
73
75
  }
@@ -79,6 +81,7 @@ export default stylelint.createPlugin(ruleName, (enabled, options = {}, context)
79
81
  for (const err of problems) {
80
82
  stylelint.utils.report({
81
83
  index: err.index,
84
+ endIndex: err.endIndex,
82
85
  message: err.message,
83
86
  node: decl,
84
87
  result,