@tomjs/stylelint 1.1.1 → 2.0.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 +17 -0
- package/LICENSE +1 -1
- package/README.md +15 -13
- package/README.zh_CN.md +43 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @tomjs/stylelint
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Change records
|
|
8
|
+
- chore: update license year
|
|
9
|
+
- docs: update readme
|
|
10
|
+
- fix: git repository
|
|
11
|
+
|
|
12
|
+
## 2.0.0
|
|
13
|
+
|
|
14
|
+
### Major Changes
|
|
15
|
+
|
|
16
|
+
- Change records
|
|
17
|
+
- chore: update stylelint deps, support stylelint@16
|
|
18
|
+
- docs: add english readme
|
|
19
|
+
|
|
3
20
|
## 1.1.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2023 Tom Gao<tom@tomgao.cc>
|
|
3
|
+
Copyright (c) 2023-PRESENT Tom Gao<tom@tomgao.cc>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
# @tomjs/stylelint
|
|
2
2
|
|
|
3
|
-
  
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
**English** | [中文](./README.zh_CN.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
> Front-end project [stylelint](https://stylelint.io/) style specification configuration.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
- Install dependencies
|
|
10
12
|
|
|
11
13
|
```bash
|
|
12
14
|
pnpm add -D stylelint prettier @tomjs/stylelint
|
|
13
15
|
```
|
|
14
16
|
|
|
15
|
-
-
|
|
17
|
+
- Modify `.stylelintrc.{js,cjs}` configuration
|
|
16
18
|
|
|
17
19
|
```js
|
|
18
20
|
module.exports = {
|
|
@@ -20,7 +22,7 @@ module.exports = {
|
|
|
20
22
|
};
|
|
21
23
|
```
|
|
22
24
|
|
|
23
|
-
####
|
|
25
|
+
#### Make configuration
|
|
24
26
|
|
|
25
27
|
```bash
|
|
26
28
|
pnpm add --save-peer prettier stylelint
|
|
@@ -29,13 +31,13 @@ pnpm add stylelint-prettier stylelint-config-standard stylelint-config-standard-
|
|
|
29
31
|
pnpm add stylelint-order stylelint-config-property-sort-order-smacss
|
|
30
32
|
```
|
|
31
33
|
|
|
32
|
-
- [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier)
|
|
33
|
-
- [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard)
|
|
34
|
-
- [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss)
|
|
35
|
-
- [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue)
|
|
36
|
-
- [stylelint-order](https://www.npmjs.com/package/stylelint-order)
|
|
37
|
-
- [stylelint-config-property-sort-order-smacss](https://www.npmjs.com/package/stylelint-config-property-sort-order-smacss)
|
|
34
|
+
- [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier): Run Prettier as a stylelint rule and report differences as a single stylelint issue
|
|
35
|
+
- [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard): It extends stylelint-config-recommended and turns on additional rules to enforce modernization in the CSS specification Agreement
|
|
36
|
+
- [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss): Standard scss shared configuration for stylelint
|
|
37
|
+
- [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue): stylelint’s recommended vue shared configuration
|
|
38
|
+
- [stylelint-order](https://www.npmjs.com/package/stylelint-order): A plug-in package that provides sorting-related prompt rules for stylelint
|
|
39
|
+
- [stylelint-config-property-sort-order-smacss](https://www.npmjs.com/package/stylelint-config-property-sort-order-smacss): Based on [SMACSS](http://smacss .com/) method attribute sorting
|
|
38
40
|
|
|
39
|
-
##
|
|
41
|
+
## Reference project
|
|
40
42
|
|
|
41
43
|
- [vue-vben-admin](https://github.com/vbenjs/vue-vben-admin)
|
package/README.zh_CN.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# @tomjs/stylelint
|
|
2
|
+
|
|
3
|
+
  
|
|
4
|
+
|
|
5
|
+
[English](./README.md) | **中文**
|
|
6
|
+
|
|
7
|
+
> 前端项目 [stylelint](https://stylelint.io/) 样式规范配置。
|
|
8
|
+
|
|
9
|
+
## 使用
|
|
10
|
+
|
|
11
|
+
- 安装依赖
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pnpm add -D stylelint prettier @tomjs/stylelint
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- 修改 `.stylelintrc.{js,cjs}` 配置
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
module.exports = {
|
|
21
|
+
extends: [require.resolve('@tomjs/stylelint')],
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
#### 制作配置
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pnpm add --save-peer prettier stylelint
|
|
29
|
+
pnpm add postcss postcss-html postcss-less postcss-scss
|
|
30
|
+
pnpm add stylelint-prettier stylelint-config-standard stylelint-config-standard-scss stylelint-config-recommended-vue
|
|
31
|
+
pnpm add stylelint-order stylelint-config-property-sort-order-smacss
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier):将 Prettier 作为 stylelint 规则运行,并将差异报告为单个 stylelint 问题
|
|
35
|
+
- [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard):它扩展了 stylelint-config-recommended,并开启了附加规则,以执行 CSS 规范中的现代约定
|
|
36
|
+
- [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss):stylelint 的标准 scss 共享配置
|
|
37
|
+
- [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue):stylelint 的推荐 vue 共享配置
|
|
38
|
+
- [stylelint-order](https://www.npmjs.com/package/stylelint-order):为 stylelint 提供的与排序相关的提示规则的插件包
|
|
39
|
+
- [stylelint-config-property-sort-order-smacss](https://www.npmjs.com/package/stylelint-config-property-sort-order-smacss):基于 [SMACSS](http://smacss.com/) 方法的属性排序
|
|
40
|
+
|
|
41
|
+
## 参考项目
|
|
42
|
+
|
|
43
|
+
- [vue-vben-admin](https://github.com/vbenjs/vue-vben-admin)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tomjs/stylelint",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "stylelint config for tomjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tomjs",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"postcss-html": "^1.5.0",
|
|
43
43
|
"postcss-less": "^6.0.0",
|
|
44
44
|
"postcss-scss": "^4.0.9",
|
|
45
|
-
"stylelint-config-property-sort-order-smacss": "^
|
|
46
|
-
"stylelint-config-recommended": "^
|
|
45
|
+
"stylelint-config-property-sort-order-smacss": "^10.0.0",
|
|
46
|
+
"stylelint-config-recommended": "^14.0.0",
|
|
47
47
|
"stylelint-config-recommended-vue": "^1.5.0",
|
|
48
|
-
"stylelint-config-standard": "^
|
|
49
|
-
"stylelint-config-standard-scss": "^
|
|
48
|
+
"stylelint-config-standard": "^35.0.0",
|
|
49
|
+
"stylelint-config-standard-scss": "^12.0.0",
|
|
50
50
|
"stylelint-order": "^6.0.4",
|
|
51
51
|
"stylelint-prettier": "^4.1.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"prettier": ">=3.0.0",
|
|
55
|
-
"stylelint": "^
|
|
55
|
+
"stylelint": "^16.0.2"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=16"
|