Skip to content

Commit

Permalink
Some more changes to naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Apr 7, 2022
1 parent 7f4869c commit 93904f2
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion helpers/make-naming-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const configs = [
// const global variables can be UPPER_CASE
'selector': 'variable',
'modifiers': ['const', 'global'],
'types': ['boolean', 'string', 'number', 'array'],
'format': ['camelCase', 'UPPER_CASE']
},
{
Expand All @@ -34,6 +35,16 @@ const configs = [
// types
'selector': 'typeLike',
'format': ['PascalCase']
},
{
'selector': [
'property',
'method',
'accessor',
'enumMember'
],
'format': null,
'modifiers': ['requiresQuotes']
}
];
const reactConfigs = [
Expand All @@ -42,7 +53,7 @@ const reactConfigs = [
'selector': 'variable',
'modifiers': ['const', 'global'],
'types': ['function'],
'format': ['camelCase', 'UPPER_CASE', 'PascalCase']
'format': ['camelCase', 'PascalCase']
},
{
// React Components
Expand Down

0 comments on commit 93904f2

Please sign in to comment.