@culur/config-stylelint 1.0.1 → 1.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/CHANGELOG.md +65 -13
- package/README.md +30 -30
- package/package.json +16 -16
- package/src/__tests__/mock.ts +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,35 +1,87 @@
|
|
|
1
1
|
# @culur/config-stylelint
|
|
2
2
|
|
|
3
|
+
## 1.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ✨ Update tsup config ([`571e742`](https://github.com/culur/culur/commit/571e742777500a4c30fcc433e84c5ed081db8cb8)) ([@phamhongphuc](https://github.com/phamhongphuc)).
|
|
8
|
+
|
|
9
|
+
- 📦 Update dependencies ([`48415cd`](https://github.com/culur/culur/commit/48415cd678f229f7de42a24141ebf6ab76aa2d19)) ([@renovate](https://github.com/apps/renovate)):
|
|
10
|
+
|
|
11
|
+
- `devDependencies`:
|
|
12
|
+
- `rimraf@^6.0.1`
|
|
13
|
+
|
|
14
|
+
- 📦 Update dependencies ([`9e437f6`](https://github.com/culur/culur/commit/9e437f6a43faa352d4a2d9235571df68b084ebf5)) ([@renovate](https://github.com/apps/renovate)):
|
|
15
|
+
|
|
16
|
+
- `dependencies`:
|
|
17
|
+
- `stylelint-scss@^6.4.1`
|
|
18
|
+
|
|
19
|
+
- 📦 Update dependencies ([`bcc7aeb`](https://github.com/culur/culur/commit/bcc7aeb1f6780ff7a53f2202a1bfa0de2236ee14)) ([@renovate](https://github.com/apps/renovate)):
|
|
20
|
+
|
|
21
|
+
- `devDependencies`:
|
|
22
|
+
- `stylelint@^16.7.0`
|
|
23
|
+
|
|
24
|
+
- 📦 Update dependencies ([`8674db9`](https://github.com/culur/culur/commit/8674db941572a49cc16a9c53e981fed32e8aebcf)) ([@renovate](https://github.com/apps/renovate)):
|
|
25
|
+
|
|
26
|
+
- `devDependencies`:
|
|
27
|
+
- `@vitest/coverage-v8@^2.0.2`
|
|
28
|
+
- `@vitest/ui@^2.0.2`
|
|
29
|
+
- `vitest@^2.0.2`
|
|
30
|
+
|
|
31
|
+
- 📦 Update workspace dependencies ([`48415cd`](https://github.com/culur/culur/commit/48415cd678f229f7de42a24141ebf6ab76aa2d19) [`8674db9`](https://github.com/culur/culur/commit/8674db941572a49cc16a9c53e981fed32e8aebcf) [`7353b5d`](https://github.com/culur/culur/commit/7353b5dcd35d81aa6c46a97eff3436e6e715a0f8)):
|
|
32
|
+
- `@culur/utils-packages@1.0.3`
|
|
33
|
+
|
|
34
|
+
## 1.0.2
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- 📝 Update `README.md` ([`2a74486`](https://github.com/culur/culur/commit/2a744863a5ba8378906547713fde5033ea85939c) [@phamhongphuc](https://github.com/phamhongphuc)).
|
|
39
|
+
|
|
40
|
+
- 📦 Update dependencies ([#35](https://github.com/culur/culur/pull/35) [`9a595fa`](https://github.com/culur/culur/commit/9a595fae5f9505e9afdc872a2f670c08bb53d419) [@renovate](https://github.com/apps/renovate)):
|
|
41
|
+
|
|
42
|
+
- `dependencies`:
|
|
43
|
+
- `stylelint-config-clean-order@^6.1.0`
|
|
44
|
+
- `stylelint-config-standard@^36.0.1`
|
|
45
|
+
- `stylelint-scss@^6.3.2`
|
|
46
|
+
- `devDependencies`:
|
|
47
|
+
- `@types/node@^20.14.10`
|
|
48
|
+
- `postcss@^8.4.39`
|
|
49
|
+
- `rimraf@^5.0.8`
|
|
50
|
+
- `typescript@^5.5.3`
|
|
51
|
+
|
|
52
|
+
- 📦 Update workspace dependencies ([`2a74486`](https://github.com/culur/culur/commit/2a744863a5ba8378906547713fde5033ea85939c) [`9a595fa`](https://github.com/culur/culur/commit/9a595fae5f9505e9afdc872a2f670c08bb53d419)):
|
|
53
|
+
- `@culur/utils-packages@1.0.2`
|
|
54
|
+
|
|
3
55
|
## 1.0.1
|
|
4
56
|
|
|
5
57
|
### Patch Changes
|
|
6
58
|
|
|
7
|
-
- [`49476de`](https://github.com/culur/culur/commit/49476dee58addebe889a9bd134435a7d41a6d1f2)
|
|
59
|
+
- 📦 Update dependencies ([`49476de`](https://github.com/culur/culur/commit/49476dee58addebe889a9bd134435a7d41a6d1f2) [@renovate](https://github.com/apps/renovate)):
|
|
8
60
|
|
|
9
61
|
- `dependencies`:
|
|
10
|
-
- `stylelint-config-clean-order
|
|
62
|
+
- `stylelint-config-clean-order@^6.0.0`
|
|
11
63
|
|
|
12
|
-
- [`74dbf2c`](https://github.com/culur/culur/commit/74dbf2c0050b30e9289aa7879c4cbb9ac103f4d3)
|
|
64
|
+
- 📦 Update dependencies ([`74dbf2c`](https://github.com/culur/culur/commit/74dbf2c0050b30e9289aa7879c4cbb9ac103f4d3) [@renovate](https://github.com/apps/renovate)):
|
|
13
65
|
|
|
14
66
|
- `dependencies`:
|
|
15
|
-
- `stylelint-scss
|
|
67
|
+
- `stylelint-scss@^6.3.1`
|
|
16
68
|
- `devDependencies`:
|
|
17
|
-
- `@types/node
|
|
18
|
-
- `stylelint
|
|
19
|
-
- `tsup
|
|
69
|
+
- `@types/node@^20.14.2`
|
|
70
|
+
- `stylelint@^16.6.1`
|
|
71
|
+
- `tsup@^8.1.0`
|
|
20
72
|
|
|
21
|
-
- [`7f4eeae`](https://github.com/culur/culur/commit/7f4eeae4fa2c2dbed218675e8ce2cc91ca0bc4c3)
|
|
73
|
+
- 📦 Update workspace dependencies to specific version ([`7f4eeae`](https://github.com/culur/culur/commit/7f4eeae4fa2c2dbed218675e8ce2cc91ca0bc4c3) [@phamhongphuc](https://github.com/phamhongphuc)).
|
|
22
74
|
|
|
23
|
-
-
|
|
24
|
-
-
|
|
75
|
+
- 📦 Update workspace dependencies ([`74dbf2c`](https://github.com/culur/culur/commit/74dbf2c0050b30e9289aa7879c4cbb9ac103f4d3) [`7f4eeae`](https://github.com/culur/culur/commit/7f4eeae4fa2c2dbed218675e8ce2cc91ca0bc4c3)):
|
|
76
|
+
- `@culur/utils-packages@1.0.1`
|
|
25
77
|
|
|
26
78
|
## 1.0.0
|
|
27
79
|
|
|
28
80
|
### Major Changes
|
|
29
81
|
|
|
30
|
-
- [`a83892c`](https://github.com/culur/culur/commit/a83892c01bc3a49cd21b79a1abd5443147fff0c4)
|
|
82
|
+
- 🎉 Initial project ([`a83892c`](https://github.com/culur/culur/commit/a83892c01bc3a49cd21b79a1abd5443147fff0c4) [@phamhongphuc](https://github.com/phamhongphuc)).
|
|
31
83
|
|
|
32
84
|
### Patch Changes
|
|
33
85
|
|
|
34
|
-
-
|
|
35
|
-
-
|
|
86
|
+
- 📦 Update workspace dependencies ([`e3492d2`](https://github.com/culur/culur/commit/e3492d20a29bee15bbabab0a60277ed36944cd7a)):
|
|
87
|
+
- `@culur/utils-packages@1.0.0`
|
package/README.md
CHANGED
|
@@ -10,6 +10,36 @@
|
|
|
10
10
|
|
|
11
11
|
> Sharing [Stylelint](https://stylelint.io) configurations.
|
|
12
12
|
|
|
13
|
+
## ✨ Features
|
|
14
|
+
|
|
15
|
+
**The** library is a shareable Stylelint configuration. It has some key features as follows:
|
|
16
|
+
|
|
17
|
+
### Auto detect environment
|
|
18
|
+
|
|
19
|
+
The config will check whether the following packages are installed or not to change plugins and rules.
|
|
20
|
+
|
|
21
|
+
| Environment | Packages |
|
|
22
|
+
| ----------- | ------------------------------------ |
|
|
23
|
+
| Tailwind | `tailwindcss` |
|
|
24
|
+
| SCSS | `sass` or `dart-sass` or `node-sass` |
|
|
25
|
+
| Vue | `vue` |
|
|
26
|
+
|
|
27
|
+
### Extends
|
|
28
|
+
|
|
29
|
+
- The config extends:
|
|
30
|
+
- Configs from:
|
|
31
|
+
- [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard) - The standard shareable config for Stylelint.
|
|
32
|
+
- [`stylelint-config-standard-scss`](https://github.com/stylelint-scss/stylelint-config-standard-scss) - The standard shareable SCSS config for Stylelint.
|
|
33
|
+
- [`stylelint-config-standard-vue`](https://github.com/ota-meshi/stylelint-config-standard-vue) - The recommended shareable Vue config for Stylelint.
|
|
34
|
+
- [`stylelint-config-html`](https://github.com/ota-meshi/stylelint-config-html) - The shareable HTML config for Stylelint.
|
|
35
|
+
- [`stylelint-config-clean-order`](https://github.com/kutsan/stylelint-config-clean-order) - A clean and complete config for stylelint-order.
|
|
36
|
+
- Plugins from:
|
|
37
|
+
- [`stylelint-order`](https://github.com/hudochenkov/stylelint-order) - A plugin pack of order related linting rules for stylelint.
|
|
38
|
+
- [`stylelint-scss`](https://github.com/kristerkari/stylelint-scss) - A collection of SCSS specific linting rules for stylelint.
|
|
39
|
+
- [`stylelint-selector-bem-pattern`](https://github.com/simonsmith/stylelint-selector-bem-pattern) - Stylelint plugin that incorporates postcss-bem-linter
|
|
40
|
+
- And it also has custom rules for `Tailwind`, `SCSS` and `Vue`.
|
|
41
|
+
- This config bundles the above packages, you don't need to install them yourself.
|
|
42
|
+
|
|
13
43
|
## 💿 Installation
|
|
14
44
|
|
|
15
45
|
Add `@culur/config-stylelint` dependency to your project.
|
|
@@ -83,36 +113,6 @@ Some commonly used scripts in `package.json`.
|
|
|
83
113
|
}
|
|
84
114
|
```
|
|
85
115
|
|
|
86
|
-
## ✨ Features
|
|
87
|
-
|
|
88
|
-
**The** library is a shareable Stylelint configuration. It has some key features as follows:
|
|
89
|
-
|
|
90
|
-
### Auto detect environment
|
|
91
|
-
|
|
92
|
-
The config will check whether the following packages are installed or not to change plugins and rules.
|
|
93
|
-
|
|
94
|
-
| Environment | Packages |
|
|
95
|
-
| ----------- | ------------------------------------ |
|
|
96
|
-
| Tailwind | `tailwindcss` |
|
|
97
|
-
| SCSS | `sass` or `dart-sass` or `node-sass` |
|
|
98
|
-
| Vue | `vue` |
|
|
99
|
-
|
|
100
|
-
### Extends
|
|
101
|
-
|
|
102
|
-
- The config extends:
|
|
103
|
-
- Configs from:
|
|
104
|
-
- [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard) - The standard shareable config for Stylelint.
|
|
105
|
-
- [`stylelint-config-standard-scss`](https://github.com/stylelint-scss/stylelint-config-standard-scss) - The standard shareable SCSS config for Stylelint.
|
|
106
|
-
- [`stylelint-config-standard-vue`](https://github.com/ota-meshi/stylelint-config-standard-vue) - The recommended shareable Vue config for Stylelint.
|
|
107
|
-
- [`stylelint-config-html`](https://github.com/ota-meshi/stylelint-config-html) - The shareable HTML config for Stylelint.
|
|
108
|
-
- [`stylelint-config-clean-order`](https://github.com/kutsan/stylelint-config-clean-order) - A clean and complete config for stylelint-order.
|
|
109
|
-
- Plugins from:
|
|
110
|
-
- [`stylelint-order`](https://github.com/hudochenkov/stylelint-order) - A plugin pack of order related linting rules for stylelint.
|
|
111
|
-
- [`stylelint-scss`](https://github.com/kristerkari/stylelint-scss) - A collection of SCSS specific linting rules for stylelint.
|
|
112
|
-
- [`stylelint-selector-bem-pattern`](https://github.com/simonsmith/stylelint-selector-bem-pattern) - Stylelint plugin that incorporates postcss-bem-linter
|
|
113
|
-
- And it also has custom rules for `Tailwind`, `SCSS` and `Vue`.
|
|
114
|
-
- This config bundles the above packages, you don't need to install them yourself.
|
|
115
|
-
|
|
116
116
|
## 🗃️ Changelog
|
|
117
117
|
|
|
118
118
|
See [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@culur/config-stylelint",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Culur's stylelint configuration",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -66,33 +66,33 @@
|
|
|
66
66
|
"node": ">=20"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@culur/utils-packages": "1.0.
|
|
70
|
-
"stylelint-config-clean-order": "^6.
|
|
69
|
+
"@culur/utils-packages": "1.0.3",
|
|
70
|
+
"stylelint-config-clean-order": "^6.1.0",
|
|
71
71
|
"stylelint-config-html": "^1.1.0",
|
|
72
|
-
"stylelint-config-standard": "^36.0.
|
|
72
|
+
"stylelint-config-standard": "^36.0.1",
|
|
73
73
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
74
74
|
"stylelint-config-standard-vue": "^1.0.0",
|
|
75
75
|
"stylelint-order": "^6.0.4",
|
|
76
|
-
"stylelint-scss": "^6.
|
|
76
|
+
"stylelint-scss": "^6.4.1",
|
|
77
77
|
"stylelint-selector-bem-pattern": "^4.0.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@culur/config-tsup": "1.
|
|
81
|
-
"@culur/config-typescript": "1.0.
|
|
82
|
-
"@culur/config-vite": "1.0.
|
|
83
|
-
"@types/node": "^20.14.
|
|
84
|
-
"@vitest/coverage-v8": "^
|
|
85
|
-
"@vitest/ui": "^
|
|
80
|
+
"@culur/config-tsup": "1.1.1",
|
|
81
|
+
"@culur/config-typescript": "1.0.2",
|
|
82
|
+
"@culur/config-vite": "1.0.4",
|
|
83
|
+
"@types/node": "^20.14.10",
|
|
84
|
+
"@vitest/coverage-v8": "^2.0.2",
|
|
85
|
+
"@vitest/ui": "^2.0.2",
|
|
86
86
|
"dedent": "^1.5.3",
|
|
87
|
-
"postcss": "^8.4.
|
|
87
|
+
"postcss": "^8.4.39",
|
|
88
88
|
"postcss-html": "^1.7.0",
|
|
89
89
|
"postcss-sass": "^0.5.0",
|
|
90
90
|
"postcss-scss": "^4.0.9",
|
|
91
|
-
"rimraf": "^
|
|
92
|
-
"stylelint": "^16.
|
|
91
|
+
"rimraf": "^6.0.1",
|
|
92
|
+
"stylelint": "^16.7.0",
|
|
93
93
|
"tsup": "^8.1.0",
|
|
94
|
-
"typescript": "^5.
|
|
95
|
-
"vitest": "^
|
|
94
|
+
"typescript": "^5.5.3",
|
|
95
|
+
"vitest": "^2.0.2"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"stylelint": ">=16.0.0"
|
package/src/__tests__/mock.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { vi } from 'vitest';
|
|
2
2
|
|
|
3
|
+
vi.mock('@culur/utils-packages');
|
|
4
|
+
|
|
3
5
|
export type UtilsPackages = Partial<{
|
|
4
6
|
hasTailwind: boolean;
|
|
5
7
|
hasSass: boolean;
|
|
@@ -14,10 +16,6 @@ export const defineMockUtilsPackages = (testCases: UtilsPackages[]) => {
|
|
|
14
16
|
typeof t.hasVue === 'boolean',
|
|
15
17
|
);
|
|
16
18
|
|
|
17
|
-
if (shouldMockUtilsPackages) {
|
|
18
|
-
vi.mock('@culur/utils-packages');
|
|
19
|
-
}
|
|
20
|
-
|
|
21
19
|
return async ({ hasTailwind, hasSass, hasVue }: UtilsPackages) => {
|
|
22
20
|
if (shouldMockUtilsPackages) {
|
|
23
21
|
const utilsPackages = await import('@culur/utils-packages');
|