Skip to content

Commit

Permalink
chore: stylelint plugin upgrade (ant-design#40883)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 authored Feb 23, 2023
1 parent be25ee2 commit ea6acbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
module.exports = {
extends: ['stylelint-config-standard', 'stylelint-config-rational-order'],
extends: [
'stylelint-config-standard',
'stylelint-prettier/recommended',
'stylelint-config-rational-order',
],
// 使用 stylelint 来 lint css in js? https://github.com/emotion-js/emotion/discussions/2694
plugins: ['stylelint-prettier'],
rules: {
'prettier/prettier': true,
'function-name-case': ['lower'],
'function-no-unknown': [
true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
"stylelint": "^15.1.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-standard": "^30.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-prettier": "^3.0.0",
"sylvanas": "^0.6.1",
"terser": "^5.16.1",
"ts-node": "^10.8.2",
Expand Down

0 comments on commit ea6acbc

Please sign in to comment.