@tomjs/stylelint 1.0.7 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @tomjs/stylelint
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Change records
8
+ - fix: stylelint high version
9
+
10
+ ## 1.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - Change records
15
+ - feat: stylelint remove vue's export
16
+ - chore: update deps
17
+
3
18
  ## 1.0.7
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -20,20 +20,6 @@ module.exports = {
20
20
  };
21
21
  ```
22
22
 
23
- ### vue
24
-
25
- vue 项目 stylelint 配置
26
-
27
- #### 修改配置
28
-
29
- 修改 `.stylelintrc.{js,cjs}` 配置,如
30
-
31
- ```js
32
- module.exports = {
33
- extends: [require.resolve('@tomjs/stylelint/vue')],
34
- };
35
- ```
36
-
37
23
  #### 制作配置
38
24
 
39
25
  ```bash
package/es/index.js CHANGED
@@ -3,18 +3,18 @@ const index = {
3
3
  extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
4
4
  overrides: [
5
5
  {
6
- files: ["**/*.(css|html)"],
6
+ files: ["**/*.(css|html|vue)"],
7
7
  customSyntax: "postcss-html"
8
8
  },
9
9
  {
10
10
  files: ["*.less", "**/*.less"],
11
11
  customSyntax: "postcss-less",
12
- extends: ["stylelint-config-standard"]
12
+ extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
13
13
  },
14
14
  {
15
15
  files: ["*.scss", "**/*.scss"],
16
16
  customSyntax: "postcss-scss",
17
- extends: ["stylelint-config-standard-scss"],
17
+ extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
18
18
  rule: {
19
19
  "scss/percent-placeholder-pattern": null
20
20
  }
package/lib/index.js CHANGED
@@ -4,18 +4,18 @@ const index = {
4
4
  extends: ["stylelint-config-standard", "stylelint-config-property-sort-order-smacss"],
5
5
  overrides: [
6
6
  {
7
- files: ["**/*.(css|html)"],
7
+ files: ["**/*.(css|html|vue)"],
8
8
  customSyntax: "postcss-html"
9
9
  },
10
10
  {
11
11
  files: ["*.less", "**/*.less"],
12
12
  customSyntax: "postcss-less",
13
- extends: ["stylelint-config-standard"]
13
+ extends: ["stylelint-config-standard", "stylelint-config-recommended-vue"]
14
14
  },
15
15
  {
16
16
  files: ["*.scss", "**/*.scss"],
17
17
  customSyntax: "postcss-scss",
18
- extends: ["stylelint-config-standard-scss"],
18
+ extends: ["stylelint-config-standard-scss", "stylelint-config-recommended-vue/scss"],
19
19
  rule: {
20
20
  "scss/percent-placeholder-pattern": null
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tomjs/stylelint",
3
- "version": "1.0.7",
3
+ "version": "1.1.1",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "tomjs",
@@ -35,23 +35,19 @@
35
35
  "require": "./lib/index.js",
36
36
  "import": "./es/index.js",
37
37
  "types": "./es/index.d.ts"
38
- },
39
- "./vue": {
40
- "require": "./lib/vue.js",
41
- "import": "./es/vue.js",
42
- "types": "./es/vue.d.ts"
43
38
  }
44
39
  },
45
40
  "dependencies": {
46
- "postcss": "^8.4.31",
41
+ "postcss": "^8.4.32",
47
42
  "postcss-html": "^1.5.0",
48
43
  "postcss-less": "^6.0.0",
49
44
  "postcss-scss": "^4.0.9",
50
45
  "stylelint-config-property-sort-order-smacss": "^9.1.0",
46
+ "stylelint-config-recommended": "^13.0.0",
51
47
  "stylelint-config-recommended-vue": "^1.5.0",
52
48
  "stylelint-config-standard": "^34.0.0",
53
49
  "stylelint-config-standard-scss": "^11.1.0",
54
- "stylelint-order": "^6.0.3",
50
+ "stylelint-order": "^6.0.4",
55
51
  "stylelint-prettier": "^4.1.0"
56
52
  },
57
53
  "peerDependencies": {
package/es/vue.d.ts DELETED
@@ -1,60 +0,0 @@
1
- declare const _default: {
2
- plugins: string[];
3
- extends: string[];
4
- overrides: ({
5
- files: string[];
6
- customSyntax: string;
7
- extends?: undefined;
8
- rule?: undefined;
9
- } | {
10
- files: string[];
11
- customSyntax: string;
12
- extends: string[];
13
- rule?: undefined;
14
- } | {
15
- files: string[];
16
- customSyntax: string;
17
- extends: string[];
18
- rule: {
19
- 'scss/percent-placeholder-pattern': null;
20
- };
21
- })[];
22
- rules: {
23
- 'no-duplicate-selectors': null;
24
- 'media-feature-range-notation': string;
25
- 'color-function-notation': null;
26
- 'alpha-value-notation': string;
27
- 'selector-not-notation': null;
28
- 'import-notation': null;
29
- 'function-no-unknown': null;
30
- 'selector-class-pattern': null;
31
- 'selector-pseudo-class-no-unknown': (boolean | {
32
- ignorePseudoClasses: string[];
33
- })[];
34
- 'selector-pseudo-element-no-unknown': (boolean | {
35
- ignorePseudoElements: string[];
36
- })[];
37
- 'at-rule-no-unknown': (boolean | {
38
- ignoreAtRules: string[];
39
- })[];
40
- 'no-empty-source': null;
41
- 'string-quotes': null;
42
- 'named-grid-areas-no-invalid': null;
43
- 'no-descending-specificity': null;
44
- 'font-family-no-missing-generic-family-keyword': null;
45
- 'rule-empty-line-before': (string | {
46
- ignore: string[];
47
- })[];
48
- 'unit-no-unknown': (boolean | {
49
- ignoreUnits: string[];
50
- })[];
51
- 'order/order': ((string | {
52
- type: string;
53
- name: string;
54
- })[] | {
55
- severity: string;
56
- })[];
57
- };
58
- ignoreFiles: string[];
59
- };
60
- export default _default;
package/es/vue.js DELETED
@@ -1,97 +0,0 @@
1
- const vue = {
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
- "no-duplicate-selectors": null,
25
- "media-feature-range-notation": "prefix",
26
- "color-function-notation": null,
27
- "alpha-value-notation": "number",
28
- "selector-not-notation": null,
29
- "import-notation": null,
30
- "function-no-unknown": null,
31
- "selector-class-pattern": null,
32
- "selector-pseudo-class-no-unknown": [
33
- true,
34
- {
35
- ignorePseudoClasses: ["global", "deep"]
36
- }
37
- ],
38
- "selector-pseudo-element-no-unknown": [
39
- true,
40
- {
41
- ignorePseudoElements: ["v-deep"]
42
- }
43
- ],
44
- "at-rule-no-unknown": [
45
- true,
46
- {
47
- ignoreAtRules: [
48
- "tailwind",
49
- "apply",
50
- "variants",
51
- "responsive",
52
- "screen",
53
- "function",
54
- "if",
55
- "each",
56
- "include",
57
- "mixin",
58
- "extend"
59
- ]
60
- }
61
- ],
62
- "no-empty-source": null,
63
- "string-quotes": null,
64
- "named-grid-areas-no-invalid": null,
65
- "no-descending-specificity": null,
66
- "font-family-no-missing-generic-family-keyword": null,
67
- "rule-empty-line-before": [
68
- "always",
69
- {
70
- ignore: ["after-comment", "first-nested"]
71
- }
72
- ],
73
- "unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
74
- "order/order": [
75
- [
76
- "dollar-variables",
77
- "custom-properties",
78
- "at-rules",
79
- "declarations",
80
- {
81
- type: "at-rule",
82
- name: "supports"
83
- },
84
- {
85
- type: "at-rule",
86
- name: "media"
87
- },
88
- "rules"
89
- ],
90
- { severity: "error" }
91
- ]
92
- },
93
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
94
- };
95
- export {
96
- vue as default
97
- };
package/lib/vue.d.ts DELETED
@@ -1,60 +0,0 @@
1
- declare const _default: {
2
- plugins: string[];
3
- extends: string[];
4
- overrides: ({
5
- files: string[];
6
- customSyntax: string;
7
- extends?: undefined;
8
- rule?: undefined;
9
- } | {
10
- files: string[];
11
- customSyntax: string;
12
- extends: string[];
13
- rule?: undefined;
14
- } | {
15
- files: string[];
16
- customSyntax: string;
17
- extends: string[];
18
- rule: {
19
- 'scss/percent-placeholder-pattern': null;
20
- };
21
- })[];
22
- rules: {
23
- 'no-duplicate-selectors': null;
24
- 'media-feature-range-notation': string;
25
- 'color-function-notation': null;
26
- 'alpha-value-notation': string;
27
- 'selector-not-notation': null;
28
- 'import-notation': null;
29
- 'function-no-unknown': null;
30
- 'selector-class-pattern': null;
31
- 'selector-pseudo-class-no-unknown': (boolean | {
32
- ignorePseudoClasses: string[];
33
- })[];
34
- 'selector-pseudo-element-no-unknown': (boolean | {
35
- ignorePseudoElements: string[];
36
- })[];
37
- 'at-rule-no-unknown': (boolean | {
38
- ignoreAtRules: string[];
39
- })[];
40
- 'no-empty-source': null;
41
- 'string-quotes': null;
42
- 'named-grid-areas-no-invalid': null;
43
- 'no-descending-specificity': null;
44
- 'font-family-no-missing-generic-family-keyword': null;
45
- 'rule-empty-line-before': (string | {
46
- ignore: string[];
47
- })[];
48
- 'unit-no-unknown': (boolean | {
49
- ignoreUnits: string[];
50
- })[];
51
- 'order/order': ((string | {
52
- type: string;
53
- name: string;
54
- })[] | {
55
- severity: string;
56
- })[];
57
- };
58
- ignoreFiles: string[];
59
- };
60
- export default _default;
package/lib/vue.js DELETED
@@ -1,96 +0,0 @@
1
- "use strict";
2
- const vue = {
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
- "no-duplicate-selectors": null,
26
- "media-feature-range-notation": "prefix",
27
- "color-function-notation": null,
28
- "alpha-value-notation": "number",
29
- "selector-not-notation": null,
30
- "import-notation": null,
31
- "function-no-unknown": null,
32
- "selector-class-pattern": null,
33
- "selector-pseudo-class-no-unknown": [
34
- true,
35
- {
36
- ignorePseudoClasses: ["global", "deep"]
37
- }
38
- ],
39
- "selector-pseudo-element-no-unknown": [
40
- true,
41
- {
42
- ignorePseudoElements: ["v-deep"]
43
- }
44
- ],
45
- "at-rule-no-unknown": [
46
- true,
47
- {
48
- ignoreAtRules: [
49
- "tailwind",
50
- "apply",
51
- "variants",
52
- "responsive",
53
- "screen",
54
- "function",
55
- "if",
56
- "each",
57
- "include",
58
- "mixin",
59
- "extend"
60
- ]
61
- }
62
- ],
63
- "no-empty-source": null,
64
- "string-quotes": null,
65
- "named-grid-areas-no-invalid": null,
66
- "no-descending-specificity": null,
67
- "font-family-no-missing-generic-family-keyword": null,
68
- "rule-empty-line-before": [
69
- "always",
70
- {
71
- ignore: ["after-comment", "first-nested"]
72
- }
73
- ],
74
- "unit-no-unknown": [true, { ignoreUnits: ["rpx"] }],
75
- "order/order": [
76
- [
77
- "dollar-variables",
78
- "custom-properties",
79
- "at-rules",
80
- "declarations",
81
- {
82
- type: "at-rule",
83
- name: "supports"
84
- },
85
- {
86
- type: "at-rule",
87
- name: "media"
88
- },
89
- "rules"
90
- ],
91
- { severity: "error" }
92
- ]
93
- },
94
- ignoreFiles: ["**/*.js", "**/*.jsx", "**/*.tsx", "**/*.ts"]
95
- };
96
- module.exports = vue;