Skip to content

Commit

Permalink
Add a src/types-specific rule for allowing type properties to be name…
Browse files Browse the repository at this point in the history
…d using snake_case
  • Loading branch information
filmaj committed Jul 30, 2021
1 parent cbb25c9 commit 28f2af9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,22 @@ module.exports = {

},
},
{
files: ['src/types/**/*.ts'],
rules: {
// Type-specific rules
// ---
// Rules that only apply to Typescript source files under src/types

'@typescript-eslint/naming-convention': [
'error',
{
selector: 'typeProperty',
format: ['snake_case'],
},
],
},
},
],
};

Expand Down

0 comments on commit 28f2af9

Please sign in to comment.