@mikey-pro/stylelint-config 8.1.0 → 9.0.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 +28 -54
  2. package/package.json +8 -8
package/index.js CHANGED
@@ -4,11 +4,6 @@ const config = {
4
4
  'stylelint-config-standard-scss',
5
5
  'stylelint-config-recommended-vue',
6
6
  ],
7
- plugins: [
8
- 'stylelint-scss',
9
- 'stylelint-order',
10
- 'stylelint-declaration-strict-value'
11
- ],
12
7
  ignoreFiles: [
13
8
  '**/*.js',
14
9
  '**/*.cjs',
@@ -17,69 +12,48 @@ const config = {
17
12
  '**/*.json',
18
13
  '**/*.pi',
19
14
  ],
15
+ plugins: [
16
+ 'stylelint-scss',
17
+ 'stylelint-order',
18
+ 'stylelint-declaration-strict-value',
19
+ ],
20
20
  rules: {
21
- // Custom property naming
21
+ 'color-function-notation': 'modern',
22
+ 'color-named': 'never',
22
23
  'custom-property-pattern': '^--[a-z0-9-]+$',
23
- 'selector-class-pattern': '^[a-z][a-zA-Z0-9-]*$',
24
-
25
- // Modern CSS practices
26
24
  'declaration-no-important': true,
27
- 'shorthand-property-no-redundant-values': true,
28
- 'number-max-precision': 4,
29
- 'value-no-vendor-prefix': true,
30
- 'property-no-vendor-prefix': true,
31
-
32
- // SCSS specific rules
33
- 'scss/at-extend-no-missing-placeholder': true,
34
- 'scss/selector-no-redundant-nesting-selector': true,
35
- 'scss/no-duplicate-mixins': true,
36
-
37
- // Unit and calculation consistency
38
- 'unit-disallowed-list': ['pt'],
39
- 'function-calc-no-unspaced-operator': true,
40
-
41
- // Media query handling
42
- 'media-feature-name-no-vendor-prefix': true,
43
- 'media-query-list-comma-newline-after': 'always-multi-line',
44
-
45
- // Modern layout rules
25
+ 'declaration-property-value-allowed-list': {
26
+ animation: [String.raw`/^\d+ms/`, String.raw`/^\d+s/`],
27
+ transition: [String.raw`/^\d+ms/`, String.raw`/^\d+s/`],
28
+ },
46
29
  'declaration-property-value-disallowed-list': {
47
- 'position': ['fixed'],
48
30
  '/^grid/': ['auto'],
31
+ position: ['fixed'],
49
32
  },
50
-
51
- // Color handling
52
- 'color-function-notation': 'modern',
53
- 'color-named': 'never',
54
-
55
- // Z-index handling
56
33
  'declaration-strict-value': [
57
34
  ['/color/', 'z-index'],
58
35
  {
59
- ignoreKeywords: ['transparent', 'inherit', 'currentColor']
60
- }
36
+ ignoreKeywords: ['transparent', 'inherit', 'currentColor'],
37
+ },
61
38
  ],
62
-
63
- // Specificity and maintainability
39
+ 'function-calc-no-unspaced-operator': true,
64
40
  'max-nesting-depth': 3,
41
+ 'media-feature-name-no-vendor-prefix': true,
42
+ 'media-query-list-comma-newline-after': 'always-multi-line',
43
+ 'number-max-precision': 4,
44
+ 'order/properties-alphabetical-order': true,
45
+ 'property-no-vendor-prefix': true,
46
+ 'scss/at-extend-no-missing-placeholder': true,
47
+ 'scss/no-duplicate-mixins': true,
48
+ 'scss/selector-no-redundant-nesting-selector': true,
49
+ 'selector-class-pattern': '^[a-z][a-zA-Z0-9-]*$',
65
50
  'selector-max-compound-selectors': 4,
66
51
  'selector-max-specificity': '0,4,2',
67
-
68
- // Animations and transitions
52
+ 'shorthand-property-no-redundant-values': true,
69
53
  'time-min-milliseconds': 100,
70
- 'declaration-property-value-allowed-list': {
71
- 'transition': ['/^\\d+ms/', '/^\\d+s/'],
72
- 'animation': ['/^\\d+ms/', '/^\\d+s/']
73
- },
74
-
75
- // Add order rules
76
- 'order/properties-alphabetical-order': true,
77
- }
54
+ 'unit-disallowed-list': ['pt'],
55
+ 'value-no-vendor-prefix': true,
56
+ },
78
57
  };
79
58
 
80
59
  export default config;
81
-
82
- // Support CommonJS environments
83
- if (typeof module !== 'undefined' && module.exports) {
84
- module.exports = config;
85
- }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@mikey-pro/stylelint-config",
3
- "version": "8.1.0",
3
+ "version": "9.0.0",
4
4
  "description": "Mikey Pro Stylelint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
- "stylelint-config-recommended-vue": "^1.6.0",
8
- "stylelint-config-standard": "^37.0.0",
9
- "stylelint-config-standard-scss": "^14.0.0",
10
- "stylelint-declaration-strict-value": "^1.10.7",
11
- "stylelint-order": "^6.0.4",
12
- "stylelint-scss": "^6.11.0",
13
- "postcss": "^8.5.2",
7
+ "stylelint-config-recommended-vue": "^1.6.1",
8
+ "stylelint-config-standard": "^39.0.0",
9
+ "stylelint-config-standard-scss": "^15.0.1",
10
+ "stylelint-declaration-strict-value": "^1.10.11",
11
+ "stylelint-order": "^7.0.0",
12
+ "stylelint-scss": "^6.12.1",
13
+ "postcss": "^8.5.6",
14
14
  "postcss-scss": "^4.0.9"
15
15
  },
16
16
  "type": "module",