Skip to content

Commit

Permalink
feat: integrate @flypeng/stylelint-config to check style
Browse files Browse the repository at this point in the history
  • Loading branch information
flingyp committed Sep 25, 2023
1 parent ab580c9 commit 51b1876
Show file tree
Hide file tree
Showing 11 changed files with 502 additions and 50 deletions.
2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@flypeng/stylelint-config"
}
31 changes: 29 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"prettier.enable": false,
"stylelint.enable": true,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true,
"source.organizeImports": false
},
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
],
"stylelint.validate": [
"css",
"less",
"scss",
"sass",
"html",
"vue"
],
"i18n-ally.localesPaths": [
"src/locales",
"src/i18n",
Expand All @@ -20,21 +43,25 @@
"flypeng",
"hoverable",
"iconify",
"logicflow",
"mockjs",
"noto",
"nprogress",
"openmoji",
"pinia",
"Sider",
"stylelint",
"swiper",
"tabler",
"tailwindcss",
"unplugin",
"vadmire",
"vditor",
"vrouter",
"vuedraggable",
"vueuse",
"wangeditor"
"wangeditor",
"xgplayer"
],
"i18n-ally.keystyle": "nested"
}
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ define(['./workbox-ab7aa862'], (function (workbox) { 'use strict';
"revision": "f3ed520397ebbc805e5b0a84961b16dd"
}, {
"url": "index.html",
"revision": "0.c3n9pm1g4k8"
"revision": "0.4s8ho36ahq8"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"build:mock": "vite build --mode development",
"build": "vite build --mode production",
"preview": "vite preview",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint": "eslint . && stylelint \"**/*.{css,scss,less}\"",
"lint:fix": "eslint . --fix && stylelint \"**/*.{css,scss,less}\" --fix",
"release": "standard-version",
"prepare": "husky install",
"commit": "git-cz"
Expand Down Expand Up @@ -48,7 +48,8 @@
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@flypeng/eslint-config": "^0.0.13",
"@flypeng/eslint-config": "^0.0.16",
"@flypeng/stylelint-config": "^0.0.16",
"@iconify-json/ant-design": "^1.1.10",
"@iconify-json/carbon": "^1.1.21",
"@iconify-json/ep": "^1.1.12",
Expand Down Expand Up @@ -81,6 +82,7 @@
"rollup-plugin-external-globals": "^0.8.0",
"sass": "^1.66.1",
"standard-version": "^9.5.0",
"stylelint": "^15.10.3",
"tailwindcss": "^3.3.3",
"typescript": "^5.2.2",
"unplugin-auto-import": "^0.14.4",
Expand Down

0 comments on commit 51b1876

Please sign in to comment.