Skip to content

Fix compatibility with stylelint 14.0#138

Open
wushangwei wants to merge 1 commit into
umijs:masterfrom
wushangwei:master
Open

Fix compatibility with stylelint 14.0#138
wushangwei wants to merge 1 commit into
umijs:masterfrom
wushangwei:master

Conversation

@wushangwei

@wushangwei wushangwei commented Jun 17, 2022

Copy link
Copy Markdown

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 stylelint/stylelint#3259

Signed-off-by: Wu Shangwei <2826256824@qq.com>
@chenshuai2144

Copy link
Copy Markdown
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants