Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
I love the newnaming-convention
rule but struggle in understanding how to use it:
'@typescript-eslint/naming-convention': ['warn',{selector: 'default',format: ['camelCase']},{selector: 'property',},]
In the above snipped I definedcamelCase
as the default format and would (for example) like to relax the rule for properties and allow any type of identifier.
The documentation suggests that it is allowed to omit theformat
property or use an empty array but all options report a error. How would I solve this problem?
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 2.16.0 |
@typescript-eslint/parser | 2.16.0 |