Skip to content

Commit

Permalink
Tweak some rules
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Jan 11, 2024
1 parent 076787b commit 004ab80
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configs/share/naming-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export const baseNamingRuleConfig = [
{ // const global variables can be UPPER_CASE
selector: 'variable',
modifiers: ['const', 'global'],
types: ['boolean', 'string', 'number', 'array'],
format: ['camelCase', 'UPPER_CASE']
format: ['camelCase', 'UPPER_CASE', 'PascalCase']
},
{ // readonly class properties can be UPPER_CASE - both static and non-static - eg. class type/object type, class-scope constants
selector: 'classProperty',
Expand Down

0 comments on commit 004ab80

Please sign in to comment.