@primer/stylelint-config 12.1.0-rc.b1d9c4e → 12.2.0-rc.103f0a4
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/CHANGELOG.md +12 -0
- package/README.md +2 -0
- package/index.js +19 -95
- package/package.json +12 -30
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 12.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#168](https://github.com/primer/stylelint-config/pull/168) [`d6ff2b9`](https://github.com/primer/stylelint-config/commit/d6ff2b94ff0d309c1b79e783e6ee1b2f87a375ff) Thanks [@jonrohan](https://github.com/jonrohan)! - Extending stylelint-config-standard and removing defaults
|
|
8
|
+
|
|
9
|
+
## 12.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#161](https://github.com/primer/stylelint-config/pull/161) [`48c4afc`](https://github.com/primer/stylelint-config/commit/48c4afc1913863136d62967653697323f8da57b7) Thanks [@dependabot](https://github.com/apps/dependabot)! - Bump @primer/primitives from 6.1.0 to 7.0.1
|
|
14
|
+
|
|
3
15
|
## 12.1.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -22,6 +22,8 @@ Within your [stylelint config object](http://stylelint.io/user-guide/configurati
|
|
|
22
22
|
|
|
23
23
|
## Documentation
|
|
24
24
|
|
|
25
|
+
Primer Stylelint Config extends the [stylelint-config-standard](https://github.com/stylelint/stylelint-config-standard) configuration supplied by Stylelint, and makes modifications in `/index.js`.
|
|
26
|
+
|
|
25
27
|
### Plugins
|
|
26
28
|
|
|
27
29
|
- [stylelint-order](https://github.com/hudochenkov/stylelint-order): Order-related linting rules for stylelint. Properties must be [sorted according to this list](https://github.com/primer/stylelint-config/blob/main/property-order.js).
|
package/index.js
CHANGED
|
@@ -2,6 +2,7 @@ const browsers = require('./browsers')
|
|
|
2
2
|
const propertyOrder = require('./property-order')
|
|
3
3
|
|
|
4
4
|
module.exports = {
|
|
5
|
+
extends: ['stylelint-config-standard'],
|
|
5
6
|
plugins: [
|
|
6
7
|
'stylelint-no-unsupported-browser-features',
|
|
7
8
|
'stylelint-order',
|
|
@@ -18,129 +19,52 @@ module.exports = {
|
|
|
18
19
|
'./plugins/typography'
|
|
19
20
|
],
|
|
20
21
|
rules: {
|
|
22
|
+
'alpha-value-notation': 'number',
|
|
21
23
|
'at-rule-disallowed-list': ['extend'],
|
|
22
|
-
'at-rule-
|
|
23
|
-
'at-rule-name-space-after': 'always-single-line',
|
|
24
|
-
'at-rule-semicolon-newline-after': 'always',
|
|
25
|
-
'block-closing-brace-newline-after': 'always',
|
|
26
|
-
'block-closing-brace-newline-before': 'always-multi-line',
|
|
27
|
-
'block-closing-brace-space-before': 'always-single-line',
|
|
24
|
+
'at-rule-no-unknown': null,
|
|
28
25
|
'block-no-empty': true,
|
|
29
|
-
'
|
|
30
|
-
'block-opening-brace-space-after': 'always-single-line',
|
|
31
|
-
'block-opening-brace-space-before': 'always',
|
|
32
|
-
'color-hex-case': 'lower',
|
|
33
|
-
'color-hex-length': 'short',
|
|
26
|
+
'color-function-notation': null,
|
|
34
27
|
'color-named': 'never',
|
|
35
28
|
'color-no-invalid-hex': true,
|
|
36
|
-
'
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
except: ['first-nested'],
|
|
40
|
-
ignore: ['stylelint-commands']
|
|
41
|
-
}
|
|
42
|
-
],
|
|
43
|
-
'comment-whitespace-inside': 'always',
|
|
44
|
-
'declaration-bang-space-after': 'never',
|
|
45
|
-
'declaration-bang-space-before': 'always',
|
|
46
|
-
'declaration-block-no-duplicate-properties': [
|
|
47
|
-
true,
|
|
48
|
-
{
|
|
49
|
-
ignore: ['consecutive-duplicates']
|
|
50
|
-
}
|
|
51
|
-
],
|
|
29
|
+
'custom-property-pattern': null,
|
|
30
|
+
'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates']}],
|
|
31
|
+
'declaration-block-no-redundant-longhand-properties': null,
|
|
52
32
|
'declaration-block-no-shorthand-property-overrides': true,
|
|
53
|
-
'order/properties-order': propertyOrder,
|
|
54
33
|
'declaration-block-semicolon-newline-after': 'always',
|
|
55
|
-
'declaration-block-semicolon-space-before': 'never',
|
|
56
|
-
'declaration-block-single-line-max-declarations': 1,
|
|
57
|
-
'declaration-block-trailing-semicolon': 'always',
|
|
58
|
-
'declaration-colon-newline-after': 'always-multi-line',
|
|
59
|
-
'declaration-colon-space-after': 'always-single-line',
|
|
60
|
-
'declaration-colon-space-before': 'never',
|
|
61
34
|
'declaration-property-value-disallowed-list': {
|
|
62
35
|
'/^transition/': ['/all/'],
|
|
63
36
|
'/^background/': ['http:', 'https:'],
|
|
64
37
|
'/^border/': ['none'],
|
|
65
38
|
'/.+/': ['initial']
|
|
66
39
|
},
|
|
67
|
-
'font-family-name-quotes': 'always-where-recommended',
|
|
68
40
|
'function-calc-no-unspaced-operator': true,
|
|
69
|
-
'function-comma-newline-after': 'always-multi-line',
|
|
70
|
-
'function-comma-space-after': 'always-single-line',
|
|
71
|
-
'function-comma-space-before': 'never',
|
|
72
41
|
'function-linear-gradient-no-nonstandard-direction': true,
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'function-parentheses-newline-inside': 'always-multi-line',
|
|
76
|
-
'function-parentheses-space-inside': 'never-single-line',
|
|
77
|
-
'function-url-quotes': 'always',
|
|
78
|
-
'function-whitespace-after': 'always',
|
|
79
|
-
'length-zero-no-unit': true,
|
|
80
|
-
'max-empty-lines': 1,
|
|
42
|
+
'keyframes-name-pattern': null,
|
|
43
|
+
'max-line-length': null,
|
|
81
44
|
'max-nesting-depth': 3,
|
|
82
|
-
'media-feature-
|
|
83
|
-
'media-feature-
|
|
84
|
-
'
|
|
85
|
-
'media-feature-range-operator-space-after': 'always',
|
|
86
|
-
'media-feature-range-operator-space-before': 'always',
|
|
87
|
-
'media-query-list-comma-newline-after': 'always-multi-line',
|
|
88
|
-
'media-query-list-comma-space-after': 'always-single-line',
|
|
89
|
-
'media-query-list-comma-space-before': 'never',
|
|
45
|
+
'media-feature-name-no-unknown': null,
|
|
46
|
+
'media-feature-name-no-vendor-prefix': null,
|
|
47
|
+
'no-descending-specificity': null,
|
|
90
48
|
'no-duplicate-selectors': true,
|
|
91
|
-
'no-eol-whitespace': true,
|
|
92
49
|
'no-extra-semicolons': true,
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'plugin/no-unsupported-browser-features': [
|
|
97
|
-
true,
|
|
98
|
-
{
|
|
99
|
-
severity: 'warning',
|
|
100
|
-
browsers
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
'primer/no-override': true,
|
|
50
|
+
'number-max-precision': null,
|
|
51
|
+
'order/properties-order': propertyOrder,
|
|
52
|
+
'plugin/no-unsupported-browser-features': [true, {severity: 'warning', browsers}],
|
|
104
53
|
'primer/no-deprecated-colors': true,
|
|
105
|
-
|
|
106
|
-
// in other projects
|
|
54
|
+
'primer/no-override': true,
|
|
107
55
|
'primer/no-unused-vars': [true, {severity: 'warning'}],
|
|
108
|
-
'
|
|
109
|
-
'property-no-vendor-prefix': true,
|
|
110
|
-
'rule-empty-line-before': [
|
|
111
|
-
'always-multi-line',
|
|
112
|
-
{
|
|
113
|
-
except: ['first-nested'],
|
|
114
|
-
ignore: ['after-comment']
|
|
115
|
-
}
|
|
116
|
-
],
|
|
56
|
+
'scss/at-rule-no-unknown': true,
|
|
117
57
|
'scss/selector-no-redundant-nesting-selector': true,
|
|
118
|
-
'selector-
|
|
119
|
-
'selector-attribute-operator-space-after': 'never',
|
|
120
|
-
'selector-attribute-operator-space-before': 'never',
|
|
121
|
-
'selector-combinator-space-after': 'always',
|
|
122
|
-
'selector-combinator-space-before': 'always',
|
|
123
|
-
'selector-list-comma-newline-after': 'always',
|
|
124
|
-
'selector-list-comma-space-before': 'never',
|
|
58
|
+
'selector-class-pattern': null,
|
|
125
59
|
'selector-max-compound-selectors': 3,
|
|
126
|
-
'selector-max-empty-lines': 0,
|
|
127
60
|
'selector-max-id': 0,
|
|
128
61
|
'selector-max-specificity': '0,4,0',
|
|
129
62
|
'selector-max-type': 0,
|
|
130
63
|
'selector-no-qualifying-type': true,
|
|
131
|
-
'selector-pseudo-class-case': 'lower',
|
|
132
|
-
'selector-pseudo-class-parentheses-space-inside': 'never',
|
|
133
|
-
'selector-pseudo-element-case': 'lower',
|
|
134
|
-
'selector-pseudo-element-colon-notation': 'double',
|
|
135
64
|
'selector-pseudo-element-no-unknown': true,
|
|
136
|
-
'selector-type-case': 'lower',
|
|
137
|
-
'shorthand-property-no-redundant-values': true,
|
|
138
65
|
'string-no-newline': true,
|
|
139
66
|
'string-quotes': 'single',
|
|
140
|
-
'unit-case': 'lower',
|
|
141
67
|
'unit-no-unknown': true,
|
|
142
|
-
'value-
|
|
143
|
-
'value-list-comma-space-before': 'never',
|
|
144
|
-
'value-no-vendor-prefix': true
|
|
68
|
+
'value-keyword-case': null
|
|
145
69
|
}
|
|
146
70
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/stylelint-config",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0-rc.103f0a4",
|
|
4
4
|
"description": "Sharable stylelint config used by GitHub's CSS",
|
|
5
5
|
"homepage": "http://primer.style/css/tools/linting",
|
|
6
6
|
"author": "GitHub, Inc.",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"lodash.kebabcase": "^4.1.1",
|
|
31
31
|
"postcss-value-parser": "^4.0.2",
|
|
32
32
|
"string.prototype.matchall": "^4.0.2",
|
|
33
|
+
"stylelint-config-standard": "24.0.0",
|
|
33
34
|
"stylelint-no-unsupported-browser-features": "^5.0.1",
|
|
34
35
|
"stylelint-order": "^5.0.0",
|
|
35
36
|
"stylelint-scss": "^4.0.0",
|
|
@@ -37,43 +38,24 @@
|
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"@primer/css": "*",
|
|
40
|
-
"@primer/primitives": "^
|
|
41
|
+
"@primer/primitives": "^7.0.1"
|
|
41
42
|
},
|
|
42
43
|
"devDependencies": {
|
|
43
44
|
"@changesets/changelog-github": "0.4.1",
|
|
44
|
-
"@changesets/cli": "2.
|
|
45
|
+
"@changesets/cli": "2.18.0",
|
|
45
46
|
"@github/prettier-config": "0.0.4",
|
|
46
|
-
"@primer/css": "^
|
|
47
|
-
"@primer/primitives": "^
|
|
47
|
+
"@primer/css": "^19.0.0",
|
|
48
|
+
"@primer/primitives": "^7.0.1",
|
|
48
49
|
"dedent": "0.7.0",
|
|
49
|
-
"eslint": "
|
|
50
|
-
"eslint-plugin-github": "4.3.
|
|
51
|
-
"eslint-plugin-jest": "25.2.
|
|
50
|
+
"eslint": "8.3.0",
|
|
51
|
+
"eslint-plugin-github": "4.3.5",
|
|
52
|
+
"eslint-plugin-jest": "25.2.4",
|
|
52
53
|
"eslint-plugin-prettier": "4.0.0",
|
|
53
54
|
"jest": "27.3.1",
|
|
54
|
-
"jest-preset-stylelint": "4.
|
|
55
|
-
"postcss-scss": "4.0.
|
|
55
|
+
"jest-preset-stylelint": "4.2.0",
|
|
56
|
+
"postcss-scss": "4.0.2",
|
|
56
57
|
"prettier": "2.4.1",
|
|
57
|
-
"stylelint": "14.
|
|
58
|
-
},
|
|
59
|
-
"eslintConfig": {
|
|
60
|
-
"extends": [
|
|
61
|
-
"plugin:github/internal",
|
|
62
|
-
"plugin:github/recommended"
|
|
63
|
-
],
|
|
64
|
-
"env": {
|
|
65
|
-
"es6": true,
|
|
66
|
-
"node": true
|
|
67
|
-
},
|
|
68
|
-
"parserOptions": {
|
|
69
|
-
"ecmaVersion": 2017,
|
|
70
|
-
"requireConfigFile": false
|
|
71
|
-
},
|
|
72
|
-
"rules": {
|
|
73
|
-
"import/no-commonjs": "off",
|
|
74
|
-
"github/no-then": "off",
|
|
75
|
-
"i18n-text/no-en": "off"
|
|
76
|
-
}
|
|
58
|
+
"stylelint": "14.1.0"
|
|
77
59
|
},
|
|
78
60
|
"jest": {
|
|
79
61
|
"preset": "jest-preset-stylelint",
|