Skip to content

Commit

Permalink
naming-convention: allow react na hooks names
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Nov 21, 2021
1 parent 4d67432 commit 9157cbe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eslint-config-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,23 @@ module.exports = {
'modifiers': ['const', 'global'],
'format': ['camelCase', 'UPPER_CASE']
},
{
'selector': 'variable',
'modifiers': ['const', 'global', 'exported'],
'type': 'function',
'format': ['camelCase', 'UPPER_CASE', 'PascalCase']
},
{
'selector': 'function',
'modifiers': ['global'],
'format': ['camelCase', 'PascalCase']
},
{
'selector': 'function',
'modifiers': ['const', 'global'],
'filter': /^use/,
'format': ['camelCase']
},
{
'selector': 'parameter',
'modifiers': ['unused'],
Expand Down

0 comments on commit 9157cbe

Please sign in to comment.