strona-czynna/.stylelintrc.json
Michał Rusiecki 764ead3543 Added stylelint
Summary:
Ref T2889

Test Plan: arc lint --everything | grep .css

Reviewers: FilipI

Reviewed By: FilipI

Subscribers: FilipI, kuba-orlik, jenkins-user

Maniphest Tasks: T2889

Differential Revision: https://hub.sealcode.org/D1553
2025-01-30 02:08:02 +01:00

13 lines
463 B
JSON

{
"extends": ["stylelint-config-standard"],
"rules": {
"selector-class-pattern": [
"^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$",
{
"resolveNestedSelectors": true,
"message": "Expected class selector \"%s\" to match BEM CSS pattern https://en.bem.info/methodology/css. Selector validation tool: https://regexr.com/3apms"
}
]
}
}