@tomjs/stylelint 2.7.0 → 3.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.
Files changed (3) hide show
  1. package/es/config.js +13 -56
  2. package/lib/config.js +13 -56
  3. package/package.json +10 -12
package/es/config.js CHANGED
@@ -1,45 +1,22 @@
1
1
  const config = {
2
- plugins: ["stylelint-order"],
3
- extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
2
+ extends: [
3
+ "stylelint-config-standard",
4
+ "stylelint-config-standard-scss",
5
+ "stylelint-config-recommended-vue/scss",
6
+ "stylelint-config-recess-order"
7
+ ],
4
8
  overrides: [
5
9
  {
6
- files: ["**/*.(css|html|vue)"],
10
+ files: ["**/*.{vue,html}"],
7
11
  customSyntax: "postcss-html"
8
12
  },
9
13
  {
10
- files: ["*.less", "**/*.less"],
11
- customSyntax: "postcss-less",
12
- extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
13
- },
14
- {
15
- files: ["*.scss", "**/*.scss"],
16
- customSyntax: "postcss-scss",
17
- extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
18
- rule: {
19
- "scss/percent-placeholder-pattern": null
20
- }
14
+ files: ["**/*.scss"],
15
+ customSyntax: "postcss-scss"
21
16
  }
22
17
  ],
23
18
  rules: {
24
19
  "alpha-value-notation": "number",
25
- "at-rule-no-unknown": [
26
- true,
27
- {
28
- ignoreAtRules: [
29
- "tailwind",
30
- "apply",
31
- "variants",
32
- "responsive",
33
- "screen",
34
- "function",
35
- "if",
36
- "each",
37
- "include",
38
- "mixin",
39
- "extend"
40
- ]
41
- }
42
- ],
43
20
  "color-function-notation": null,
44
21
  "font-family-no-missing-generic-family-keyword": null,
45
22
  "function-no-unknown": null,
@@ -49,26 +26,6 @@ const config = {
49
26
  "no-descending-specificity": null,
50
27
  "no-duplicate-selectors": null,
51
28
  "no-empty-source": null,
52
- "order/order": [
53
- [
54
- "dollar-variables",
55
- "custom-properties",
56
- "at-rules",
57
- "declarations",
58
- {
59
- name: "supports",
60
- type: "at-rule"
61
- },
62
- {
63
- name: "media",
64
- type: "at-rule"
65
- },
66
- "rules"
67
- ],
68
- {
69
- severity: "error"
70
- }
71
- ],
72
29
  "rule-empty-line-before": [
73
30
  "always",
74
31
  {
@@ -83,16 +40,16 @@ const config = {
83
40
  ignorePseudoClasses: ["global", "deep"]
84
41
  }
85
42
  ],
86
- "selector-pseudo-element-no-unknown": [
43
+ "unit-no-unknown": [
87
44
  true,
88
45
  {
89
- ignorePseudoElements: ["v-deep"]
46
+ ignoreUnits: ["rpx"]
90
47
  }
91
48
  ],
92
- "unit-no-unknown": [
49
+ "selector-type-no-unknown": [
93
50
  true,
94
51
  {
95
- ignoreUnits: ["rpx"]
52
+ ignoreTypes: ["page", "rich-text", "scroll-view"]
96
53
  }
97
54
  ]
98
55
  },
package/lib/config.js CHANGED
@@ -1,46 +1,23 @@
1
1
  "use strict";
2
2
  const config = {
3
- plugins: ["stylelint-order"],
4
- extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
3
+ extends: [
4
+ "stylelint-config-standard",
5
+ "stylelint-config-standard-scss",
6
+ "stylelint-config-recommended-vue/scss",
7
+ "stylelint-config-recess-order"
8
+ ],
5
9
  overrides: [
6
10
  {
7
- files: ["**/*.(css|html|vue)"],
11
+ files: ["**/*.{vue,html}"],
8
12
  customSyntax: "postcss-html"
9
13
  },
10
14
  {
11
- files: ["*.less", "**/*.less"],
12
- customSyntax: "postcss-less",
13
- extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
14
- },
15
- {
16
- files: ["*.scss", "**/*.scss"],
17
- customSyntax: "postcss-scss",
18
- extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
19
- rule: {
20
- "scss/percent-placeholder-pattern": null
21
- }
15
+ files: ["**/*.scss"],
16
+ customSyntax: "postcss-scss"
22
17
  }
23
18
  ],
24
19
  rules: {
25
20
  "alpha-value-notation": "number",
26
- "at-rule-no-unknown": [
27
- true,
28
- {
29
- ignoreAtRules: [
30
- "tailwind",
31
- "apply",
32
- "variants",
33
- "responsive",
34
- "screen",
35
- "function",
36
- "if",
37
- "each",
38
- "include",
39
- "mixin",
40
- "extend"
41
- ]
42
- }
43
- ],
44
21
  "color-function-notation": null,
45
22
  "font-family-no-missing-generic-family-keyword": null,
46
23
  "function-no-unknown": null,
@@ -50,26 +27,6 @@ const config = {
50
27
  "no-descending-specificity": null,
51
28
  "no-duplicate-selectors": null,
52
29
  "no-empty-source": null,
53
- "order/order": [
54
- [
55
- "dollar-variables",
56
- "custom-properties",
57
- "at-rules",
58
- "declarations",
59
- {
60
- name: "supports",
61
- type: "at-rule"
62
- },
63
- {
64
- name: "media",
65
- type: "at-rule"
66
- },
67
- "rules"
68
- ],
69
- {
70
- severity: "error"
71
- }
72
- ],
73
30
  "rule-empty-line-before": [
74
31
  "always",
75
32
  {
@@ -84,16 +41,16 @@ const config = {
84
41
  ignorePseudoClasses: ["global", "deep"]
85
42
  }
86
43
  ],
87
- "selector-pseudo-element-no-unknown": [
44
+ "unit-no-unknown": [
88
45
  true,
89
46
  {
90
- ignorePseudoElements: ["v-deep"]
47
+ ignoreUnits: ["rpx"]
91
48
  }
92
49
  ],
93
- "unit-no-unknown": [
50
+ "selector-type-no-unknown": [
94
51
  true,
95
52
  {
96
- ignoreUnits: ["rpx"]
53
+ ignoreTypes: ["page", "rich-text", "scroll-view"]
97
54
  }
98
55
  ]
99
56
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/stylelint",
3
- "version": "2.7.0",
3
+ "version": "3.0.0",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -40,21 +40,19 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "postcss": "^8.4.39",
44
- "postcss-html": "^1.7.0",
45
- "postcss-less": "^6.0.0",
43
+ "postcss": "^8.5.3",
44
+ "postcss-html": "^1.8.0",
46
45
  "postcss-scss": "^4.0.9",
47
- "stylelint-config-property-sort-order-smacss": "^10.0.0",
48
- "stylelint-config-recommended": "^14.0.1",
49
- "stylelint-config-recommended-vue": "^1.5.0",
50
- "stylelint-config-standard": "^36.0.1",
51
- "stylelint-config-standard-scss": "^13.1.0",
52
- "stylelint-order": "^6.0.4",
53
- "stylelint-prettier": "^5.0.0"
46
+ "stylelint-config-recess-order": "^6.0.0",
47
+ "stylelint-config-recommended": "^15.0.0",
48
+ "stylelint-config-recommended-vue": "^1.6.0",
49
+ "stylelint-config-standard": "^37.0.0",
50
+ "stylelint-config-standard-scss": "^14.0.0",
51
+ "stylelint-prettier": "^5.0.3"
54
52
  },
55
53
  "peerDependencies": {
56
54
  "prettier": "^3.0.0",
57
- "stylelint": "^16.3.1"
55
+ "stylelint": "^16.13.0"
58
56
  },
59
57
  "peerDependenciesMeta": {
60
58
  "prettier": {