mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	refactor: 升级stylelint v16并遵循esm语法
				
					
				
			This commit is contained in:
		
							parent
							
								
									a11b9136fa
								
							
						
					
					
						commit
						cb0d757191
					
				@ -8,6 +8,6 @@ eslint.config.js
 | 
				
			|||||||
commitlint.config.js
 | 
					commitlint.config.js
 | 
				
			||||||
postcss.config.js
 | 
					postcss.config.js
 | 
				
			||||||
tailwind.config.ts
 | 
					tailwind.config.ts
 | 
				
			||||||
stylelint.config.cjs
 | 
					stylelint.config.js
 | 
				
			||||||
src/components/ReSplitPane/iconfont
 | 
					src/components/ReSplitPane/iconfont
 | 
				
			||||||
src/components/ReFlowChart/src/assets/iconfont
 | 
					src/components/ReFlowChart/src/assets/iconfont
 | 
				
			||||||
@ -17,7 +17,7 @@
 | 
				
			|||||||
    "clean:cache": "rimraf .eslintcache && rimraf pnpm-lock.yaml && rimraf node_modules && pnpm store prune && pnpm install",
 | 
					    "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: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: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",
 | 
					    "lint": "pnpm lint:eslint && pnpm lint:prettier && pnpm lint:stylelint",
 | 
				
			||||||
    "prepare": "husky install",
 | 
					    "prepare": "husky install",
 | 
				
			||||||
    "preinstall": "npx only-allow pnpm"
 | 
					    "preinstall": "npx only-allow pnpm"
 | 
				
			||||||
@ -144,12 +144,11 @@
 | 
				
			|||||||
    "rimraf": "^5.0.5",
 | 
					    "rimraf": "^5.0.5",
 | 
				
			||||||
    "rollup-plugin-visualizer": "^5.11.0",
 | 
					    "rollup-plugin-visualizer": "^5.11.0",
 | 
				
			||||||
    "sass": "^1.69.5",
 | 
					    "sass": "^1.69.5",
 | 
				
			||||||
    "stylelint": "15.11.0",
 | 
					    "stylelint": "^16.0.2",
 | 
				
			||||||
    "stylelint-config-recess-order": "^4.4.0",
 | 
					    "stylelint-config-recess-order": "^4.4.0",
 | 
				
			||||||
    "stylelint-config-recommended": "13.0.0",
 | 
					 | 
				
			||||||
    "stylelint-config-recommended-vue": "^1.5.0",
 | 
					    "stylelint-config-recommended-vue": "^1.5.0",
 | 
				
			||||||
    "stylelint-config-standard-scss": "^11.1.0",
 | 
					    "stylelint-config-standard-scss": "^12.0.0",
 | 
				
			||||||
    "stylelint-prettier": "^4.1.0",
 | 
					    "stylelint-prettier": "^5.0.0",
 | 
				
			||||||
    "svgo": "^3.0.5",
 | 
					    "svgo": "^3.0.5",
 | 
				
			||||||
    "tailwindcss": "^3.3.6",
 | 
					    "tailwindcss": "^3.3.6",
 | 
				
			||||||
    "typescript": "^5.3.3",
 | 
					    "typescript": "^5.3.3",
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										622
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										622
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -1,8 +1,7 @@
 | 
				
			|||||||
// @ts-check
 | 
					// @ts-check
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/** @type {import("stylelint").Config} */
 | 
					/** @type {import("stylelint").Config} */
 | 
				
			||||||
module.exports = {
 | 
					export default {
 | 
				
			||||||
  root: true,
 | 
					 | 
				
			||||||
  extends: [
 | 
					  extends: [
 | 
				
			||||||
    "stylelint-config-standard",
 | 
					    "stylelint-config-standard",
 | 
				
			||||||
    "stylelint-config-html/vue",
 | 
					    "stylelint-config-html/vue",
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user