@primer/stylelint-config 13.4.2-rc.aac08a6 → 13.4.2-rc.dae4ea4
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 +3 -0
- package/dist/index.mjs +7 -4
- package/package.json +10 -9
package/dist/index.cjs
CHANGED
|
@@ -1089,6 +1089,9 @@ var index = {
|
|
|
1089
1089
|
'length-zero-no-unit': null,
|
|
1090
1090
|
'selector-max-type': null,
|
|
1091
1091
|
'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,
|
|
1092
1095
|
},
|
|
1093
1096
|
},
|
|
1094
1097
|
{
|
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 = [];
|
|
@@ -35,7 +35,7 @@ function primitivesVariables(type) {
|
|
|
35
35
|
|
|
36
36
|
for (const file of files) {
|
|
37
37
|
// eslint-disable-next-line import/no-dynamic-require
|
|
38
|
-
const data = require$
|
|
38
|
+
const data = require$2(`@primer/primitives/dist/styleLint/${file}`);
|
|
39
39
|
|
|
40
40
|
for (const key of Object.keys(data)) {
|
|
41
41
|
const token = data[key];
|
|
@@ -946,7 +946,7 @@ var noDisplayColors = stylelint.createPlugin(ruleName, (enabled, options = {}) =
|
|
|
946
946
|
|
|
947
947
|
function noop() {}
|
|
948
948
|
|
|
949
|
-
const require = createRequire(import.meta.url);
|
|
949
|
+
const require$1 = createRequire(import.meta.url);
|
|
950
950
|
|
|
951
951
|
/** @type {import('stylelint').Config} */
|
|
952
952
|
var index = {
|
|
@@ -989,7 +989,7 @@ var index = {
|
|
|
989
989
|
'@primer/primitives/dist/css/functional/typography/typography.css',
|
|
990
990
|
'@primer/primitives/dist/css/base/size/size.css',
|
|
991
991
|
'@primer/primitives/dist/css/base/typography/typography.css',
|
|
992
|
-
].map(path => require.resolve(path)),
|
|
992
|
+
].map(path => require$1.resolve(path)),
|
|
993
993
|
},
|
|
994
994
|
],
|
|
995
995
|
'custom-property-pattern': null,
|
|
@@ -1086,6 +1086,9 @@ var index = {
|
|
|
1086
1086
|
'length-zero-no-unit': null,
|
|
1087
1087
|
'selector-max-type': null,
|
|
1088
1088
|
'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,
|
|
1089
1092
|
},
|
|
1090
1093
|
},
|
|
1091
1094
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/stylelint-config",
|
|
3
|
-
"version": "13.4.2-rc.
|
|
3
|
+
"version": "13.4.2-rc.dae4ea4",
|
|
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": "^39.0.1",
|
|
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.4.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"
|