@tomjs/stylelint 2.6.1 → 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.
package/es/config.js ADDED
@@ -0,0 +1,60 @@
1
+ const config = {
2
+ extends: [
3
+ "stylelint-config-standard",
4
+ "stylelint-config-standard-scss",
5
+ "stylelint-config-recommended-vue/scss",
6
+ "stylelint-config-recess-order"
7
+ ],
8
+ overrides: [
9
+ {
10
+ files: ["**/*.{vue,html}"],
11
+ customSyntax: "postcss-html"
12
+ },
13
+ {
14
+ files: ["**/*.scss"],
15
+ customSyntax: "postcss-scss"
16
+ }
17
+ ],
18
+ rules: {
19
+ "alpha-value-notation": "number",
20
+ "color-function-notation": null,
21
+ "font-family-no-missing-generic-family-keyword": null,
22
+ "function-no-unknown": null,
23
+ "import-notation": null,
24
+ "media-feature-range-notation": "prefix",
25
+ "named-grid-areas-no-invalid": null,
26
+ "no-descending-specificity": null,
27
+ "no-duplicate-selectors": null,
28
+ "no-empty-source": null,
29
+ "rule-empty-line-before": [
30
+ "always",
31
+ {
32
+ ignore: ["after-comment", "first-nested"]
33
+ }
34
+ ],
35
+ "selector-class-pattern": null,
36
+ "selector-not-notation": null,
37
+ "selector-pseudo-class-no-unknown": [
38
+ true,
39
+ {
40
+ ignorePseudoClasses: ["global", "deep"]
41
+ }
42
+ ],
43
+ "unit-no-unknown": [
44
+ true,
45
+ {
46
+ ignoreUnits: ["rpx"]
47
+ }
48
+ ],
49
+ "selector-type-no-unknown": [
50
+ true,
51
+ {
52
+ ignoreTypes: ["page", "rich-text", "scroll-view"]
53
+ }
54
+ ]
55
+ },
56
+ ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
57
+ };
58
+ export {
59
+ config as default
60
+ };
package/es/index.js CHANGED
@@ -1,102 +1,6 @@
1
1
  const index = {
2
- plugins: ["stylelint-order", "stylelint-prettier"],
3
- extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
4
- overrides: [
5
- {
6
- files: ["**/*.(css|html|vue)"],
7
- customSyntax: "postcss-html"
8
- },
9
- {
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
- }
21
- }
22
- ],
23
- rules: {
24
- "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
- "color-function-notation": null,
44
- "font-family-no-missing-generic-family-keyword": null,
45
- "function-no-unknown": null,
46
- "import-notation": null,
47
- "media-feature-range-notation": "prefix",
48
- "named-grid-areas-no-invalid": null,
49
- "no-descending-specificity": null,
50
- "no-duplicate-selectors": null,
51
- "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
- "rule-empty-line-before": [
73
- "always",
74
- {
75
- ignore: ["after-comment", "first-nested"]
76
- }
77
- ],
78
- "selector-class-pattern": null,
79
- "selector-not-notation": null,
80
- "selector-pseudo-class-no-unknown": [
81
- true,
82
- {
83
- ignorePseudoClasses: ["global", "deep"]
84
- }
85
- ],
86
- "selector-pseudo-element-no-unknown": [
87
- true,
88
- {
89
- ignorePseudoElements: ["v-deep"]
90
- }
91
- ],
92
- "unit-no-unknown": [
93
- true,
94
- {
95
- ignoreUnits: ["rpx"]
96
- }
97
- ]
98
- },
99
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
2
+ extends: ["./config"],
3
+ plugins: ["stylelint-prettier"]
100
4
  };
101
5
  export {
102
6
  index as default
package/lib/config.js ADDED
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ const config = {
3
+ extends: [
4
+ "stylelint-config-standard",
5
+ "stylelint-config-standard-scss",
6
+ "stylelint-config-recommended-vue/scss",
7
+ "stylelint-config-recess-order"
8
+ ],
9
+ overrides: [
10
+ {
11
+ files: ["**/*.{vue,html}"],
12
+ customSyntax: "postcss-html"
13
+ },
14
+ {
15
+ files: ["**/*.scss"],
16
+ customSyntax: "postcss-scss"
17
+ }
18
+ ],
19
+ rules: {
20
+ "alpha-value-notation": "number",
21
+ "color-function-notation": null,
22
+ "font-family-no-missing-generic-family-keyword": null,
23
+ "function-no-unknown": null,
24
+ "import-notation": null,
25
+ "media-feature-range-notation": "prefix",
26
+ "named-grid-areas-no-invalid": null,
27
+ "no-descending-specificity": null,
28
+ "no-duplicate-selectors": null,
29
+ "no-empty-source": null,
30
+ "rule-empty-line-before": [
31
+ "always",
32
+ {
33
+ ignore: ["after-comment", "first-nested"]
34
+ }
35
+ ],
36
+ "selector-class-pattern": null,
37
+ "selector-not-notation": null,
38
+ "selector-pseudo-class-no-unknown": [
39
+ true,
40
+ {
41
+ ignorePseudoClasses: ["global", "deep"]
42
+ }
43
+ ],
44
+ "unit-no-unknown": [
45
+ true,
46
+ {
47
+ ignoreUnits: ["rpx"]
48
+ }
49
+ ],
50
+ "selector-type-no-unknown": [
51
+ true,
52
+ {
53
+ ignoreTypes: ["page", "rich-text", "scroll-view"]
54
+ }
55
+ ]
56
+ },
57
+ ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
58
+ };
59
+ module.exports = config;
package/lib/index.js CHANGED
@@ -1,102 +1,6 @@
1
1
  "use strict";
2
2
  const index = {
3
- plugins: ["stylelint-order", "stylelint-prettier"],
4
- extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
5
- overrides: [
6
- {
7
- files: ["**/*.(css|html|vue)"],
8
- customSyntax: "postcss-html"
9
- },
10
- {
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
- }
22
- }
23
- ],
24
- rules: {
25
- "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
- "color-function-notation": null,
45
- "font-family-no-missing-generic-family-keyword": null,
46
- "function-no-unknown": null,
47
- "import-notation": null,
48
- "media-feature-range-notation": "prefix",
49
- "named-grid-areas-no-invalid": null,
50
- "no-descending-specificity": null,
51
- "no-duplicate-selectors": null,
52
- "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
- "rule-empty-line-before": [
74
- "always",
75
- {
76
- ignore: ["after-comment", "first-nested"]
77
- }
78
- ],
79
- "selector-class-pattern": null,
80
- "selector-not-notation": null,
81
- "selector-pseudo-class-no-unknown": [
82
- true,
83
- {
84
- ignorePseudoClasses: ["global", "deep"]
85
- }
86
- ],
87
- "selector-pseudo-element-no-unknown": [
88
- true,
89
- {
90
- ignorePseudoElements: ["v-deep"]
91
- }
92
- ],
93
- "unit-no-unknown": [
94
- true,
95
- {
96
- ignoreUnits: ["rpx"]
97
- }
98
- ]
99
- },
100
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
3
+ extends: ["./config"],
4
+ plugins: ["stylelint-prettier"]
101
5
  };
102
6
  module.exports = index;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/stylelint",
3
- "version": "2.6.1",
3
+ "version": "3.0.0",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -33,24 +33,31 @@
33
33
  ".": {
34
34
  "require": "./lib/index.js",
35
35
  "import": "./es/index.js"
36
+ },
37
+ "./config": {
38
+ "require": "./lib/config.js",
39
+ "import": "./es/config.js"
36
40
  }
37
41
  },
38
42
  "dependencies": {
39
- "postcss": "^8.4.39",
40
- "postcss-html": "^1.7.0",
41
- "postcss-less": "^6.0.0",
43
+ "postcss": "^8.5.3",
44
+ "postcss-html": "^1.8.0",
42
45
  "postcss-scss": "^4.0.9",
43
- "stylelint-config-property-sort-order-smacss": "^10.0.0",
44
- "stylelint-config-recommended": "^14.0.1",
45
- "stylelint-config-recommended-vue": "^1.5.0",
46
- "stylelint-config-standard": "^36.0.1",
47
- "stylelint-config-standard-scss": "^13.1.0",
48
- "stylelint-order": "^6.0.4",
49
- "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"
50
52
  },
51
53
  "peerDependencies": {
52
54
  "prettier": "^3.0.0",
53
- "stylelint": "^16.3.1"
55
+ "stylelint": "^16.13.0"
56
+ },
57
+ "peerDependenciesMeta": {
58
+ "prettier": {
59
+ "optional": true
60
+ }
54
61
  },
55
62
  "engines": {
56
63
  "node": ">=18.12.0"