@tomjs/stylelint 1.1.0 → 2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @tomjs/stylelint
2
2
 
3
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Change records
8
+ - chore: update stylelint deps, support stylelint@16
9
+ - docs: add english readme
10
+
11
+ ## 1.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - Change records
16
+ - fix: stylelint high version
17
+
3
18
  ## 1.1.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
1
  # @tomjs/stylelint
2
2
 
3
- ![npm](https://img.shields.io/npm/v/%40tomjs/stylelint) ![node-current (scoped)](https://img.shields.io/node/v/%40tomjs/stylelint) ![NPM](https://img.shields.io/npm/l/%40tomjs%2Fstylelint)
3
+ ![npm](https://img.shields.io/npm/v/@tomjs/stylelint) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/stylelint) ![NPM](https://img.shields.io/npm/l/@tomjs/stylelint)
4
4
 
5
- 前端项目 [stylelint](https://stylelint.io/) 样式规范配置。
5
+ Front-end project [stylelint](https://stylelint.io/) style specification configuration.
6
6
 
7
- ## 使用说明
7
+ ## Usage
8
8
 
9
- - 安装依赖
9
+ - Install dependencies
10
10
 
11
11
  ```bash
12
12
  pnpm add -D stylelint prettier @tomjs/stylelint
13
13
  ```
14
14
 
15
- - 修改 `.stylelintrc.{js,cjs}` 配置
15
+ - Modify `.stylelintrc.{js,cjs}` configuration
16
16
 
17
17
  ```js
18
18
  module.exports = {
@@ -20,7 +20,7 @@ module.exports = {
20
20
  };
21
21
  ```
22
22
 
23
- #### 制作配置
23
+ #### Make configuration
24
24
 
25
25
  ```bash
26
26
  pnpm add --save-peer prettier stylelint
@@ -29,13 +29,13 @@ pnpm add stylelint-prettier stylelint-config-standard stylelint-config-standard-
29
29
  pnpm add stylelint-order stylelint-config-property-sort-order-smacss
30
30
  ```
31
31
 
32
- - [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier):将 Prettier 作为 stylelint 规则运行,并将差异报告为单个 stylelint 问题
33
- - [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard):它扩展了 stylelint-config-recommended,并开启了附加规则,以执行 CSS 规范中的现代约定
34
- - [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss):stylelint 的标准 scss 共享配置
35
- - [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue)stylelint 的推荐 vue 共享配置
36
- - [stylelint-order](https://www.npmjs.com/package/stylelint-order):为 stylelint 提供的与排序相关的提示规则的插件包
37
- - [stylelint-config-property-sort-order-smacss](https://www.npmjs.com/package/stylelint-config-property-sort-order-smacss):基于 [SMACSS](http://smacss.com/) 方法的属性排序
32
+ - [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier): Run Prettier as a stylelint rule and report differences as a single stylelint issue
33
+ - [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
34
+ - [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss): Standard scss shared configuration for stylelint
35
+ - [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue): stylelint’s recommended vue shared configuration
36
+ - [stylelint-order](https://www.npmjs.com/package/stylelint-order): A plug-in package that provides sorting-related prompt rules for stylelint
37
+ - [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
38
 
39
- ## 参考项目
39
+ ## Reference project
40
40
 
41
41
  - [vue-vben-admin](https://github.com/vbenjs/vue-vben-admin)
@@ -0,0 +1,41 @@
1
+ # @tomjs/stylelint
2
+
3
+ ![npm](https://img.shields.io/npm/v/@tomjs/stylelint) ![node-current (scoped)](https://img.shields.io/node/v/@tomjs/stylelint) ![NPM](https://img.shields.io/npm/l/@tomjs/stylelint)
4
+
5
+ 前端项目 [stylelint](https://stylelint.io/) 样式规范配置。
6
+
7
+ ## 使用
8
+
9
+ - 安装依赖
10
+
11
+ ```bash
12
+ pnpm add -D stylelint prettier @tomjs/stylelint
13
+ ```
14
+
15
+ - 修改 `.stylelintrc.{js,cjs}` 配置
16
+
17
+ ```js
18
+ module.exports = {
19
+ extends: [require.resolve('@tomjs/stylelint')],
20
+ };
21
+ ```
22
+
23
+ #### 制作配置
24
+
25
+ ```bash
26
+ pnpm add --save-peer prettier stylelint
27
+ pnpm add postcss postcss-html postcss-less postcss-scss
28
+ pnpm add stylelint-prettier stylelint-config-standard stylelint-config-standard-scss stylelint-config-recommended-vue
29
+ pnpm add stylelint-order stylelint-config-property-sort-order-smacss
30
+ ```
31
+
32
+ - [stylelint-prettier](https://www.npmjs.com/package/stylelint-prettier):将 Prettier 作为 stylelint 规则运行,并将差异报告为单个 stylelint 问题
33
+ - [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard):它扩展了 stylelint-config-recommended,并开启了附加规则,以执行 CSS 规范中的现代约定
34
+ - [stylelint-config-standard-scss](https://www.npmjs.com/package/stylelint-config-standard-scss):stylelint 的标准 scss 共享配置
35
+ - [stylelint-config-recommended-vue](https://www.npmjs.com/package/stylelint-config-recommended-vue):stylelint 的推荐 vue 共享配置
36
+ - [stylelint-order](https://www.npmjs.com/package/stylelint-order):为 stylelint 提供的与排序相关的提示规则的插件包
37
+ - [stylelint-config-property-sort-order-smacss](https://www.npmjs.com/package/stylelint-config-property-sort-order-smacss):基于 [SMACSS](http://smacss.com/) 方法的属性排序
38
+
39
+ ## 参考项目
40
+
41
+ - [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": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "description": "stylelint config for tomjs",
5
5
  "keywords": [
6
6
  "tomjs",
@@ -19,10 +19,10 @@
19
19
  "license": "MIT",
20
20
  "repository": {
21
21
  "type": "git",
22
- "url": "https://github.com/tomgao365/tomjs.git",
22
+ "url": "https://github.com/tomgao365/@tomjs.git",
23
23
  "directory": "packages/stylelint"
24
24
  },
25
- "homepage": "https://github.com/tomgao365/tomjs/tree/master/packages/stylelint#readme",
25
+ "homepage": "https://github.com/tomgao365/@tomjs/tree/master/packages/stylelint#readme",
26
26
  "files": [
27
27
  "es",
28
28
  "lib",
@@ -42,16 +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": "^9.1.0",
45
+ "stylelint-config-property-sort-order-smacss": "^10.0.0",
46
+ "stylelint-config-recommended": "^14.0.0",
46
47
  "stylelint-config-recommended-vue": "^1.5.0",
47
- "stylelint-config-standard": "^34.0.0",
48
- "stylelint-config-standard-scss": "^11.1.0",
49
- "stylelint-order": "^6.0.3",
48
+ "stylelint-config-standard": "^35.0.0",
49
+ "stylelint-config-standard-scss": "^12.0.0",
50
+ "stylelint-order": "^6.0.4",
50
51
  "stylelint-prettier": "^4.1.0"
51
52
  },
52
53
  "peerDependencies": {
53
54
  "prettier": ">=3.0.0",
54
- "stylelint": "^15.10.0"
55
+ "stylelint": "^16.0.2"
55
56
  },
56
57
  "engines": {
57
58
  "node": ">=16"