@primer/stylelint-config 13.2.2-rc.8eed624 → 13.2.3-rc.ddad505

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  var browsers = require('@github/browserslist-config');
4
4
  var stylelint = require('stylelint');
5
- var declarationValueIndex = require('stylelint/lib/utils/declarationValueIndex.cjs');
5
+ var nodeFieldIndices_cjs = require('stylelint/lib/utils/nodeFieldIndices.cjs');
6
6
  var valueParser = require('postcss-value-parser');
7
7
  var node_module = require('node:module');
8
8
  var matchAll = require('string.prototype.matchall');
@@ -233,8 +233,8 @@ const ruleFunction$4 = primary => {
233
233
  };
234
234
  }
235
235
  report$4({
236
- index: declarationValueIndex(declNode) + node.sourceIndex,
237
- endIndex: declarationValueIndex(declNode) + node.sourceIndex + node.value.length,
236
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode) + node.sourceIndex,
237
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + node.sourceIndex + node.value.length,
238
238
  message: messages$6.rejected(node.value, replacement, prop),
239
239
  node: declNode,
240
240
  result,
@@ -324,8 +324,8 @@ const ruleFunction$3 = primary => {
324
324
  }
325
325
 
326
326
  report$3({
327
- index: declarationValueIndex(declNode),
328
- endIndex: declarationValueIndex(declNode) + value.length,
327
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode),
328
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + value.length,
329
329
  message: messages$5.rejected(value, replacement),
330
330
  node: declNode,
331
331
  result,
@@ -440,8 +440,8 @@ const ruleFunction$2 = primary => {
440
440
  : valueNode.value;
441
441
 
442
442
  report$2({
443
- index: declarationValueIndex(declNode) + valueNode.sourceIndex,
444
- endIndex: declarationValueIndex(declNode) + valueNode.sourceEndIndex,
443
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode) + valueNode.sourceIndex,
444
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + valueNode.sourceEndIndex,
445
445
  message: messages$4.rejected(rejectedValue, propType(prop)),
446
446
  node: declNode,
447
447
  result,
@@ -488,8 +488,8 @@ const ruleFunction$2 = primary => {
488
488
  }
489
489
 
490
490
  report$2({
491
- index: declarationValueIndex(declNode) + valueNode.sourceIndex,
492
- endIndex: declarationValueIndex(declNode) + valueNode.sourceEndIndex,
491
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode) + valueNode.sourceIndex,
492
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + valueNode.sourceEndIndex,
493
493
  message: messages$4.rejected(`var(${valueNode.value})`, propType(prop)),
494
494
  node: declNode,
495
495
  result,
@@ -565,7 +565,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
565
565
  case 'px':
566
566
  if (parseInt(valueUnit.number) > 320) {
567
567
  problems.push({
568
- index: declarationValueIndex(decl) + node.sourceIndex,
568
+ index: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex,
569
569
  message: messages$3.rejected(node.value),
570
570
  });
571
571
  }
@@ -573,7 +573,7 @@ var responsiveWidths = stylelint.createPlugin(ruleName$3, (enabled, options = {}
573
573
  case 'vw':
574
574
  if (parseInt(valueUnit.number) > 100) {
575
575
  problems.push({
576
- index: declarationValueIndex(decl) + node.sourceIndex,
576
+ index: nodeFieldIndices_cjs.declarationValueIndex(decl) + node.sourceIndex,
577
577
  message: messages$3.rejected(node.value),
578
578
  });
579
579
  }
@@ -689,8 +689,8 @@ const ruleFunction$1 = primary => {
689
689
  };
690
690
  }
691
691
  report$1({
692
- index: declarationValueIndex(declNode) + node.sourceIndex,
693
- endIndex: declarationValueIndex(declNode) + node.sourceIndex + node.value.length,
692
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode) + node.sourceIndex,
693
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + node.sourceIndex + node.value.length,
694
694
  message: messages$2.rejected(node.value, replacement),
695
695
  node: declNode,
696
696
  result,
@@ -862,8 +862,8 @@ const ruleFunction = primary => {
862
862
  }
863
863
 
864
864
  report({
865
- index: declarationValueIndex(declNode),
866
- endIndex: declarationValueIndex(declNode) + value.length,
865
+ index: nodeFieldIndices_cjs.declarationValueIndex(declNode),
866
+ endIndex: nodeFieldIndices_cjs.declarationValueIndex(declNode) + value.length,
867
867
  message: messages$1.rejected(value, replacement, prop),
868
868
  node: declNode,
869
869
  result,
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import browsers from '@github/browserslist-config';
2
2
  import stylelint from 'stylelint';
3
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs';
3
+ import { declarationValueIndex } from 'stylelint/lib/utils/nodeFieldIndices.cjs';
4
4
  import valueParser from 'postcss-value-parser';
5
5
  import { createRequire } from 'node:module';
6
6
  import matchAll from 'string.prototype.matchall';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "13.2.2-rc.8eed624",
3
+ "version": "13.2.3-rc.ddad505",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "author": "GitHub, Inc.",
6
6
  "license": "MIT",
@@ -49,14 +49,14 @@
49
49
  "string.prototype.matchall": "^4.0.2",
50
50
  "stylelint": "^16.3.1",
51
51
  "stylelint-browser-compat": "^1.0.0-beta.140",
52
- "stylelint-config-standard": "^36.0.0",
52
+ "stylelint-config-standard": "^37.0.0",
53
53
  "stylelint-scss": "^6.2.0",
54
54
  "stylelint-value-no-unknown-custom-properties": "^6.0.1"
55
55
  },
56
56
  "prettier": "@github/prettier-config",
57
57
  "devDependencies": {
58
58
  "@changesets/changelog-github": "^0.5.0",
59
- "@changesets/cli": "2.27.9",
59
+ "@changesets/cli": "2.27.10",
60
60
  "@github/prettier-config": "^0.0.6",
61
61
  "@primer/primitives": "^10.0.0-rc.e5d395ea",
62
62
  "@rollup/plugin-commonjs": "^28.0.0",
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import valueParser from 'postcss-value-parser'
4
4
  import {walkGroups, primitivesVariables} from './lib/utils.js'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import {primitivesVariables} from './lib/utils.js'
4
4
 
5
5
  const {
package/plugins/colors.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import {primitivesVariables, hasValidColor} from './lib/utils.js'
4
4
  import valueParser from 'postcss-value-parser'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import valueParser from 'postcss-value-parser'
4
4
 
5
5
  export const ruleName = 'primer/responsive-widths'
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import valueParser from 'postcss-value-parser'
4
4
  import {primitivesVariables, walkGroups} from './lib/utils.js'
5
5
 
@@ -1,5 +1,5 @@
1
1
  import stylelint from 'stylelint'
2
- import declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'
2
+ import {declarationValueIndex} from 'stylelint/lib/utils/nodeFieldIndices.cjs'
3
3
  import {primitivesVariables} from './lib/utils.js'
4
4
 
5
5
  const {