@primer/stylelint-config 13.2.0-rc.fb5a007 → 13.2.1-rc.942792f

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,12 +995,17 @@ 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
  {
1176
1001
  severity: 'warning',
1177
1002
  allow: {
1003
+ features: [
1004
+ 'properties.scrollbar-width',
1005
+ 'properties.scrollbar-gutter',
1006
+ 'properties.scrollbar-color',
1007
+ 'selectors.highlight',
1008
+ ],
1178
1009
  flagged: false,
1179
1010
  partialImplementation: true,
1180
1011
  prefix: true,
@@ -1211,6 +1042,7 @@ var index = {
1211
1042
  'keyframe-selector-notation': ['percentage-unless-within-keyword-only-block'],
1212
1043
  'media-query-no-invalid': null,
1213
1044
  'media-feature-range-notation': ['prefix'],
1045
+ 'comment-empty-line-before': null,
1214
1046
  },
1215
1047
  overrides: [
1216
1048
  {
@@ -1232,10 +1064,8 @@ var index = {
1232
1064
  files: ['**/*.tsx'],
1233
1065
  customSyntax: 'postcss-styled-syntax',
1234
1066
  rules: {
1235
- 'order/properties-order': null,
1236
1067
  'rule-empty-line-before': null,
1237
1068
  'declaration-empty-line-before': null,
1238
- 'comment-empty-line-before': null,
1239
1069
  'length-zero-no-unit': null,
1240
1070
  'selector-max-type': null,
1241
1071
  '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,12 +992,17 @@ 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
  {
1173
998
  severity: 'warning',
1174
999
  allow: {
1000
+ features: [
1001
+ 'properties.scrollbar-width',
1002
+ 'properties.scrollbar-gutter',
1003
+ 'properties.scrollbar-color',
1004
+ 'selectors.highlight',
1005
+ ],
1175
1006
  flagged: false,
1176
1007
  partialImplementation: true,
1177
1008
  prefix: true,
@@ -1208,6 +1039,7 @@ var index = {
1208
1039
  'keyframe-selector-notation': ['percentage-unless-within-keyword-only-block'],
1209
1040
  'media-query-no-invalid': null,
1210
1041
  'media-feature-range-notation': ['prefix'],
1042
+ 'comment-empty-line-before': null,
1211
1043
  },
1212
1044
  overrides: [
1213
1045
  {
@@ -1229,10 +1061,8 @@ var index = {
1229
1061
  files: ['**/*.tsx'],
1230
1062
  customSyntax: 'postcss-styled-syntax',
1231
1063
  rules: {
1232
- 'order/properties-order': null,
1233
1064
  'rule-empty-line-before': null,
1234
1065
  'declaration-empty-line-before': null,
1235
- 'comment-empty-line-before': null,
1236
1066
  'length-zero-no-unit': null,
1237
1067
  'selector-max-type': null,
1238
1068
  'primer/colors': null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "13.2.0-rc.fb5a007",
3
+ "version": "13.2.1-rc.942792f",
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": {
@@ -45,13 +44,12 @@
45
44
  "dependencies": {
46
45
  "@github/browserslist-config": "^1.0.0",
47
46
  "postcss-scss": "^4.0.2",
48
- "postcss-styled-syntax": "^0.6.4",
47
+ "postcss-styled-syntax": "^0.7.0",
49
48
  "postcss-value-parser": "^4.0.2",
50
49
  "string.prototype.matchall": "^4.0.2",
51
50
  "stylelint": "^16.3.1",
52
- "stylelint-browser-compat": "^1.0.0-beta.136",
51
+ "stylelint-browser-compat": "^1.0.0-beta.140",
53
52
  "stylelint-config-standard": "^36.0.0",
54
- "stylelint-order": "^6.0.4",
55
53
  "stylelint-scss": "^6.2.0",
56
54
  "stylelint-value-no-unknown-custom-properties": "^6.0.1"
57
55
  },
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
- ]