Skip to content

Commit

Permalink
Add selector-id-pattern rule to enforce camelCase for IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-vasconcelos committed Dec 28, 2024
1 parent 89dc585 commit f072d0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/css.rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ export default {
/^[a-z]+([A-Z][a-z0-9]*)*$/,
{ message: 'Selector should be written in camelCase.' },
],
'selector-id-pattern': [
/^[a-z]+([A-Z][a-z0-9]*)*$/,
{ message: 'Selector should be written in camelCase.' },
],
'shorthand-property-no-redundant-values': true,
'unit-allowed-list': ['px', '%', 'fr', 'ms', 'deg', 'vh', 'vw'],
},
Expand Down

0 comments on commit f072d0e

Please sign in to comment.