Enhance stylelint rules, fix propTypes error of TagSelect (#3518)
* add stylelint shareable config for css modules * fix CSS pseudo element with double colon * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint:fix script * fix propTypes error of TagSelect component * Revert "autofix order of all styles by lint:fix script" This reverts commit 51cb9d055f607489a259fd878d80c6b6e70c61de. * Revert "support sorted CSS properties order for readability and consistency" This reverts commit ff6c24d263cf5d3f73880bd7a5866efb4911de9f. * make lint:fix work for stylelint * Revert "Revert "autofix order of all styles by lint:fix script"" This reverts commit 946ed0a351542904e70680c166e47a1f5080d1ca. * Revert "Revert "support sorted CSS properties order for readability and consistency"" This reverts commit 31b557e3826e6e5c5cf9b591fc97e24b9b2abb6e.
Showing
... | ... | @@ -10,10 +10,10 @@ |
"build": "umi build", | ||
"site": "npm run presite && cross-env APP_TYPE=site npm run build && firebase deploy && npm run docker:push", | ||
"analyze": "cross-env ANALYZE=1 umi build", | ||
"lint:style": "stylelint \"src/**/*.less\" --syntax less", | ||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | ||
"lint:prettier": "check-prettier lint", | ||
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | ||
"lint:fix": "eslint --fix --ext .js src mock tests && npm run lint:style", | ||
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less", | ||
"lint-staged": "lint-staged", | ||
"lint-staged:js": "eslint --ext .js", | ||
"tslint": "npm run tslint:fix", | ||
... | ... | @@ -90,8 +90,12 @@ |
"prettier": "1.16.3", | ||
"slash2": "^2.0.0", | ||
"stylelint": "^9.10.1", | ||
"stylelint-config-css-modules": "^1.3.0", | ||
"stylelint-config-prettier": "^4.0.0", | ||
"stylelint-config-rational-order": "^0.0.4", | ||
"stylelint-config-standard": "^18.2.0", | ||
"stylelint-declaration-block-no-ignored-properties": "^1.1.0", | ||
"stylelint-order": "^2.0.0", | ||
"tslint": "^5.12.1", | ||
"tslint-config-prettier": "^1.17.0", | ||
"tslint-react": "^3.6.0", | ||
... | ... |
Please register or sign in to comment