فهرست منبع

refactor: 升级`stylelint v16`并遵循`esm`语法

xiaoxian521 1 سال پیش
والد
کامیت
cb0d757191
4فایلهای تغییر یافته به همراه204 افزوده شده و 231 حذف شده
  1. 1 1
      .eslintignore
  2. 4 5
      package.json
  3. 198 223
      pnpm-lock.yaml
  4. 1 2
      stylelint.config.js

+ 1 - 1
.eslintignore

@@ -8,6 +8,6 @@ eslint.config.js
 commitlint.config.js
 postcss.config.js
 tailwind.config.ts
-stylelint.config.cjs
+stylelint.config.js
 src/components/ReSplitPane/iconfont
 src/components/ReFlowChart/src/assets/iconfont

+ 4 - 5
package.json

@@ -17,7 +17,7 @@
     "clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install",
     "lint:eslint": "eslint --cache --max-warnings 0  \"{src,mock,build}/**/*.{vue,js,ts,tsx}\" --fix",
     "lint:prettier": "prettier --write  \"src/**/*.{js,ts,json,tsx,css,scss,vue,html,md}\"",
-    "lint:stylelint": "stylelint --cache --fix \"**/*.{html,vue,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
+    "lint:stylelint": "stylelint --cache --fix \"**/*.{html,vue,css,scss}\" --cache-location node_modules/.cache/stylelint/",
     "lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
     "prepare": "husky install",
     "preinstall": "npx only-allow pnpm"
@@ -144,12 +144,11 @@
     "rimraf": "^5.0.5",
     "rollup-plugin-visualizer": "^5.11.0",
     "sass": "^1.69.5",
-    "stylelint": "15.11.0",
+    "stylelint": "^16.0.2",
     "stylelint-config-recess-order": "^4.4.0",
-    "stylelint-config-recommended": "13.0.0",
     "stylelint-config-recommended-vue": "^1.5.0",
-    "stylelint-config-standard-scss": "^11.1.0",
-    "stylelint-prettier": "^4.1.0",
+    "stylelint-config-standard-scss": "^12.0.0",
+    "stylelint-prettier": "^5.0.0",
     "svgo": "^3.0.5",
     "tailwindcss": "^3.3.6",
     "typescript": "^5.3.3",

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 198 - 223
pnpm-lock.yaml


+ 1 - 2
stylelint.config.cjs → stylelint.config.js

@@ -1,8 +1,7 @@
 // @ts-check
 
 /** @type {import("stylelint").Config} */
-module.exports = {
-  root: true,
+export default {
   extends: [
     "stylelint-config-standard",
     "stylelint-config-html/vue",

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است