Skip to content

Commit

Permalink
build: simplify config
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Feb 2, 2022
1 parent bddc457 commit c7ee81c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 87 deletions.
1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.husky
coverage
dist
docs/css/cropper.css
node_modules
2 changes: 1 addition & 1 deletion lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
'*.js': 'eslint --fix',
'*.{css,scss,html}': 'stylelint --fix',
'*.{css,scss}': 'stylelint --fix',
};
77 changes: 0 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"compress:js": "uglifyjs dist/cropper.js -o dist/cropper.min.js -c -m --comments /^!/",
"copy": "cpy dist/cropper.css docs/css",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint **/*.{css,scss,html} --fix",
"lint:css": "stylelint **/*.{css,scss} --fix",
"lint:js": "eslint . --fix",
"prepare": "husky install",
"release": "npm run clean && npm run lint && npm run build && npm run compress && npm run copy && npm test",
Expand Down Expand Up @@ -93,7 +93,6 @@
"postcss": "^8.4.5",
"postcss-cli": "^9.1.0",
"postcss-header": "^3.0.1",
"postcss-html": "^1.3.0",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^7.1.0",
"postcss-url": "^10.1.3",
Expand Down
8 changes: 1 addition & 7 deletions stylelint.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
module.exports = {
extends: 'stylelint-config-recommended-scss',
extends: 'stylelint-config-standard-scss',
plugins: [
'stylelint-order',
],
rules: {
'order/properties-alphabetical-order': true,
},
overrides: [
{
files: ['**/*.html'],
customSyntax: 'postcss-html',
},
],
};

0 comments on commit c7ee81c

Please sign in to comment.