Skip to content

Commit f4d0bdb

Browse files
committed
build: init
1 parent 6ab15cd commit f4d0bdb

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.huskyrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "lint-staged",
4+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
5+
}
6+
}

.lintstagedrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"linters": {
3+
"*.js": ["eslint --fix", "git add"],
4+
"*.{css,scss,html}": ["stylelint --fix", "git add"]
5+
},
6+
"ignore": ["{dist,docs}/**/*.js", "*.min.*"]
7+
}

.stylelintrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"plugins": [
4+
"stylelint-order"
5+
],
6+
"rules": {
7+
"no-descending-specificity": null,
8+
"order/properties-alphabetical-order": true
9+
}
10+
}

postcss.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ module.exports = {
1515
'postcss-header': {
1616
header: rollupConfig.output[0].banner,
1717
},
18-
stylefmt: {},
18+
stylelint: {
19+
fix: true,
20+
},
1921
},
2022
};

0 commit comments

Comments
 (0)