-
Notifications
You must be signed in to change notification settings - Fork 50
v5.0.0: Update rules to match HTML Academy codeguide #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@nikolai-shabalin вот вам ещё один |
| "description": "Stylelint shareable config for the HTML Academy style", | ||
| "version": "4.4.0", | ||
| "type": "module", | ||
| "version": "5.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Версию вроде бы не стоит руками править. Она автоматически поднимается при запуске публикации.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Кстати, (минутка рекламы) рекомендую мою релизилку @firefoxic/release-it — полная автоматизация, нужно лишь ченджлог правильно подготовить, экшен добавить и в нужную ветку запушить (release*). Можно и без экшена локально запускать, но придётся OTP вводить.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, я как деды умею ;) не страшно
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Тоже умею, но задолбался каждый раз вспоминать весь порядок, и всё равно либо команду какую, либо флаг какой-то пропускать. Да ещё и релиз на гитхабе вручную стряпать.
Страдать должны машины — вот я и сделал скрипт, делающий всё и правильно.
А сегодня ещё и от pnpm отвязал его, на случай, если вдруг будет желание сюда внедрить =)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Но версию в package.json в любом случае надо ревертнуть, а то npm version поднимет до 6.0.0
Major update of Stylelint config aligned with htmlacademy/codeguide#75.
Dependencies
@stylistic/stylelint-plugin4.0.0^5.0.1postcss-less6.0.0^6.0.0postcss-scss4.0.9^4.0.9stylelint(peer)^16.25.0^16.25.0 || ^17.0.0stylelint(dev)16.25.0^17.0.0stylelint-order^7.0.1@htmlacademy/editorconfig-cli3.0.0husky9.1.7Stylelint Rules
New
order/properties-order— enforces property ordering in 7 groups:custom-properties— CSS custom properties (--*)positioning—position,inset,top,right,bottom,left,z-indexbox-model—display, flexbox, grid, dimensions, margins, paddings, overflowtypography—font-*,line-height,text-*,colordecoration—background-*,border-*,outline-*,box-shadow,opacityanimation—transition-*,animation-*interactivity—cursor,pointer-events,user-select,scroll-*keyframes-name-pattern— requires kebab-case for@keyframesnames(
^[a-z][a-z0-9]*(-[a-z0-9]+)*$)at-rule-disallowed-list: ["import"]— disallows@importin CSS (disabled forLess/SCSS)
Modified
declaration-no-importantcolor-function-notationnull"modern"