@primer/stylelint-config 0.0.0-20260129213610 → 0.0.0-20260129214035
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 +0 -3
- package/dist/index.mjs +4 -7
- package/package.json +10 -9
package/dist/index.cjs
CHANGED
|
@@ -1087,9 +1087,6 @@ var index = {
|
|
|
1087
1087
|
'length-zero-no-unit': null,
|
|
1088
1088
|
'selector-max-type': null,
|
|
1089
1089
|
'primer/colors': null,
|
|
1090
|
-
// Disable nesting-selector-no-missing-scoping-root for CSS-in-JS
|
|
1091
|
-
// In styled-components, the & selector is valid and refers to the component itself
|
|
1092
|
-
'nesting-selector-no-missing-scoping-root': null,
|
|
1093
1090
|
},
|
|
1094
1091
|
},
|
|
1095
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$
|
|
8
|
+
const require$2 = createRequire(import.meta.url);
|
|
9
9
|
|
|
10
10
|
function primitivesVariables(type) {
|
|
11
11
|
const variables = [];
|
|
@@ -34,7 +34,7 @@ function primitivesVariables(type) {
|
|
|
34
34
|
|
|
35
35
|
for (const file of files) {
|
|
36
36
|
// eslint-disable-next-line import/no-dynamic-require
|
|
37
|
-
const data = require$
|
|
37
|
+
const data = require$2(`@primer/primitives/dist/styleLint/${file}`);
|
|
38
38
|
|
|
39
39
|
for (const key of Object.keys(data)) {
|
|
40
40
|
const token = data[key];
|
|
@@ -945,7 +945,7 @@ var noDisplayColors = stylelint.createPlugin(ruleName, (enabled, options = {}) =
|
|
|
945
945
|
|
|
946
946
|
function noop() {}
|
|
947
947
|
|
|
948
|
-
const require = createRequire(import.meta.url);
|
|
948
|
+
const require$1 = createRequire(import.meta.url);
|
|
949
949
|
|
|
950
950
|
/** @type {import('stylelint').Config} */
|
|
951
951
|
var index = {
|
|
@@ -987,7 +987,7 @@ var index = {
|
|
|
987
987
|
'@primer/primitives/dist/css/functional/typography/typography.css',
|
|
988
988
|
'@primer/primitives/dist/css/base/size/size.css',
|
|
989
989
|
'@primer/primitives/dist/css/base/typography/typography.css',
|
|
990
|
-
].map(path => require.resolve(path)),
|
|
990
|
+
].map(path => require$1.resolve(path)),
|
|
991
991
|
},
|
|
992
992
|
],
|
|
993
993
|
'custom-property-pattern': null,
|
|
@@ -1084,9 +1084,6 @@ var index = {
|
|
|
1084
1084
|
'length-zero-no-unit': null,
|
|
1085
1085
|
'selector-max-type': null,
|
|
1086
1086
|
'primer/colors': null,
|
|
1087
|
-
// Disable nesting-selector-no-missing-scoping-root for CSS-in-JS
|
|
1088
|
-
// In styled-components, the & selector is valid and refers to the component itself
|
|
1089
|
-
'nesting-selector-no-missing-scoping-root': null,
|
|
1090
1087
|
},
|
|
1091
1088
|
},
|
|
1092
1089
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/stylelint-config",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20260129214035",
|
|
4
4
|
"description": "Sharable stylelint config used by GitHub's CSS",
|
|
5
5
|
"author": "GitHub, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,28 +49,29 @@
|
|
|
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": "^
|
|
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
|
},
|
|
56
56
|
"prettier": "@github/prettier-config",
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@changesets/changelog-github": "^0.5.0",
|
|
59
|
-
"@changesets/cli": "2.
|
|
59
|
+
"@changesets/cli": "2.29.8",
|
|
60
60
|
"@github/prettier-config": "^0.0.6",
|
|
61
61
|
"@primer/primitives": "^11.3.0",
|
|
62
|
-
"@rollup/plugin-commonjs": "^
|
|
62
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
63
63
|
"@rollup/plugin-json": "^6.1.0",
|
|
64
|
-
"@rollup/plugin-node-resolve": "^
|
|
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": "^
|
|
68
|
+
"eslint-plugin-github": "^6.0.0",
|
|
69
69
|
"eslint-plugin-import": "^2.29.1",
|
|
70
|
-
"eslint-plugin-jest": "^
|
|
70
|
+
"eslint-plugin-jest": "^29.2.1",
|
|
71
71
|
"eslint-plugin-prettier": "^5.1.3",
|
|
72
|
-
"
|
|
73
|
-
"jest
|
|
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"
|