Skip to content

Commit

Permalink
ci: strictCamelCase for classMethod (#3665)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 13, 2023
1 parent 1db5b18 commit 1337946
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/eslint/naming-convention.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ module.exports = {
selector: 'enumMember',
format: ['PascalCase'],
},
{
selector: 'classMethod',
format: ['strictCamelCase'],
filter: {
// you can expand this regex to add more allowed names
regex: '(HTML|JSON|CVC|CVCChange|DOM)$',
match: false,
},
},
],
},
},
Expand Down

0 comments on commit 1337946

Please sign in to comment.