@genesislcap/stylelint-config 15.66.0 → 15.67.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.
Files changed (2) hide show
  1. package/index.js +35 -5
  2. package/package.json +4 -6
package/index.js CHANGED
@@ -1,10 +1,40 @@
1
+ // Enabled by stylelint-config-standard after v23; kept off so the stylelint 17 upgrade doesn't fail existing apps
2
+ const rulesAddedSinceStandard23 = [
3
+ 'annotation-no-unknown',
4
+ 'at-rule-descriptor-no-unknown',
5
+ 'at-rule-descriptor-value-no-unknown',
6
+ 'at-rule-no-deprecated',
7
+ 'at-rule-prelude-no-invalid',
8
+ 'block-no-redundant-nested-style-rules',
9
+ 'color-function-alias-notation',
10
+ 'container-name-pattern',
11
+ 'declaration-property-value-keyword-no-deprecated',
12
+ 'declaration-property-value-no-unknown',
13
+ 'import-notation',
14
+ 'keyframe-block-no-duplicate-selectors',
15
+ 'keyframe-selector-notation',
16
+ 'layer-name-pattern',
17
+ 'lightness-notation',
18
+ 'media-feature-name-value-no-unknown',
19
+ 'media-feature-range-notation',
20
+ 'media-query-no-invalid',
21
+ 'media-type-no-deprecated',
22
+ 'nesting-selector-no-missing-scoping-root',
23
+ 'no-invalid-position-declaration',
24
+ 'property-no-deprecated',
25
+ 'selector-anb-no-unmatchable',
26
+ 'selector-not-notation',
27
+ 'syntax-string-no-invalid',
28
+ ];
29
+
1
30
  module.exports = {
2
- customSyntax: 'postcss-syntax',
3
- extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
4
- includes: ['*.styles.ts'],
31
+ customSyntax: require.resolve('postcss-styled-syntax'),
32
+ extends: ['stylelint-config-standard'],
5
33
  rules: {
6
- 'max-line-length': null,
7
- 'no-empty-first-line': null,
34
+ ...Object.fromEntries(rulesAddedSinceStandard23.map((rule) => [rule, null])),
35
+ 'alpha-value-notation': 'percentage',
36
+ 'at-rule-empty-line-before': null,
37
+ 'selector-attribute-quotes': null,
8
38
  'value-keyword-case': null,
9
39
  'function-name-case': null,
10
40
  },
package/package.json CHANGED
@@ -1,19 +1,17 @@
1
1
  {
2
2
  "name": "@genesislcap/stylelint-config",
3
3
  "description": "Stylelint config",
4
- "version": "15.66.0",
4
+ "version": "15.67.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "engines": {
7
7
  "node": ">=22.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "postcss-jsx": "^0.36.4",
11
- "postcss-syntax": "^0.36.2",
12
- "stylelint-config-prettier": "^9.0.3",
13
- "stylelint-config-standard": "^23.0.0"
10
+ "postcss-styled-syntax": "0.7.1",
11
+ "stylelint-config-standard": "^40.0.0"
14
12
  },
15
13
  "peerDependencies": {
16
- "stylelint": ">= 14.0.0"
14
+ "stylelint": "^17.0.0"
17
15
  },
18
16
  "repository": {
19
17
  "type": "git",