Skip to content

Commit

Permalink
build: add stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Mar 10, 2019
1 parent 4ed2e5f commit 0f7e746
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "stylelint-config-standard",
"plugins": [
"stylelint-order"
],
"rules": {
"no-descending-specificity": null,
"order/properties-alphabetical-order": true
}
}
4 changes: 3 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ module.exports = {
'postcss-header': {
header: rollupConfig.output[0].banner,
},
stylefmt: {},
stylelint: {
fix: true,
},
},
};

0 comments on commit 0f7e746

Please sign in to comment.