@primer/stylelint-config 13.1.1 → 13.2.0-rc.8384c2a

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
@@ -8,179 +8,6 @@ var node_module = require('node:module');
8
8
  var matchAll = require('string.prototype.matchall');
9
9
 
10
10
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
11
- var propertyOrder = [
12
- 'all',
13
- 'position',
14
- 'top',
15
- 'right',
16
- 'bottom',
17
- 'left',
18
- 'z-index',
19
- 'display',
20
- 'float',
21
- 'width',
22
- 'min-width',
23
- 'max-width',
24
- 'height',
25
- 'min-height',
26
- 'max-height',
27
- 'box-sizing',
28
- 'padding',
29
- 'padding-top',
30
- 'padding-right',
31
- 'padding-bottom',
32
- 'padding-left',
33
- 'margin',
34
- 'margin-top',
35
- 'margin-right',
36
- 'margin-bottom',
37
- 'margin-left',
38
- 'overflow',
39
- 'overflow-x',
40
- 'overflow-y',
41
- 'clip',
42
- 'clear',
43
- 'font',
44
- 'font-family',
45
- 'font-size',
46
- 'font-style',
47
- 'font-weight',
48
- 'font-variant',
49
- 'font-size-adjust',
50
- 'font-stretch',
51
- 'font-effect',
52
- 'font-emphasize',
53
- 'font-emphasize-position',
54
- 'font-emphasize-style',
55
- 'font-smooth',
56
- 'hyphens',
57
- 'line-height',
58
- 'color',
59
- 'text-align',
60
- 'text-align-last',
61
- 'text-emphasis',
62
- 'text-emphasis-color',
63
- 'text-emphasis-style',
64
- 'text-emphasis-position',
65
- 'text-decoration',
66
- 'text-indent',
67
- 'text-justify',
68
- 'text-outline',
69
- 'text-overflow',
70
- 'text-overflow-ellipsis',
71
- 'text-overflow-mode',
72
- 'text-shadow',
73
- 'text-transform',
74
- 'text-wrap',
75
- 'letter-spacing',
76
- 'word-break',
77
- 'word-spacing',
78
- 'word-wrap',
79
- 'tab-size',
80
- 'white-space',
81
- 'vertical-align',
82
- 'list-style',
83
- 'list-style-position',
84
- 'list-style-type',
85
- 'list-style-image',
86
- 'pointer-events',
87
- 'fill',
88
- 'fill-opacity',
89
- 'stroke',
90
- 'stroke-opacity',
91
- 'stroke-width',
92
- 'shape-rendering',
93
- 'cursor',
94
- 'visibility',
95
- 'zoom',
96
- 'flex-direction',
97
- 'flex-order',
98
- 'flex-pack',
99
- 'flex-align',
100
- 'table-layout',
101
- 'empty-cells',
102
- 'caption-side',
103
- 'border-spacing',
104
- 'border-collapse',
105
- 'content',
106
- 'quotes',
107
- 'counter-reset',
108
- 'counter-increment',
109
- 'resize',
110
- 'user-select',
111
- 'nav-index',
112
- 'nav-up',
113
- 'nav-right',
114
- 'nav-down',
115
- 'nav-left',
116
- 'background',
117
- 'background-color',
118
- 'background-image',
119
- 'filter',
120
- 'background-repeat',
121
- 'background-attachment',
122
- 'background-position',
123
- 'background-position-x',
124
- 'background-position-y',
125
- 'background-clip',
126
- 'background-origin',
127
- 'background-size',
128
- 'border',
129
- 'border-color',
130
- 'border-style',
131
- 'border-width',
132
- 'border-top',
133
- 'border-top-color',
134
- 'border-top-style',
135
- 'border-top-width',
136
- 'border-right',
137
- 'border-right-color',
138
- 'border-right-style',
139
- 'border-right-width',
140
- 'border-bottom',
141
- 'border-bottom-color',
142
- 'border-bottom-style',
143
- 'border-bottom-width',
144
- 'border-left',
145
- 'border-left-color',
146
- 'border-left-style',
147
- 'border-left-width',
148
- 'border-radius',
149
- 'border-top-left-radius',
150
- 'border-top-right-radius',
151
- 'border-bottom-right-radius',
152
- 'border-bottom-left-radius',
153
- 'border-image',
154
- 'border-image-source',
155
- 'border-image-slice',
156
- 'border-image-width',
157
- 'border-image-outset',
158
- 'border-image-repeat',
159
- 'outline',
160
- 'outline-width',
161
- 'outline-style',
162
- 'outline-color',
163
- 'outline-offset',
164
- 'box-shadow',
165
- 'opacity',
166
- 'transition',
167
- 'transition-delay',
168
- 'transition-timing-function',
169
- 'transition-duration',
170
- 'transition-property',
171
- 'transform',
172
- 'transform-origin',
173
- 'animation',
174
- 'animation-name',
175
- 'animation-duration',
176
- 'animation-fill-mode',
177
- 'animation-play-state',
178
- 'animation-timing-function',
179
- 'animation-delay',
180
- 'animation-iteration-count',
181
- 'animation-direction',
182
- ];
183
-
184
11
  const require$2 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)));
185
12
 
186
13
  function primitivesVariables(type) {
@@ -1112,7 +939,6 @@ var index = {
1112
939
  plugins: [
1113
940
  'stylelint-value-no-unknown-custom-properties',
1114
941
  'stylelint-browser-compat',
1115
- 'stylelint-order',
1116
942
  borders,
1117
943
  boxShadow,
1118
944
  colors,
@@ -1169,7 +995,6 @@ var index = {
1169
995
  'no-duplicate-selectors': true,
1170
996
  'no-invalid-position-at-import-rule': [true, {ignoreAtRules: ['use']}],
1171
997
  'number-max-precision': null,
1172
- 'order/properties-order': propertyOrder,
1173
998
  'plugin/browser-compat': [
1174
999
  true,
1175
1000
  {
@@ -1211,6 +1036,7 @@ var index = {
1211
1036
  'keyframe-selector-notation': ['percentage-unless-within-keyword-only-block'],
1212
1037
  'media-query-no-invalid': null,
1213
1038
  'media-feature-range-notation': ['prefix'],
1039
+ 'comment-empty-line-before': null,
1214
1040
  },
1215
1041
  overrides: [
1216
1042
  {
@@ -1232,10 +1058,8 @@ var index = {
1232
1058
  files: ['**/*.tsx'],
1233
1059
  customSyntax: 'postcss-styled-syntax',
1234
1060
  rules: {
1235
- 'order/properties-order': null,
1236
1061
  'rule-empty-line-before': null,
1237
1062
  'declaration-empty-line-before': null,
1238
- 'comment-empty-line-before': null,
1239
1063
  'length-zero-no-unit': null,
1240
1064
  'selector-max-type': null,
1241
1065
  'primer/colors': null,
package/dist/index.mjs CHANGED
@@ -5,179 +5,6 @@ import valueParser from 'postcss-value-parser';
5
5
  import { createRequire } from 'node:module';
6
6
  import matchAll from 'string.prototype.matchall';
7
7
 
8
- var propertyOrder = [
9
- 'all',
10
- 'position',
11
- 'top',
12
- 'right',
13
- 'bottom',
14
- 'left',
15
- 'z-index',
16
- 'display',
17
- 'float',
18
- 'width',
19
- 'min-width',
20
- 'max-width',
21
- 'height',
22
- 'min-height',
23
- 'max-height',
24
- 'box-sizing',
25
- 'padding',
26
- 'padding-top',
27
- 'padding-right',
28
- 'padding-bottom',
29
- 'padding-left',
30
- 'margin',
31
- 'margin-top',
32
- 'margin-right',
33
- 'margin-bottom',
34
- 'margin-left',
35
- 'overflow',
36
- 'overflow-x',
37
- 'overflow-y',
38
- 'clip',
39
- 'clear',
40
- 'font',
41
- 'font-family',
42
- 'font-size',
43
- 'font-style',
44
- 'font-weight',
45
- 'font-variant',
46
- 'font-size-adjust',
47
- 'font-stretch',
48
- 'font-effect',
49
- 'font-emphasize',
50
- 'font-emphasize-position',
51
- 'font-emphasize-style',
52
- 'font-smooth',
53
- 'hyphens',
54
- 'line-height',
55
- 'color',
56
- 'text-align',
57
- 'text-align-last',
58
- 'text-emphasis',
59
- 'text-emphasis-color',
60
- 'text-emphasis-style',
61
- 'text-emphasis-position',
62
- 'text-decoration',
63
- 'text-indent',
64
- 'text-justify',
65
- 'text-outline',
66
- 'text-overflow',
67
- 'text-overflow-ellipsis',
68
- 'text-overflow-mode',
69
- 'text-shadow',
70
- 'text-transform',
71
- 'text-wrap',
72
- 'letter-spacing',
73
- 'word-break',
74
- 'word-spacing',
75
- 'word-wrap',
76
- 'tab-size',
77
- 'white-space',
78
- 'vertical-align',
79
- 'list-style',
80
- 'list-style-position',
81
- 'list-style-type',
82
- 'list-style-image',
83
- 'pointer-events',
84
- 'fill',
85
- 'fill-opacity',
86
- 'stroke',
87
- 'stroke-opacity',
88
- 'stroke-width',
89
- 'shape-rendering',
90
- 'cursor',
91
- 'visibility',
92
- 'zoom',
93
- 'flex-direction',
94
- 'flex-order',
95
- 'flex-pack',
96
- 'flex-align',
97
- 'table-layout',
98
- 'empty-cells',
99
- 'caption-side',
100
- 'border-spacing',
101
- 'border-collapse',
102
- 'content',
103
- 'quotes',
104
- 'counter-reset',
105
- 'counter-increment',
106
- 'resize',
107
- 'user-select',
108
- 'nav-index',
109
- 'nav-up',
110
- 'nav-right',
111
- 'nav-down',
112
- 'nav-left',
113
- 'background',
114
- 'background-color',
115
- 'background-image',
116
- 'filter',
117
- 'background-repeat',
118
- 'background-attachment',
119
- 'background-position',
120
- 'background-position-x',
121
- 'background-position-y',
122
- 'background-clip',
123
- 'background-origin',
124
- 'background-size',
125
- 'border',
126
- 'border-color',
127
- 'border-style',
128
- 'border-width',
129
- 'border-top',
130
- 'border-top-color',
131
- 'border-top-style',
132
- 'border-top-width',
133
- 'border-right',
134
- 'border-right-color',
135
- 'border-right-style',
136
- 'border-right-width',
137
- 'border-bottom',
138
- 'border-bottom-color',
139
- 'border-bottom-style',
140
- 'border-bottom-width',
141
- 'border-left',
142
- 'border-left-color',
143
- 'border-left-style',
144
- 'border-left-width',
145
- 'border-radius',
146
- 'border-top-left-radius',
147
- 'border-top-right-radius',
148
- 'border-bottom-right-radius',
149
- 'border-bottom-left-radius',
150
- 'border-image',
151
- 'border-image-source',
152
- 'border-image-slice',
153
- 'border-image-width',
154
- 'border-image-outset',
155
- 'border-image-repeat',
156
- 'outline',
157
- 'outline-width',
158
- 'outline-style',
159
- 'outline-color',
160
- 'outline-offset',
161
- 'box-shadow',
162
- 'opacity',
163
- 'transition',
164
- 'transition-delay',
165
- 'transition-timing-function',
166
- 'transition-duration',
167
- 'transition-property',
168
- 'transform',
169
- 'transform-origin',
170
- 'animation',
171
- 'animation-name',
172
- 'animation-duration',
173
- 'animation-fill-mode',
174
- 'animation-play-state',
175
- 'animation-timing-function',
176
- 'animation-delay',
177
- 'animation-iteration-count',
178
- 'animation-direction',
179
- ];
180
-
181
8
  const require$1 = createRequire(import.meta.url);
182
9
 
183
10
  function primitivesVariables(type) {
@@ -1109,7 +936,6 @@ var index = {
1109
936
  plugins: [
1110
937
  'stylelint-value-no-unknown-custom-properties',
1111
938
  'stylelint-browser-compat',
1112
- 'stylelint-order',
1113
939
  borders,
1114
940
  boxShadow,
1115
941
  colors,
@@ -1166,7 +992,6 @@ var index = {
1166
992
  'no-duplicate-selectors': true,
1167
993
  'no-invalid-position-at-import-rule': [true, {ignoreAtRules: ['use']}],
1168
994
  'number-max-precision': null,
1169
- 'order/properties-order': propertyOrder,
1170
995
  'plugin/browser-compat': [
1171
996
  true,
1172
997
  {
@@ -1208,6 +1033,7 @@ var index = {
1208
1033
  'keyframe-selector-notation': ['percentage-unless-within-keyword-only-block'],
1209
1034
  'media-query-no-invalid': null,
1210
1035
  'media-feature-range-notation': ['prefix'],
1036
+ 'comment-empty-line-before': null,
1211
1037
  },
1212
1038
  overrides: [
1213
1039
  {
@@ -1229,10 +1055,8 @@ var index = {
1229
1055
  files: ['**/*.tsx'],
1230
1056
  customSyntax: 'postcss-styled-syntax',
1231
1057
  rules: {
1232
- 'order/properties-order': null,
1233
1058
  'rule-empty-line-before': null,
1234
1059
  'declaration-empty-line-before': null,
1235
- 'comment-empty-line-before': null,
1236
1060
  'length-zero-no-unit': null,
1237
1061
  'selector-max-type': null,
1238
1062
  'primer/colors': null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "13.1.1",
3
+ "version": "13.2.0-rc.8384c2a",
4
4
  "description": "Sharable stylelint config used by GitHub's CSS",
5
5
  "author": "GitHub, Inc.",
6
6
  "license": "MIT",
@@ -26,7 +26,6 @@
26
26
  ],
27
27
  "files": [
28
28
  "dist/",
29
- "property-order.js",
30
29
  "plugins/"
31
30
  ],
32
31
  "engines": {
@@ -44,7 +43,6 @@
44
43
  },
45
44
  "dependencies": {
46
45
  "@github/browserslist-config": "^1.0.0",
47
- "@primer/primitives": "^9.0.1",
48
46
  "postcss-scss": "^4.0.2",
49
47
  "postcss-styled-syntax": "^0.6.4",
50
48
  "postcss-value-parser": "^4.0.2",
@@ -52,14 +50,13 @@
52
50
  "stylelint": "^16.3.1",
53
51
  "stylelint-browser-compat": "^1.0.0-beta.136",
54
52
  "stylelint-config-standard": "^36.0.0",
55
- "stylelint-order": "^6.0.4",
56
53
  "stylelint-scss": "^6.2.0",
57
54
  "stylelint-value-no-unknown-custom-properties": "^6.0.1"
58
55
  },
59
56
  "prettier": "@github/prettier-config",
60
57
  "devDependencies": {
61
58
  "@changesets/changelog-github": "^0.5.0",
62
- "@changesets/cli": "2.27.8",
59
+ "@changesets/cli": "2.27.9",
63
60
  "@github/prettier-config": "^0.0.6",
64
61
  "@rollup/plugin-commonjs": "^28.0.0",
65
62
  "@rollup/plugin-json": "^6.1.0",
@@ -77,6 +74,9 @@
77
74
  "rimraf": "^6.0.1",
78
75
  "rollup": "^4.21.1"
79
76
  },
77
+ "peerDependencies": {
78
+ "@primer/primitives": "9.x || 10.x"
79
+ },
80
80
  "jest": {
81
81
  "transform": {},
82
82
  "preset": "jest-preset-stylelint",
package/property-order.js DELETED
@@ -1,172 +0,0 @@
1
- export default [
2
- 'all',
3
- 'position',
4
- 'top',
5
- 'right',
6
- 'bottom',
7
- 'left',
8
- 'z-index',
9
- 'display',
10
- 'float',
11
- 'width',
12
- 'min-width',
13
- 'max-width',
14
- 'height',
15
- 'min-height',
16
- 'max-height',
17
- 'box-sizing',
18
- 'padding',
19
- 'padding-top',
20
- 'padding-right',
21
- 'padding-bottom',
22
- 'padding-left',
23
- 'margin',
24
- 'margin-top',
25
- 'margin-right',
26
- 'margin-bottom',
27
- 'margin-left',
28
- 'overflow',
29
- 'overflow-x',
30
- 'overflow-y',
31
- 'clip',
32
- 'clear',
33
- 'font',
34
- 'font-family',
35
- 'font-size',
36
- 'font-style',
37
- 'font-weight',
38
- 'font-variant',
39
- 'font-size-adjust',
40
- 'font-stretch',
41
- 'font-effect',
42
- 'font-emphasize',
43
- 'font-emphasize-position',
44
- 'font-emphasize-style',
45
- 'font-smooth',
46
- 'hyphens',
47
- 'line-height',
48
- 'color',
49
- 'text-align',
50
- 'text-align-last',
51
- 'text-emphasis',
52
- 'text-emphasis-color',
53
- 'text-emphasis-style',
54
- 'text-emphasis-position',
55
- 'text-decoration',
56
- 'text-indent',
57
- 'text-justify',
58
- 'text-outline',
59
- 'text-overflow',
60
- 'text-overflow-ellipsis',
61
- 'text-overflow-mode',
62
- 'text-shadow',
63
- 'text-transform',
64
- 'text-wrap',
65
- 'letter-spacing',
66
- 'word-break',
67
- 'word-spacing',
68
- 'word-wrap',
69
- 'tab-size',
70
- 'white-space',
71
- 'vertical-align',
72
- 'list-style',
73
- 'list-style-position',
74
- 'list-style-type',
75
- 'list-style-image',
76
- 'pointer-events',
77
- 'fill',
78
- 'fill-opacity',
79
- 'stroke',
80
- 'stroke-opacity',
81
- 'stroke-width',
82
- 'shape-rendering',
83
- 'cursor',
84
- 'visibility',
85
- 'zoom',
86
- 'flex-direction',
87
- 'flex-order',
88
- 'flex-pack',
89
- 'flex-align',
90
- 'table-layout',
91
- 'empty-cells',
92
- 'caption-side',
93
- 'border-spacing',
94
- 'border-collapse',
95
- 'content',
96
- 'quotes',
97
- 'counter-reset',
98
- 'counter-increment',
99
- 'resize',
100
- 'user-select',
101
- 'nav-index',
102
- 'nav-up',
103
- 'nav-right',
104
- 'nav-down',
105
- 'nav-left',
106
- 'background',
107
- 'background-color',
108
- 'background-image',
109
- 'filter',
110
- 'background-repeat',
111
- 'background-attachment',
112
- 'background-position',
113
- 'background-position-x',
114
- 'background-position-y',
115
- 'background-clip',
116
- 'background-origin',
117
- 'background-size',
118
- 'border',
119
- 'border-color',
120
- 'border-style',
121
- 'border-width',
122
- 'border-top',
123
- 'border-top-color',
124
- 'border-top-style',
125
- 'border-top-width',
126
- 'border-right',
127
- 'border-right-color',
128
- 'border-right-style',
129
- 'border-right-width',
130
- 'border-bottom',
131
- 'border-bottom-color',
132
- 'border-bottom-style',
133
- 'border-bottom-width',
134
- 'border-left',
135
- 'border-left-color',
136
- 'border-left-style',
137
- 'border-left-width',
138
- 'border-radius',
139
- 'border-top-left-radius',
140
- 'border-top-right-radius',
141
- 'border-bottom-right-radius',
142
- 'border-bottom-left-radius',
143
- 'border-image',
144
- 'border-image-source',
145
- 'border-image-slice',
146
- 'border-image-width',
147
- 'border-image-outset',
148
- 'border-image-repeat',
149
- 'outline',
150
- 'outline-width',
151
- 'outline-style',
152
- 'outline-color',
153
- 'outline-offset',
154
- 'box-shadow',
155
- 'opacity',
156
- 'transition',
157
- 'transition-delay',
158
- 'transition-timing-function',
159
- 'transition-duration',
160
- 'transition-property',
161
- 'transform',
162
- 'transform-origin',
163
- 'animation',
164
- 'animation-name',
165
- 'animation-duration',
166
- 'animation-fill-mode',
167
- 'animation-play-state',
168
- 'animation-timing-function',
169
- 'animation-delay',
170
- 'animation-iteration-count',
171
- 'animation-direction',
172
- ]