@benhigham/stylelint-config 0.1.1 → 0.3.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/README.md CHANGED
@@ -17,7 +17,6 @@ This configuration:
17
17
  - Requires proper use of custom media queries and nesting
18
18
  - Enforces BEM naming conventions with SUIT CSS methodology
19
19
  - Ensures browser compatibility with [Baseline](https://web.dev/baseline) requirements
20
- - Includes accessibility checks for better a11y compliance
21
20
  - Detects and prevents indistinguishable colors and out-of-gamut colors
22
21
  - Provides special handling for CSS modules
23
22
 
@@ -61,21 +60,18 @@ This configuration includes several plugins:
61
60
  - [`stylelint-high-performance-animation`](https://github.com/kristerkari/stylelint-high-performance-animation): Prevents using low-performance animation properties
62
61
  - [`stylelint-media-use-custom-media`](https://github.com/csstools/stylelint-media-use-custom-media): Enforces the use of custom media queries
63
62
  - [`stylelint-use-nesting`](https://github.com/csstools/stylelint-use-nesting): Enforces proper CSS nesting
64
- - [`stylelint-plugin-require-baseline`](https://github.com/ryo-manba/stylelint-plugin-require-baseline): Disallow CSS features not in [Baseline](https://web.dev/baseline)
63
+ - [`stylelint-plugin-use-baseline`](https://github.com/ryo-manba/stylelint-plugin-use-baseline): Disallow CSS features not in [Baseline](https://web.dev/baseline)
65
64
  - [`stylelint-no-unresolved-module`](https://github.com/niksy/stylelint-no-unresolved-module): Ensures all imported modules can be resolved
66
65
  - [`stylelint-no-indistinguishable-colors`](https://github.com/ierhyna/stylelint-no-indistinguishable-colors): Prevents colors that are too similar
67
66
  - [`stylelint-gamut`](https://github.com/csstools/stylelint-gamut): Prevents colors outside of supported gamut range
68
67
  - [`stylelint-selector-bem-pattern`](https://github.com/simonsmith/stylelint-selector-bem-pattern): Enforces BEM naming convention
69
- - [`stylelint-no-browser-hacks`](https://github.com/stylelint/stylelint-no-browser-hacks): Disallows browser hacks
70
68
  - [`stylelint-no-unsupported-browser-features`](https://github.com/ismay/stylelint-no-unsupported-browser-features): Warns about unsupported browser features
71
- - [`stylelint-a11y`](https://github.com/YozhikM/stylelint-a11y): Ensures CSS is accessible
72
69
 
73
70
  ### Key Rules
74
71
 
75
72
  - **Browser Compatibility**: Enforces only widely supported CSS features
76
73
  - **SCSS Best Practices**: Limits nesting depth, enforces consistent naming patterns
77
74
  - **BEM Pattern**: Uses SUIT CSS methodology for class naming
78
- - **Accessibility**: Ensures focus styles, supports reduced motion, and more
79
75
  - **CSS Modules**: Special handling for `.module.scss` files with relaxed naming rules
80
76
 
81
77
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@benhigham/stylelint-config",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "description": "My personal Stylelint configuration.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/benhigham/stylelint-config#readme",
@@ -50,7 +50,6 @@
50
50
  "verify"
51
51
  ],
52
52
  "dependencies": {
53
- "stylelint-a11y": "^1.2.3",
54
53
  "stylelint-config-recess-order": "^6.0.0",
55
54
  "stylelint-config-standard-scss": "^14.0.0",
56
55
  "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
@@ -61,23 +60,23 @@
61
60
  "stylelint-no-indistinguishable-colors": "^2.3.1",
62
61
  "stylelint-no-unresolved-module": "^2.3.0",
63
62
  "stylelint-no-unsupported-browser-features": "^8.0.4",
64
- "stylelint-plugin-require-baseline": "^0.1.1",
63
+ "stylelint-plugin-use-baseline": "^0.4.1",
65
64
  "stylelint-selector-bem-pattern": "^4.0.1",
66
65
  "stylelint-use-nesting": "^6.0.0"
67
66
  },
68
67
  "devDependencies": {
69
- "@benhigham/commitlint-config": "^0.1.2",
70
- "@benhigham/prettier-config": "^0.1.0",
68
+ "@benhigham/commitlint-config": "^0.1.3",
69
+ "@benhigham/prettier-config": "^0.1.1",
71
70
  "@changesets/changelog-github": "^0.5.1",
72
- "@changesets/cli": "^2.28.1",
71
+ "@changesets/cli": "^2.29.3",
73
72
  "@commitlint/cli": "^19.8.0",
74
- "lefthook": "^1.11.9",
73
+ "lefthook": "^1.11.12",
75
74
  "prettier": "^3.5.3",
76
- "stylelint": "^16.18.0",
75
+ "stylelint": "^16.19.1",
77
76
  "stylelint-find-new-rules": "^5.0.0"
78
77
  },
79
78
  "peerDependencies": {
80
- "stylelint": ">=16.0.0"
79
+ "stylelint": ">=16.19.1"
81
80
  },
82
81
  "scripts": {
83
82
  "format": "prettier --write .",
package/src/index.js CHANGED
@@ -13,13 +13,12 @@ const config = {
13
13
  'stylelint-selector-bem-pattern',
14
14
  'stylelint-media-use-custom-media',
15
15
  'stylelint-use-nesting',
16
- 'stylelint-plugin-require-baseline',
16
+ 'stylelint-plugin-use-baseline',
17
17
  'stylelint-no-unsupported-browser-features',
18
- 'stylelint-a11y',
19
18
  ],
20
19
  rules: {
21
20
  // Browser compatibility
22
- 'plugin/require-baseline': [true, { available: 'widely' }],
21
+ 'plugin/use-baseline': [true, { available: 'newly' }],
23
22
  'plugin/no-unsupported-browser-features': true,
24
23
 
25
24
  // SCSS-specific rules
@@ -63,13 +62,6 @@ const config = {
63
62
  'gamut/color-no-out-gamut-range': true,
64
63
  'plugin/no-low-performance-animation-properties': true,
65
64
  'plugin/no-unresolved-module': { modules: ['node_modules'] },
66
-
67
- // Accessibility
68
- 'a11y/media-prefers-reduced-motion': true,
69
- 'a11y/no-outline-none': true,
70
- 'a11y/selector-pseudo-class-focus': true,
71
- 'a11y/no-obsolete-attribute': true,
72
- 'a11y/no-obsolete-element': true,
73
65
  },
74
66
  overrides: [
75
67
  {