From 294e2985c1da44c999172b6244d4880765cf5731 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 19 Oct 2022 20:12:10 +0800 Subject: [PATCH] build(npm): add stylelint --- .gitignore | 1 + .stylelintrc.json | 3 +++ package.json | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 .stylelintrc.json diff --git a/.gitignore b/.gitignore index d1210a4..3ff2312 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ !.husky !.commitlintrc.json !.versionrc.json +!.stylelintrc.json # bundler cache _site diff --git a/.stylelintrc.json b/.stylelintrc.json new file mode 100644 index 0000000..eff2560 --- /dev/null +++ b/.stylelintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "stylelint-config-standard-scss" +} diff --git a/package.json b/package.json index 4ae4048..58c8880 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,8 @@ "gulp-insert": "^0.5.0", "gulp-rename": "^2.0.0", "gulp-uglify": "^3.0.2", + "stylelint": "^14.14.0", + "stylelint-config-standard-scss": "^5.0.0", "uglify-js": "^3.14.3" } }