@perplex-digital/stylelint-config 1.0.3 → 2.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/declarations.js +19 -17
  2. package/package.json +11 -13
package/declarations.js CHANGED
@@ -3,11 +3,7 @@ export default [
3
3
  'custom-properties',
4
4
  {
5
5
  type: 'at-rule',
6
- name: 'extend',
7
- },
8
- {
9
- type: 'at-rule',
10
- name: 'mixin',
6
+ name: 'apply',
11
7
  hasBlock: false,
12
8
  },
13
9
  'declarations',
@@ -48,13 +44,13 @@ export default [
48
44
  },
49
45
  {
50
46
  type: 'rule',
51
- selector: '^&:(fullscreen|modal|picture-in-picture)',
47
+ selector: '^&:(open|popover-open|modal|fullscreen|picture-in-picture)',
52
48
  // Matches element display state pseudo-classes
53
49
  },
54
50
  {
55
51
  type: 'rule',
56
52
  selector:
57
- '^&:(autofill|enabled|disabled|read|placeholder-shown|default|checked|indeterminate|blank|valid|range|required|optional)',
53
+ '^&:(enabled|disabled|read-only|read-write|placeholder-shown|autofill|default|checked|indeterminate|blank|valid|invalid|range|required|optional|user-valid|user-invalid)',
58
54
  // Matches input pseudo-classes
59
55
  },
60
56
  {
@@ -64,12 +60,12 @@ export default [
64
60
  },
65
61
  {
66
62
  type: 'rule',
67
- selector: '^&:(link|visited|target|scope)',
63
+ selector: '^&:(any-link|link|visited|local-link|target|target-within|scope)',
68
64
  // Matches location pseudo-classes
69
65
  },
70
66
  {
71
67
  type: 'rule',
72
- selector: '^&:(playing|paused)',
68
+ selector: '^&:(playing|paused|seeking|stalled|muted|volume-locked)',
73
69
  // Matches resource state pseudo-classes
74
70
  },
75
71
  {
@@ -79,20 +75,20 @@ export default [
79
75
  },
80
76
  {
81
77
  type: 'rule',
82
- selector: '^&:(hover|active|focus)',
78
+ selector: '^&:(hover|active|focus|focus-visible|focus-within)',
83
79
  // Matches user-action pseudo-classes
84
80
  },
85
81
  {
86
82
  type: 'at-rule',
87
- name: 'media',
88
- parameter: '--(mouse|touch)',
89
- // Matches media-queries '@media (--mouse) and '@media (--touch)'
83
+ name: 'variant',
84
+ parameter: 'hoverfocus|mouse|touch',
85
+ // Matches media-queries '@variant hoverfocus', '@variant mouse' and '@variant touch'
90
86
  hasBlock: true,
91
87
  },
92
88
  {
93
89
  type: 'rule',
94
- selector: '^&((\\.|\\[)|(.*(empty|child|type|is|not|where|has)).*)',
95
- // Matches modifiers like '&.example', tree-structural pseudo-classes and functional pseudo-classes
90
+ selector: '^&((\\.|\\[)|(.*(empty|child|type|is|not|where|has|state)).*)',
91
+ // Matches modifiers like '&.example' and tree-structural, functional, custom state pseudo-classes
96
92
  },
97
93
  {
98
94
  type: 'rule',
@@ -103,11 +99,17 @@ export default [
103
99
  type: 'at-rule',
104
100
  name: 'keyframes',
105
101
  },
102
+ {
103
+ type: 'at-rule',
104
+ name: 'variant',
105
+ parameter: '?!hoverfocus|mouse|touch',
106
+ // Matches all other media-queries like '@variant xl' and '@variant motionOK'
107
+ hasBlock: true,
108
+ },
106
109
  {
107
110
  type: 'at-rule',
108
111
  name: 'media',
109
- parameter: '--(?!mouse|touch)',
110
- // Matches all other media-queries like '@media (--xl-up)'
112
+ // Matches all other media-queries like '@media (width > 1472px)'
111
113
  hasBlock: true,
112
114
  },
113
115
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@perplex-digital/stylelint-config",
3
- "version": "1.0.3",
3
+ "version": "2.0.0",
4
4
  "description": "Box model-based property sort order for Stylelint.",
5
5
  "keywords": [
6
6
  "logical properties",
@@ -46,24 +46,22 @@
46
46
  "@stylistic/stylelint-plugin": "^3.1.2",
47
47
  "stylelint-config-recommended-vue": "^1.6.0",
48
48
  "stylelint-config-standard": "^36.0.1",
49
- "stylelint-high-performance-animation": "^1.10.0",
49
+ "stylelint-high-performance-animation": "^1.11.0",
50
50
  "stylelint-order": "^6.0.4",
51
51
  "stylelint-use-logical-spec": "^5.0.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@changesets/cli": "^2.27.12",
55
- "@commitlint/cli": "^19.7.1",
56
- "@commitlint/config-conventional": "^19.7.1",
57
- "@nuxt/eslint-config": "^1.0.1",
54
+ "@changesets/cli": "^2.28.1",
55
+ "@commitlint/cli": "^19.8.0",
56
+ "@commitlint/config-conventional": "^19.8.0",
57
+ "@nuxt/eslint-config": "^1.2.0",
58
58
  "@zazen/changesets-changelog": "^2.0.3",
59
- "eslint": "^9.20.1",
60
- "eslint-config-prettier": "^10.0.1",
61
- "eslint-plugin-prettier": "^5.2.3",
59
+ "eslint": "^9.23.0",
62
60
  "husky": "^9.1.7",
63
- "lint-staged": "^15.4.3",
64
- "prettier": "^3.5.0",
65
- "stylelint": "^16.14.1",
66
- "typescript": "^5.7.3"
61
+ "lint-staged": "^15.5.0",
62
+ "prettier": "^3.5.3",
63
+ "stylelint": "^16.16.0",
64
+ "typescript": "^5.8.2"
67
65
  },
68
66
  "peerDependencies": {
69
67
  "stylelint": ">=16"