@xiaohe01/stylelint-config 0.0.2 → 0.0.3

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
@@ -49,8 +49,8 @@ Add script for `package.json`, for example
49
49
  ```json
50
50
  {
51
51
  "scripts": {
52
- "stylelint": "stylelint **/*.{css,scss,vue,html}",
53
- "stylelint:fix": "stylelint **/*.{css,scss,vue,html} --fix"
52
+ "stylelint": "stylelint **/*.{css,scss,html,vue}",
53
+ "stylelint:fix": "stylelint **/*.{css,scss,html,vue} --fix"
54
54
  }
55
55
  }
56
56
  ```
package/dist/index.cjs CHANGED
@@ -83,14 +83,14 @@ function buildRules(options) {
83
83
  const rules = {
84
84
  ...disables,
85
85
  "color-hex-length": ["long", {
86
- message: "Hexadecimal colors need to use the long format style (#ffffff)"
86
+ message: "Hex color value should be used the long format style (#ffffff). (color-hex-length)"
87
87
  }],
88
88
  "length-zero-no-unit": [true, {
89
89
  ignoreFunctions: ["/^--/", "var", "calc"]
90
90
  }],
91
91
  "alpha-value-notation": "number",
92
92
  "selector-class-pattern": ["^([#a-z][$#{}a-z0-9]*)((-{1,2}|_{2})[$#{}a-z0-9]+)*$", {
93
- message: "Class naming should follow the BEM style (block-element[__element][--modifier])"
93
+ message: "Class naming should follow the BEM style (block-element[__element][--modifier]). (selector-class-pattern)"
94
94
  }],
95
95
  "color-function-notation": "legacy",
96
96
  "declaration-block-no-redundant-longhand-properties": [true, {
package/dist/index.mjs CHANGED
@@ -81,14 +81,14 @@ function buildRules(options) {
81
81
  const rules = {
82
82
  ...disables,
83
83
  "color-hex-length": ["long", {
84
- message: "Hexadecimal colors need to use the long format style (#ffffff)"
84
+ message: "Hex color value should be used the long format style (#ffffff). (color-hex-length)"
85
85
  }],
86
86
  "length-zero-no-unit": [true, {
87
87
  ignoreFunctions: ["/^--/", "var", "calc"]
88
88
  }],
89
89
  "alpha-value-notation": "number",
90
90
  "selector-class-pattern": ["^([#a-z][$#{}a-z0-9]*)((-{1,2}|_{2})[$#{}a-z0-9]+)*$", {
91
- message: "Class naming should follow the BEM style (block-element[__element][--modifier])"
91
+ message: "Class naming should follow the BEM style (block-element[__element][--modifier]). (selector-class-pattern)"
92
92
  }],
93
93
  "color-function-notation": "legacy",
94
94
  "declaration-block-no-redundant-longhand-properties": [true, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xiaohe01/stylelint-config",
3
3
  "type": "module",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "description": "🤚 Stylelint config preset for xiaohe",
6
6
  "author": "xiaohe0601 <xiaohe0601@outlook.com>",
7
7
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "local-pkg": "^0.5.0",
41
+ "local-pkg": "^0.5.1",
42
42
  "lodash-es": "^4.17.21",
43
43
  "postcss-html": "^1.7.0",
44
44
  "postcss-scss": "^4.0.9",
@@ -47,12 +47,12 @@
47
47
  "stylelint-config-recommended": "^14.0.1",
48
48
  "stylelint-config-recommended-vue": "^1.5.0",
49
49
  "stylelint-config-standard": "^36.0.1",
50
- "stylelint-config-standard-scss": "^13.1.0",
50
+ "stylelint-config-standard-scss": "^14.0.0",
51
51
  "stylelint-order": "^6.0.4"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@types/lodash-es": "^4.17.12",
55
- "stylelint": "^16.9.0"
55
+ "stylelint": "^16.11.0"
56
56
  },
57
57
  "scripts": {
58
58
  "build": "unbuild"