@alexlit/lint-kit 137.5.0 → 139.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/lint-kit",
3
- "version": "137.5.0",
3
+ "version": "139.0.0",
4
4
  "private": false,
5
5
  "description": "Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)",
6
6
  "keywords": [
@@ -54,3 +54,9 @@ npm i @alexlit/config-stylelint -D
54
54
  ```sh
55
55
  npx stylelint-find-new-rules
56
56
  ```
57
+
58
+ ## Usefull links
59
+
60
+ - [Awesome StyleLint](https://github.com/stylelint/awesome-stylelint)
61
+ - [stylelint-scales](https://github.com/jeddy3/stylelint-scales)
62
+ - [stylelint-value-no-unknown-custom-properties](https://github.com/csstools/stylelint-value-no-unknown-custom-properties)
@@ -4,8 +4,8 @@ const ADDITIONAL_PLUGINS = {
4
4
  'color-format': true,
5
5
  'declaration-block-no-ignored-properties': true,
6
6
  'high-performance-animation': true,
7
+ 'no-browser-hacks': true,
7
8
  'no-nested-media': true,
8
- 'no-unresolved-module': true,
9
9
  order: true,
10
10
  scss: true,
11
11
  'selector-no-empty': true,
@@ -17,7 +17,9 @@ const OPTIONAL_PLUGINS = {
17
17
  a11y: false,
18
18
  gamut: false,
19
19
  'logical-css': false,
20
+ 'media-use-custom-media': false,
20
21
  'no-indistinguishable-colors': false,
22
+ 'no-unresolved-module': false,
21
23
  'no-unsupported-browser-features': false,
22
24
  };
23
25
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "48.4.1",
3
+ "version": "50.0.0",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -36,7 +36,7 @@
36
36
  "up": "../../scripts/up.sh --local"
37
37
  },
38
38
  "dependencies": {
39
- "@double-great/stylelint-a11y": "^3.0.3",
39
+ "@double-great/stylelint-a11y": "^3.0.4",
40
40
  "postcss": "^8.5.1",
41
41
  "postcss-html": "^1.8.0",
42
42
  "prettier": "^3.4.2",
@@ -48,6 +48,8 @@
48
48
  "stylelint-declaration-block-no-ignored-properties": "^2.8.0",
49
49
  "stylelint-gamut": "^1.3.4",
50
50
  "stylelint-high-performance-animation": "^1.10.0",
51
+ "stylelint-media-use-custom-media": "^4.0.0",
52
+ "stylelint-no-browser-hacks": "^1.3.0",
51
53
  "stylelint-no-indistinguishable-colors": "^2.3.0",
52
54
  "stylelint-no-nested-media": "^0.1.0",
53
55
  "stylelint-no-unresolved-module": "^2.3.0",
@@ -0,0 +1,7 @@
1
+ /** @see [stylelint-media-use-custom-media](https://github.com/csstools/stylelint-media-use-custom-media) */
2
+ export default {
3
+ plugins: ['stylelint-media-use-custom-media'],
4
+ rules: {
5
+ 'csstools/media-use-custom-media': 'always',
6
+ },
7
+ };
@@ -0,0 +1,7 @@
1
+ /** @see [stylelint-no-browser-hacks](https://github.com/Slamdunk/stylelint-no-browser-hacks) */
2
+ export default {
3
+ plugins: ['stylelint-no-browser-hacks/lib'],
4
+ rules: {
5
+ 'plugin/no-browser-hacks': true,
6
+ },
7
+ };
@@ -25,6 +25,7 @@ export default {
25
25
  // tailwind
26
26
  'apply',
27
27
  'config',
28
+ 'custom-variant',
28
29
  'layer',
29
30
  'reference',
30
31
  'responsive',
@@ -4,6 +4,7 @@ export default createConfig({
4
4
  a11y: true,
5
5
  gamut: true,
6
6
  'logical-css': true,
7
+ 'media-use-custom-media': true,
7
8
  'no-indistinguishable-colors': false,
8
- 'no-unsupported-browser-features': false,
9
+ 'no-unsupported-browser-features': true,
9
10
  });