@cherepanov.pavel/shareable-config 2.0.14 → 2.0.15

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.
@@ -48,6 +48,7 @@
48
48
  "stylelint.validate": [
49
49
  "css",
50
50
  "vue",
51
+ "astro",
51
52
  ],
52
53
  "cSpell.language": "en,ru",
53
54
  "cSpell.words": [
@@ -6,17 +6,15 @@ import {
6
6
  } from "node:url";
7
7
 
8
8
  const currentDir = dirname(fileURLToPath(import.meta.url));
9
- function concat(...arrays) {
10
- return [].concat(...arrays);
11
- }
12
9
 
13
10
  export const baseConfig = {
14
- extends: concat(
15
- [
11
+ extends: [
12
+ ...[
13
+ "stylelint-config-html/astro",
16
14
  "stylelint-config-standard",
17
15
  "stylelint-config-standard-vue",
18
16
  ],
19
- [
17
+ ...[
20
18
  "./rules/base.js",
21
19
  "./rules/stylistic.js",
22
20
  "./rules/order.js",
@@ -24,7 +22,7 @@ export const baseConfig = {
24
22
  ].map((string) => {
25
23
  return path.resolve(currentDir, string);
26
24
  }),
27
- ),
25
+ ],
28
26
  plugins: [
29
27
  "@stylistic/stylelint-plugin",
30
28
  ],
@@ -1,7 +1,6 @@
1
1
  export default {
2
2
  rules: {
3
3
  "declaration-empty-line-before": null, // order/properties-order [./order.cjs]
4
- // https://gitlab.kadnk.ru/frontend/configs/-/issues/2
5
4
  "length-zero-no-unit": null,
6
5
  },
7
6
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cherepanov.pavel/shareable-config",
3
3
  "description": "setup for new repositories",
4
- "version": "2.0.14",
4
+ "version": "2.0.15",
5
5
  "type": "module",
6
6
  "devEngines": {
7
7
  "packageManager": {
@@ -51,7 +51,7 @@
51
51
  "lint:fix": "run-p -lc lint:js:fix lint:css:fix",
52
52
  "lint:js": "eslint",
53
53
  "lint:js:fix": "npm run lint:js -- --fix",
54
- "lint:css": "stylelint \"./**/*.{css,vue}\" --ignore-path .gitignore --formatter verbose",
54
+ "lint:css": "stylelint \"./**/*.{css,vue,astro}\" --ignore-path .gitignore --formatter verbose",
55
55
  "lint:css:fix": "npm run lint:css -- --fix"
56
56
  },
57
57
  "dependencies": {
@@ -71,6 +71,7 @@
71
71
  "npm-run-all2": "^9.0.3",
72
72
  "postcss-html": "^2.0.0",
73
73
  "stylelint": "^17.14.1",
74
+ "stylelint-config-html": "^2.0.0",
74
75
  "stylelint-config-standard": "^40.0.0",
75
76
  "stylelint-config-standard-vue": "^2.0.0",
76
77
  "stylelint-order": "^8.1.1",