@tomjs/stylelint 2.6.1 → 2.7.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,103 @@
1
+ const config = {
2
+ plugins: ["stylelint-order"],
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"]
100
+ };
101
+ export {
102
+ config as default
103
+ };
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,102 @@
1
+ "use strict";
2
+ const config = {
3
+ plugins: ["stylelint-order"],
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"]
101
+ };
102
+ 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": "2.7.0",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -33,6 +33,10 @@
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": {
@@ -52,6 +56,11 @@
52
56
  "prettier": "^3.0.0",
53
57
  "stylelint": "^16.3.1"
54
58
  },
59
+ "peerDependenciesMeta": {
60
+ "prettier": {
61
+ "optional": true
62
+ }
63
+ },
55
64
  "engines": {
56
65
  "node": ">=18.12.0"
57
66
  },