You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message: '"%s" selector should be written in PascalCase or BEM format (e.g. block__element--modifier)',
},
],
'layer-name-pattern': '^[a-z][a-zA-Z0-9.-]*$',
// :has() can cause severe perf issues in Safari (quadratic style invalidation).
// See github/github-ui#17224 for audit. Existing usages are audited and scoped.
// New usages must be explicitly approved and marked with a stylelint-disable comment.
'selector-pseudo-class-disallowed-list': [
['has'],
{
severity: 'error',
message:
':has() selectors can cause severe Safari performance issues (github/github-ui#17224). Verify the selector is scoped (CSS Modules) and does not match broadly, then add a scoped stylelint disable (e.g. "stylelint-disable-next-line" or a minimal "stylelint-disable"/"stylelint-enable" block), not a file-level disable.',
},
],
},
overrides: [
{
files: ['examples/**/*.css'],
rules: {
// Examples may intentionally leave css files blank as placeholders