@primer/stylelint-config 12.2.0-rc.103f0a4 → 12.2.0-rc.2cb6816

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/index.js +20 -0
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -4,7 +4,11 @@
4
4
 
5
5
  ### Minor Changes
6
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
7
+ - [#170](https://github.com/primer/stylelint-config/pull/170) [`b56fcd1`](https://github.com/primer/stylelint-config/commit/b56fcd1bce90d2e3e1621ef7af7545c52c935579) Thanks [@jonrohan](https://github.com/jonrohan)! - Moving config from primer/css's [stylelint.config.cjs](https://github.com/primer/css/blob/c65be7f0c8b0fb6e1ba406b5d35c6073df161a33/stylelint.config.cjs) file to this package.
8
+
9
+ * [#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
10
+
11
+ - [#170](https://github.com/primer/stylelint-config/pull/170) [`b56fcd1`](https://github.com/primer/stylelint-config/commit/b56fcd1bce90d2e3e1621ef7af7545c52c935579) Thanks [@jonrohan](https://github.com/jonrohan)! - Adding config from the [stylelint-scss recommended config](https://github.com/stylelint-scss/stylelint-config-recommended-scss/blob/82d51c399ddaa2f9d282e419399dd2028f47830c/index.js).
8
12
 
9
13
  ## 12.1.1
10
14
 
package/index.js CHANGED
@@ -3,6 +3,8 @@ const propertyOrder = require('./property-order')
3
3
 
4
4
  module.exports = {
5
5
  extends: ['stylelint-config-standard'],
6
+ customSyntax: require('postcss-scss'),
7
+ ignoreFiles: ['**/*.js', '**/*.cjs'],
6
8
  plugins: [
7
9
  'stylelint-no-unsupported-browser-features',
8
10
  'stylelint-order',
@@ -26,6 +28,7 @@ module.exports = {
26
28
  'color-function-notation': null,
27
29
  'color-named': 'never',
28
30
  'color-no-invalid-hex': true,
31
+ 'comment-no-empty': null,
29
32
  'custom-property-pattern': null,
30
33
  'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates']}],
31
34
  'declaration-block-no-redundant-longhand-properties': null,
@@ -47,13 +50,30 @@ module.exports = {
47
50
  'no-descending-specificity': null,
48
51
  'no-duplicate-selectors': true,
49
52
  'no-extra-semicolons': true,
53
+ 'no-invalid-position-at-import-rule': [true, {ignoreAtRules: ['use']}],
50
54
  'number-max-precision': null,
51
55
  'order/properties-order': propertyOrder,
52
56
  'plugin/no-unsupported-browser-features': [true, {severity: 'warning', browsers}],
57
+ 'primer/borders': true,
58
+ 'primer/box-shadow': true,
59
+ 'primer/colors': true,
53
60
  'primer/no-deprecated-colors': true,
54
61
  'primer/no-override': true,
62
+ 'primer/no-undefined-vars': [
63
+ true,
64
+ {severity: 'warning', files: 'node_modules/@primer/primitives/dist/scss/colors*/*.scss'}
65
+ ],
55
66
  'primer/no-unused-vars': [true, {severity: 'warning'}],
67
+ 'primer/spacing': true,
68
+ 'primer/typography': true,
69
+ 'scss/at-extend-no-missing-placeholder': true,
56
70
  'scss/at-rule-no-unknown': true,
71
+ 'scss/declaration-nested-properties-no-divided-groups': true,
72
+ 'scss/dollar-variable-default': [true, {ignore: 'local'}],
73
+ 'scss/dollar-variable-no-missing-interpolation': true,
74
+ 'scss/function-quote-no-quoted-strings-inside': true,
75
+ 'scss/function-unquote-no-unquoted-strings-inside': true,
76
+ 'scss/no-duplicate-mixins': true,
57
77
  'scss/selector-no-redundant-nesting-selector': true,
58
78
  'selector-class-pattern': null,
59
79
  'selector-max-compound-selectors': 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/stylelint-config",
3
- "version": "12.2.0-rc.103f0a4",
3
+ "version": "12.2.0-rc.2cb6816",
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.",
@@ -28,6 +28,7 @@
28
28
  "anymatch": "^3.1.1",
29
29
  "globby": "^11.0.1",
30
30
  "lodash.kebabcase": "^4.1.1",
31
+ "postcss-scss": "^4.0.2",
31
32
  "postcss-value-parser": "^4.0.2",
32
33
  "string.prototype.matchall": "^4.0.2",
33
34
  "stylelint-config-standard": "24.0.0",
@@ -37,8 +38,8 @@
37
38
  "tap-map": "^1.0.0"
38
39
  },
39
40
  "peerDependencies": {
40
- "@primer/css": "*",
41
- "@primer/primitives": "^7.0.1"
41
+ "@primer/css": ">= 18.0.0",
42
+ "@primer/primitives": ">= 6.0.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@changesets/changelog-github": "0.4.1",
@@ -53,7 +54,6 @@
53
54
  "eslint-plugin-prettier": "4.0.0",
54
55
  "jest": "27.3.1",
55
56
  "jest-preset-stylelint": "4.2.0",
56
- "postcss-scss": "4.0.2",
57
57
  "prettier": "2.4.1",
58
58
  "stylelint": "14.1.0"
59
59
  },