@primer/stylelint-config 0.0.0-20260129214427 → 0.0.0-20260129214855

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
@@ -20,7 +20,6 @@ function primitivesVariables(type) {
20
20
  break
21
21
  case 'border':
22
22
  files.push('functional/size/border.json');
23
- files.push('functional/size/radius.json');
24
23
  files.push('functional/themes/light.json');
25
24
  break
26
25
  case 'typography':
@@ -983,7 +982,6 @@ var index = {
983
982
  importFrom: [
984
983
  '@primer/primitives/dist/css/functional/size/size-coarse.css',
985
984
  '@primer/primitives/dist/css/functional/size/border.css',
986
- '@primer/primitives/dist/css/functional/size/radius.css',
987
985
  '@primer/primitives/dist/css/functional/size/size.css',
988
986
  '@primer/primitives/dist/css/functional/size/size-fine.css',
989
987
  '@primer/primitives/dist/css/functional/size/breakpoints.css',
@@ -1089,9 +1087,6 @@ var index = {
1089
1087
  'length-zero-no-unit': null,
1090
1088
  'selector-max-type': null,
1091
1089
  'primer/colors': null,
1092
- // Disable nesting-selector-no-missing-scoping-root for CSS-in-JS
1093
- // In styled-components, the & selector is valid and refers to the component itself
1094
- 'nesting-selector-no-missing-scoping-root': null,
1095
1090
  },
1096
1091
  },
1097
1092
  {
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import valueParser from 'postcss-value-parser';
5
5
  import { createRequire } from 'node:module';
6
6
  import matchAll from 'string.prototype.matchall';
7
7
 
8
- const require$1 = createRequire(import.meta.url);
8
+ const require$2 = createRequire(import.meta.url);
9
9
 
10
10
  function primitivesVariables(type) {
11
11
  const variables = [];
@@ -17,7 +17,6 @@ function primitivesVariables(type) {
17
17
  break
18
18
  case 'border':
19
19
  files.push('functional/size/border.json');
20
- files.push('functional/size/radius.json');
21
20
  files.push('functional/themes/light.json');
22
21
  break
23
22
  case 'typography':
@@ -35,7 +34,7 @@ function primitivesVariables(type) {
35
34
 
36
35
  for (const file of files) {
37
36
  // eslint-disable-next-line import/no-dynamic-require
38
- const data = require$1(`@primer/primitives/dist/styleLint/${file}`);
37
+ const data = require$2(`@primer/primitives/dist/styleLint/${file}`);
39
38
 
40
39
  for (const key of Object.keys(data)) {
41
40
  const token = data[key];
@@ -946,7 +945,7 @@ var noDisplayColors = stylelint.createPlugin(ruleName, (enabled, options = {}) =
946
945
 
947
946
  function noop() {}
948
947
 
949
- const require = createRequire(import.meta.url);
948
+ const require$1 = createRequire(import.meta.url);
950
949
 
951
950
  /** @type {import('stylelint').Config} */
952
951
  var index = {
@@ -980,7 +979,6 @@ var index = {
980
979
  importFrom: [
981
980
  '@primer/primitives/dist/css/functional/size/size-coarse.css',
982
981
  '@primer/primitives/dist/css/functional/size/border.css',
983
- '@primer/primitives/dist/css/functional/size/radius.css',
984
982
  '@primer/primitives/dist/css/functional/size/size.css',
985
983
  '@primer/primitives/dist/css/functional/size/size-fine.css',
986
984
  '@primer/primitives/dist/css/functional/size/breakpoints.css',
@@ -989,7 +987,7 @@ var index = {
989
987
  '@primer/primitives/dist/css/functional/typography/typography.css',
990
988
  '@primer/primitives/dist/css/base/size/size.css',
991
989
  '@primer/primitives/dist/css/base/typography/typography.css',
992
- ].map(path => require.resolve(path)),
990
+ ].map(path => require$1.resolve(path)),
993
991
  },
994
992
  ],
995
993
  'custom-property-pattern': null,
@@ -1086,9 +1084,6 @@ var index = {
1086
1084
  'length-zero-no-unit': null,
1087
1085
  'selector-max-type': null,
1088
1086
  'primer/colors': null,
1089
- // Disable nesting-selector-no-missing-scoping-root for CSS-in-JS
1090
- // In styled-components, the & selector is valid and refers to the component itself
1091
- 'nesting-selector-no-missing-scoping-root': null,
1092
1087
  },
1093
1088
  },
1094
1089
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "0.0.0-20260129214427",
3
+ "version": "0.0.0-20260129214855",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "author": "GitHub, Inc.",
6
6
  "license": "MIT",
@@ -49,7 +49,7 @@
49
49
  "string.prototype.matchall": "^4.0.2",
50
50
  "stylelint": "^16.20.0",
51
51
  "stylelint-browser-compat": "^1.0.0-beta.140",
52
- "stylelint-config-standard": "^39.0.1",
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
  },
@@ -59,18 +59,19 @@
59
59
  "@changesets/cli": "2.29.8",
60
60
  "@github/prettier-config": "^0.0.6",
61
61
  "@primer/primitives": "^11.4.0",
62
- "@rollup/plugin-commonjs": "^28.0.0",
62
+ "@rollup/plugin-commonjs": "^29.0.0",
63
63
  "@rollup/plugin-json": "^6.1.0",
64
- "@rollup/plugin-node-resolve": "^15.2.3",
64
+ "@rollup/plugin-node-resolve": "^16.0.3",
65
65
  "@typescript-eslint/parser": "^8.0.1",
66
66
  "dedent": "^1.5.3",
67
67
  "eslint": "^8.57.1",
68
- "eslint-plugin-github": "^5.0.1",
68
+ "eslint-plugin-github": "^6.0.0",
69
69
  "eslint-plugin-import": "^2.29.1",
70
- "eslint-plugin-jest": "^28.2.0",
70
+ "eslint-plugin-jest": "^29.2.1",
71
71
  "eslint-plugin-prettier": "^5.1.3",
72
- "jest": "^29.7.0",
73
- "jest-preset-stylelint": "^7.0.0",
72
+ "globals": "^17.2.0",
73
+ "jest": "^30.2.0",
74
+ "jest-preset-stylelint": "^8.0.0",
74
75
  "prettier": "^3.2.5",
75
76
  "rimraf": "^6.0.1",
76
77
  "rollup": "^4.21.1"
@@ -12,7 +12,6 @@ export function primitivesVariables(type) {
12
12
  break
13
13
  case 'border':
14
14
  files.push('functional/size/border.json')
15
- files.push('functional/size/radius.json')
16
15
  files.push('functional/themes/light.json')
17
16
  break
18
17
  case 'typography':