@azat-io/stylelint-config 1.5.0 → 1.6.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/dist/index.d.ts CHANGED
@@ -369,23 +369,64 @@ declare const _default: {
369
369
  * Disallow vendor prefixes for values.
370
370
  */
371
371
  'value-no-vendor-prefix': boolean;
372
+ /**
373
+ * Require `:hover` selectors to be wrapped in `@media (hover: hover)`.
374
+ */
375
+ 'defensive-css/no-accidental-hover': boolean;
376
+ /**
377
+ * Disallow `list-style: none` outside of navigation to preserve
378
+ * accessibility.
379
+ */
380
+ 'defensive-css/no-list-style-none': boolean;
381
+ /**
382
+ * Disallow mixing vendor-prefixed selectors in a single rule.
383
+ */
384
+ 'defensive-css/no-mixed-vendor-prefixes': boolean;
385
+ /**
386
+ * Disallow common `will-change` anti-patterns that harm performance.
387
+ */
388
+ 'defensive-css/no-unsafe-will-change': boolean;
389
+ /**
390
+ * Require explicit `background-repeat` when using `background-image`.
391
+ */
392
+ 'defensive-css/require-background-repeat': boolean;
393
+ /**
394
+ * Require dynamic viewport units (`dvh`) instead of static `100vh`.
395
+ */
396
+ 'defensive-css/require-dynamic-viewport-height': boolean;
397
+ /**
398
+ * Require explicit `flex-wrap` for flex containers.
399
+ */
400
+ 'defensive-css/require-flex-wrap': boolean;
401
+ /**
402
+ * Require `:focus-visible` instead of `:focus`.
403
+ */
404
+ 'defensive-css/require-focus-visible': boolean;
405
+ /**
406
+ * Require named grid lines in grid templates.
407
+ */
408
+ 'defensive-css/require-named-grid-lines': boolean;
409
+ /**
410
+ * Require animations to be wrapped in `prefers-reduced-motion` media query.
411
+ */
412
+ 'defensive-css/require-prefers-reduced-motion': boolean;
372
413
  /**
373
414
  * Throw warning if color goes out of sRGB color space and is not wrapped in
374
415
  * `@media (color-gamut: p3) {}` or `@media (color-gamut: rec2020) {}`.
375
416
  */
376
417
  'gamut/color-no-out-gamut-range': boolean;
377
418
  /**
378
- * Enforce defensive CSS best practices.
419
+ * Require logical keywords.
379
420
  */
380
- 'plugin/use-defensive-css': boolean;
421
+ 'logical-css/require-logical-keywords': boolean;
381
422
  /**
382
- * Require logical properties and values.
423
+ * Require logical properties.
383
424
  */
384
- 'plugin/use-logical-properties-and-values': boolean;
425
+ 'logical-css/require-logical-properties': boolean;
385
426
  /**
386
427
  * Require logical units.
387
428
  */
388
- 'plugin/use-logical-units': boolean;
429
+ 'logical-css/require-logical-units': boolean;
389
430
  /**
390
431
  * Enforce nesting when it is possible.
391
432
  */
package/dist/index.js CHANGED
@@ -154,10 +154,20 @@ const index = {
154
154
  "unit-no-unknown": true,
155
155
  "value-keyword-case": "lower",
156
156
  "value-no-vendor-prefix": true,
157
+ "defensive-css/no-accidental-hover": true,
158
+ "defensive-css/no-list-style-none": true,
159
+ "defensive-css/no-mixed-vendor-prefixes": true,
160
+ "defensive-css/no-unsafe-will-change": true,
161
+ "defensive-css/require-background-repeat": true,
162
+ "defensive-css/require-dynamic-viewport-height": true,
163
+ "defensive-css/require-flex-wrap": true,
164
+ "defensive-css/require-focus-visible": true,
165
+ "defensive-css/require-named-grid-lines": true,
166
+ "defensive-css/require-prefers-reduced-motion": true,
157
167
  "gamut/color-no-out-gamut-range": true,
158
- "plugin/use-defensive-css": true,
159
- "plugin/use-logical-properties-and-values": true,
160
- "plugin/use-logical-units": true,
168
+ "logical-css/require-logical-keywords": true,
169
+ "logical-css/require-logical-properties": true,
170
+ "logical-css/require-logical-units": true,
161
171
  "csstools/use-nesting": "always"
162
172
  }
163
173
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azat-io/stylelint-config",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "Stylelint shareable config",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -19,12 +19,12 @@
19
19
  "./dist"
20
20
  ],
21
21
  "dependencies": {
22
- "stylelint-config-recess-order": "^7.6.0",
23
- "stylelint-gamut": "^1.3.4",
22
+ "stylelint-config-recess-order": "^7.6.1",
23
+ "stylelint-gamut": "^2.0.0",
24
24
  "stylelint-order": "^7.0.1",
25
- "stylelint-plugin-defensive-css": "^1.1.0",
26
- "stylelint-plugin-logical-css": "^1.3.0",
27
- "stylelint-use-nesting": "^6.0.1"
25
+ "stylelint-plugin-defensive-css": "^2.5.0",
26
+ "stylelint-plugin-logical-css": "^2.0.2",
27
+ "stylelint-use-nesting": "^6.0.2"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "stylelint": "^17.0.0"
package/readme.md CHANGED
@@ -58,6 +58,7 @@ This config uses the following plugins:
58
58
 
59
59
  ## See also
60
60
 
61
+ - [@azat-io/ai-config](https://github.com/azat-io/ai-config)
61
62
  - [@azat-io/eslint-config](https://github.com/azat-io/eslint-config)
62
63
  - [@azat-io/prettier-config](https://github.com/azat-io/prettier-config)
63
64
  - [@azat-io/typescript-config](https://github.com/azat-io/typescript-config)