@alexlit/config-stylelint 38.7.1 → 40.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/README.md CHANGED
@@ -10,7 +10,9 @@ npm i @alexlit/config-stylelint -D
10
10
 
11
11
  ```js
12
12
  // .stylelintrc.js
13
- module.exports = {
13
+ import config from '@alexlit/config-stylelint';
14
+
15
+ export default {
14
16
  extends: [
15
17
  '@alexlit/config-stylelint',
16
18
 
@@ -19,8 +21,7 @@ module.exports = {
19
21
  '@alexlit/config-stylelint/plugins/optional/no-indistinguishable-colors',
20
22
  '@alexlit/config-stylelint/plugins/optional/logical-css',
21
23
  ],
22
-
23
- ignoreFiles: [...require('@alexlit/config-stylelint').ignoreFiles],
24
+ ignoreFiles: [...config.ignoreFiles],
24
25
  };
25
26
  ```
26
27
 
package/index.js CHANGED
@@ -1,29 +1,28 @@
1
1
  /* eslint-disable sonarjs/no-duplicate-string, unicorn/no-null */
2
- module.exports = {
2
+ export default {
3
3
  extends: [
4
4
  'stylelint-config-standard',
5
- ...[
6
- './plugins/a11y',
7
- './plugins/at-rule-no-children',
8
- './plugins/color-format',
9
- './plugins/declaration-block-no-ignored-properties',
10
- './plugins/high-performance-animation',
11
- './plugins/no-nested-media',
12
- './plugins/no-unresolved-module',
13
- './plugins/no-unsupported-browser-features',
14
- './plugins/order',
15
- './plugins/scss',
16
- './plugins/selector-no-empty',
17
- './plugins/use-nesting',
18
- './plugins/vue',
19
-
20
- './plugins/prettier',
21
-
22
- // optional
23
- // './plugins/gamut',
24
- // './plugins/no-indistinguishable-colors',
25
- // './plugins/optional/logical-css',
26
- ].map((config) => require.resolve(config)),
5
+
6
+ // './plugins/a11y',
7
+ './plugins/at-rule-no-children',
8
+ './plugins/color-format',
9
+ './plugins/declaration-block-no-ignored-properties',
10
+ // './plugins/high-performance-animation',
11
+ './plugins/no-nested-media',
12
+ './plugins/no-unresolved-module',
13
+ './plugins/no-unsupported-browser-features',
14
+ './plugins/order',
15
+ './plugins/scss',
16
+ './plugins/selector-no-empty',
17
+ // './plugins/use-nesting',
18
+ './plugins/vue',
19
+
20
+ './plugins/prettier',
21
+
22
+ // optional
23
+ // './plugins/gamut',
24
+ // './plugins/no-indistinguishable-colors',
25
+ // './plugins/optional/logical-css',
27
26
  ],
28
27
 
29
28
  ignoreFiles: [
@@ -80,7 +79,6 @@ module.exports = {
80
79
  'function-url-quotes': 'always',
81
80
  'function-url-scheme-disallowed-list': ['/^data/', 'ftp', '/^http/'],
82
81
  'hue-degree-notation': 'angle',
83
- indentation: null,
84
82
  'keyframes-name-pattern': '^[a-z]+(-[a-z]+)*$',
85
83
 
86
84
  'max-nesting-depth': [
@@ -94,7 +92,6 @@ module.exports = {
94
92
  'media-feature-name-no-vendor-prefix': true,
95
93
  'no-descending-specificity': null,
96
94
  'no-empty-source': null,
97
- 'no-missing-end-of-source-newline': null,
98
95
  'no-unknown-animations': true,
99
96
  'number-max-precision': 3,
100
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexlit/config-stylelint",
3
- "version": "38.7.1",
3
+ "version": "40.0.0",
4
4
  "private": false,
5
5
  "description": "Stylelint config",
6
6
  "keywords": [
@@ -21,6 +21,7 @@
21
21
  "maintainers": [
22
22
  "Alexey Litovchenko <alex.lit@outlook.com> (https://alexlit.gitlab.io)"
23
23
  ],
24
+ "type": "module",
24
25
  "main": "index.js",
25
26
  "files": [
26
27
  "README.md",
@@ -32,28 +33,31 @@
32
33
  "up": "../../scripts/up.sh"
33
34
  },
34
35
  "dependencies": {
35
- "@double-great/stylelint-a11y": "^2.0.2",
36
+ "@double-great/stylelint-a11y": "^3.0.0",
36
37
  "postcss": "^8.4.32",
37
38
  "postcss-html": "^1.5.0",
38
- "prettier": "^3.1.0",
39
- "stylelint": "^15.11.0",
39
+ "prettier": "^3.1.1",
40
+ "stylelint": "^16.1.0",
40
41
  "stylelint-at-rule-no-children": "^0.3.1",
41
42
  "stylelint-color-format": "^1.1.0",
42
43
  "stylelint-config-recommended-vue": "^1.5.0",
43
- "stylelint-config-standard": "^34.0.0",
44
- "stylelint-config-standard-scss": "^11.1.0",
44
+ "stylelint-config-standard": "^36.0.0",
45
+ "stylelint-config-standard-scss": "^12.0.0",
45
46
  "stylelint-declaration-block-no-ignored-properties": "^2.7.0",
46
- "stylelint-gamut": "^1.3.3",
47
+ "stylelint-gamut": "^1.3.4",
47
48
  "stylelint-high-performance-animation": "^1.9.0",
48
49
  "stylelint-no-indistinguishable-colors": "^1.3.2",
49
50
  "stylelint-no-nested-media": "^0.1.0",
50
51
  "stylelint-no-unresolved-module": "^2.2.1",
51
52
  "stylelint-no-unsupported-browser-features": "^7.0.0",
52
- "stylelint-order": "^6.0.3",
53
+ "stylelint-order": "^6.0.4",
53
54
  "stylelint-plugin-logical-css": "^0.13.2",
54
- "stylelint-prettier": "^4.1.0",
55
- "stylelint-scss": "^5.3.1",
55
+ "stylelint-prettier": "^5.0.0",
56
+ "stylelint-scss": "^6.0.0",
56
57
  "stylelint-selector-no-empty": "^1.0.9",
57
58
  "stylelint-use-nesting": "^4.1.0"
59
+ },
60
+ "engines": {
61
+ "node": ">=18.12.0"
58
62
  }
59
63
  }
package/plugins/a11y.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-a11y](https://github.com/double-great/stylelint-a11y) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['@double-great/stylelint-a11y'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-at-rule-no-children](https://github.com/adityavm/stylelint-at-rule-no-children) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-at-rule-no-children'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-color-format](https://github.com/filipekiss/stylelint-color-format) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-color-format'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-declaration-block-no-ignored-properties](https://github.com/kristerkari/stylelint-declaration-block-no-ignored-properties) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-declaration-block-no-ignored-properties'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-high-performance-animation](https://github.com/kristerkari/stylelint-high-performance-animation) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-high-performance-animation'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-no-nested-media](https://github.com/dkrnl/stylelint-no-nested-media) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-no-nested-media'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-no-unresolved-module](https://github.com/niksy/stylelint-no-unresolved-module) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-no-unresolved-module'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-no-unsupported-browser-features](https://github.com/ismay/stylelint-no-unsupported-browser-features) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-no-unsupported-browser-features'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-gamut](https://github.com/fpetrakov/stylelint-gamut) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-gamut'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-plugin-logical-css](https://github.com/yuschick/stylelint-plugin-logical-css) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-plugin-logical-css'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-no-indistinguishable-colors](https://github.com/ierhyna/stylelint-no-indistinguishable-colors) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-no-indistinguishable-colors'],
4
4
 
5
5
  rules: {
package/plugins/order.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-order](https://github.com/hudochenkov/stylelint-order) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-order'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-prettier](https://github.com/prettier/stylelint-prettier) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-prettier'],
4
4
 
5
5
  rules: {
package/plugins/scss.js CHANGED
@@ -2,7 +2,7 @@
2
2
  const KEBAB_CASE_PATTERN = '^[a-z]+([a-z0-9-]+[a-z0-9]+)?$';
3
3
 
4
4
  /** @see [stylelint-scss](https://github.com/kristerkari/stylelint-scss) */
5
- module.exports = {
5
+ export default {
6
6
  extends: ['stylelint-config-standard-scss'],
7
7
 
8
8
  plugins: ['stylelint-scss'],
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-selector-no-empty](https://github.com/ssivanatarajan/stylelint-selector-no-empty) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-selector-no-empty'],
4
4
 
5
5
  rules: {
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-use-nesting](https://github.com/csstools/stylelint-use-nesting) */
2
- module.exports = {
2
+ export default {
3
3
  plugins: ['stylelint-use-nesting'],
4
4
 
5
5
  rules: {
package/plugins/vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** @see [stylelint-config-recommended-vue](https://github.com/ota-meshi/stylelint-config-recommended-vue) */
2
2
 
3
- module.exports = {
3
+ export default {
4
4
  extends: 'stylelint-config-recommended-vue',
5
5
  };