From 06b5c3389d84be90d6aa92db8ba855de5ce5a500 Mon Sep 17 00:00:00 2001 From: bunny <1319900154@qq.com> Date: Wed, 8 May 2024 13:46:59 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintignore | 4 ++-- .prettierrc.js | 2 +- .stylelintignore | 6 +++++- .stylelintrc.js | 2 +- lint-staged.config.js | 12 ++++++------ package.json | 6 ++++-- 6 files changed, 19 insertions(+), 13 deletions(-) diff --git a/.eslintignore b/.eslintignore index b7178d8..a5c04c4 100644 --- a/.eslintignore +++ b/.eslintignore @@ -15,8 +15,8 @@ html /bin .eslintrc.js .prettierrc.js +.stylelintrc.js +lint-staged.config.js /src/mock/* src/utils/request.js -.prettierrc.js -.stylelintrc.js list \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js index 375eb43..d17413e 100644 --- a/.prettierrc.js +++ b/.prettierrc.js @@ -1,6 +1,6 @@ // @see: https://www.prettier.cn -module.exports= { +module.exports = { // 超过最大值换行 printWidth: 130, // 缩进字节数 diff --git a/.stylelintignore b/.stylelintignore index 86aa120..f575f63 100644 --- a/.stylelintignore +++ b/.stylelintignore @@ -12,4 +12,8 @@ /dist/* /public/* public/* -/node_modules/ \ No newline at end of file +/node_modules/ +.eslintrc.js +.prettierrc.js +.stylelintrc.js +lint-staged.config.js \ No newline at end of file diff --git a/.stylelintrc.js b/.stylelintrc.js index 5a02c27..f0a90f8 100644 --- a/.stylelintrc.js +++ b/.stylelintrc.js @@ -1,6 +1,6 @@ // @see: https://stylelint.io -module.exports= { +module.exports = { root: true, defaultSeverity: "error", plugins: ["stylelint-order", "stylelint-less"], diff --git a/lint-staged.config.js b/lint-staged.config.js index 2c1d705..44d7997 100644 --- a/lint-staged.config.js +++ b/lint-staged.config.js @@ -1,8 +1,8 @@ export default { - // "*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"], - // "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write--parser json"], - // "package.json": ["prettier --write"], - // "*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"], - // "*.{scss,less,styl,html}": ["stylelint --fix", "prettier --write"], - // "*.md": ["prettier --write"] + "*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"], + "{!(package)*.json,*.code-snippets,.!(browserslist)*rc}": ["prettier --write--parser json"], + "package.json": ["prettier --write"], + "*.vue": ["eslint --fix", "prettier --write", "stylelint --fix"], + "*.{scss,less,styl,html}": ["stylelint --fix", "prettier --write"], + "*.md": ["prettier --write"] }; diff --git a/package.json b/package.json index ffacae5..b6a41f1 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,10 @@ { "name": "vite_ts_auto", "private": true, - "version": "0.0.0", - "type": "module", + "version": "1.0.0", + "description": "Bunny-Vite模板", + "author": "Bunny-Admin <1319900154@qq.com>", + "license": "MIT", "scripts": { "dev": "vite", "serve": "vite",