umijs / fabric

💪严格但是不严苛的编码规范
640 stars 102 forks source link

Fix compatibility with stylelint 14.0 #138

Open wushangwei opened 2 years ago

wushangwei commented 2 years ago

When stylelint upgrades to 14.x, projects using fabric's stylelint (like Ant Design Pro) with throw errors: Unknown rule function-calc-no-invalid function-calc-no-invalid 'function-calc-no-invalid' is removed in stylelint 14.x, and in order to get rid of the error, stylelint-config-standard should be upgraded.

Then, I also noticed that stylelint is throwing selector-class-pattern errors in my Ant Design Pro project, due to the rules forcing kebab cases. So added two permissive rules according to https://github.com/stylelint/stylelint/issues/3259

chenshuai2144 commented 2 years ago

我想去掉stylelint,这个库太鸡肋了