Skip to content

Add ignore for custom properties #61

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

Closed
wants to merge 1 commit into from
Closed

Add ignore for custom properties #61

wants to merge 1 commit into from

Conversation

firefoxic
Copy link

@firefoxic firefoxic commented Sep 24, 2021

Кастомные свойства уже никуда не запрятать, и есть смысл достаточно сильных студентов учить использовать их для большего удобства разработки, читабельности и поддерживаемости кода.

Но вот это правило вставляет палки в колёса, когда кастомное свойство используется в расчётах, но при объявлении свойства надо указать нулевое значение. Линтер требует убрать размерность, а без неё calc() ломается.

Чтобы не приходилось выкручиваться чем-то вроде:
--my-prop: calc(0 * 1px);
(что крайне неудобно, особенно, если ещё и предполагается, что значение должно скриптом считываться) надо добавить иннорирование этим правилом кастомных свойств.


Пулреквест в конфиг стайллинта.

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.

1 participant