@penskemediacorp/stylelint-config 1.66.3 → 1.68.0

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/index.js CHANGED
@@ -1,81 +1,84 @@
1
1
  module.exports = {
2
2
  rules: {
3
+ 'at-rule-disallowed-list': [ 'extend' ],
4
+ 'at-rule-empty-line-before': [
5
+ 'always',
6
+ {
7
+ ignore: [
8
+ 'after-comment',
9
+ 'first-nested',
10
+ 'blockless-after-blockless',
11
+ ],
12
+ ignoreAtRules: [ 'else', 'import' ],
13
+ },
14
+ ],
15
+ 'block-closing-brace-newline-after': [
16
+ 'always',
17
+ {
18
+ ignoreAtRules: [ 'if', 'else' ],
19
+ },
20
+ ],
21
+ 'block-opening-brace-newline-after': 'always-multi-line',
3
22
  'block-opening-brace-space-before': 'always',
23
+ 'comment-no-empty': true,
24
+ 'declaration-bang-space-before': 'always',
4
25
  'declaration-block-no-shorthand-property-overrides': true,
26
+ 'declaration-block-semicolon-newline-after': 'always',
27
+ 'declaration-block-single-line-max-declarations': 1,
5
28
  'declaration-block-trailing-semicolon': 'always',
6
29
  'declaration-colon-space-after': 'always',
30
+ 'declaration-colon-space-before': 'never',
7
31
  'declaration-no-important': true,
8
- 'font-family-no-missing-generic-family-keyword': true,
9
- 'function-calc-no-unspaced-operator': true,
10
- 'max-empty-lines': 2,
11
- 'property-no-unknown': true,
12
- 'selector-max-specificity': '0,3,1',
13
- 'selector-pseudo-element-colon-notation': 'double',
14
- 'unit-no-unknown': true,
15
- 'value-list-comma-space-after': 'always-single-line',
16
- 'no-descending-specificity': true,
17
- 'no-duplicate-at-import-rules': true,
18
- 'no-duplicate-selectors': true,
19
- 'function-disallowed-list': [ 'hsla', 'hsl' ],
20
- 'function-url-scheme-disallowed-list': [ '/^http/', 'ftp' ],
21
- 'function-url-no-scheme-relative': true,
22
- 'number-max-precision': 3,
23
- 'shorthand-property-no-redundant-values': true,
24
- 'property-no-vendor-prefix': true,
25
- 'property-disallowed-list': [ 'background', 'font', 'animation' ],
26
32
  'declaration-property-unit-disallowed-list': {
27
- 'font-size': [ 'em', 'px', 'pt' ],
28
33
  '/^animation/': [ 's' ],
29
34
  '/^transition/': [ 's' ],
35
+ 'font-size': [ 'em', 'px', 'pt' ],
30
36
  },
31
- 'declaration-block-single-line-max-declarations': 1,
32
- 'selector-max-attribute': 3,
33
- 'selector-max-combinators': 3,
34
- 'selector-max-class': 2,
35
- 'selector-max-compound-selectors': 2,
36
- 'at-rule-disallowed-list': [ 'extend' ],
37
- 'no-unknown-animations': true,
38
37
  'font-family-name-quotes': 'always-where-recommended',
38
+ 'font-family-no-missing-generic-family-keyword': true,
39
+ 'function-calc-no-unspaced-operator': true,
40
+ 'function-disallowed-list': [ 'hsla', 'hsl' ],
39
41
  'function-name-case': 'lower',
42
+ 'function-url-no-scheme-relative': true,
40
43
  'function-url-quotes': 'always',
41
- 'number-leading-zero': 'always',
42
- 'string-quotes': 'single',
43
- 'value-list-comma-space-after': 'always-single-line',
44
- 'property-case': 'lower',
45
- 'declaration-bang-space-before': 'always',
46
- 'declaration-colon-space-after': 'always',
47
- 'declaration-colon-space-before': 'never',
48
- 'declaration-block-semicolon-newline-after': 'always',
49
- 'block-closing-brace-newline-after': [
50
- 'always',
51
- {
52
- ignoreAtRules: [ 'if', 'else' ],
53
- },
54
- ],
55
- 'declaration-block-trailing-semicolon': 'always',
56
- 'block-opening-brace-newline-after': 'always-multi-line',
57
- 'selector-list-comma-newline-after': 'always',
58
- 'selector-combinator-space-after': 'always',
59
- 'selector-list-comma-space-after': 'always-single-line',
60
- 'selector-no-qualifying-type': true,
61
- 'comment-no-empty': true,
62
- 'at-rule-empty-line-before': [
63
- 'always',
44
+ 'function-url-scheme-disallowed-list': [ '/^http/', 'ftp' ],
45
+ 'max-empty-lines': 2,
46
+ 'max-nesting-depth': [
47
+ 2,
64
48
  {
65
- ignore: [
66
- 'after-comment',
67
- 'first-nested',
68
- 'blockless-after-blockless',
69
- ],
70
- ignoreAtRules: [ 'else', 'import' ],
49
+ ignore: [ 'pseudo-classes' ],
50
+ ignoreAtRules: [ 'media', 'include' ],
71
51
  },
72
52
  ],
53
+ 'no-descending-specificity': true,
54
+ 'no-duplicate-at-import-rules': true,
55
+ 'no-duplicate-selectors': true,
56
+ 'no-unknown-animations': true,
57
+ 'number-leading-zero': 'always',
58
+ 'number-max-precision': 3,
59
+ 'property-case': 'lower',
60
+ 'property-disallowed-list': [ 'background', 'font', 'animation' ],
61
+ 'property-no-unknown': true,
62
+ 'property-no-vendor-prefix': true,
73
63
  'rule-empty-line-before': [
74
64
  'always-multi-line',
75
65
  {
76
66
  ignore: [ 'first-nested', 'after-comment' ],
77
67
  },
78
68
  ],
69
+ 'selector-combinator-space-after': 'always',
70
+ 'selector-list-comma-newline-after': 'always',
71
+ 'selector-list-comma-space-after': 'always-single-line',
72
+ 'selector-max-attribute': 3,
73
+ 'selector-max-class': 2,
74
+ 'selector-max-combinators': 3,
75
+ 'selector-max-compound-selectors': 2,
76
+ 'selector-max-specificity': '0,3,1',
77
+ 'selector-nested-pattern': '^(?!&__|&--).*',
78
+ 'selector-no-qualifying-type': true,
79
+ 'selector-pseudo-element-colon-notation': 'double',
80
+ 'shorthand-property-no-redundant-values': true,
81
+ 'string-quotes': 'single',
79
82
  'unit-disallowed-list': [
80
83
  'px',
81
84
  {
@@ -84,13 +87,7 @@ module.exports = {
84
87
  },
85
88
  },
86
89
  ],
87
- 'max-nesting-depth': [
88
- 2,
89
- {
90
- ignore: [ 'pseudo-classes' ],
91
- ignoreAtRules: [ 'media', 'include' ],
92
- },
93
- ],
94
- 'selector-nested-pattern': '^(?!&__|&--).*', // Disallow BEM concatenation - https://regex101.com/r/yZWeYK/3
90
+ 'unit-no-unknown': true,
91
+ 'value-list-comma-space-after': 'always-single-line',
95
92
  },
96
93
  };
@@ -6,6 +6,8 @@ module.exports = function ( results ) {
6
6
  const styleLintPath = path.resolve(
7
7
  `${ process.cwd() }/pmc.stylelintrc.json`
8
8
  );
9
+
10
+ // eslint-disable-next-line no-unused-vars, @wordpress/no-unused-vars-before-return
9
11
  const additionalStyleLint = fs.existsSync( styleLintPath );
10
12
 
11
13
  const propertiesForCustomMessage = JSON.parse(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@penskemediacorp/stylelint-config",
3
- "version": "1.66.3",
3
+ "version": "1.68.0",
4
4
  "description": "Stylelint base config and customizations.",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -23,5 +23,5 @@
23
23
  "bugs": {
24
24
  "url": "https://github.com/penske-media-corp/pmc-larva/issues"
25
25
  },
26
- "gitHead": "74854501cc76901f2e3906ae9e0bc1458673fd1a"
26
+ "gitHead": "e6d0aaafb0abefe1fa8a691911ae23b0bde14528"
27
27
  }