Skip to content

Commit

Permalink
fix: import naming convention lint
Browse files Browse the repository at this point in the history
see: #10124
see: #10361
see: typescript-eslint/typescript-eslint#7841
see: typescript-eslint/typescript-eslint#7269 (comment)
closes: #10288
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
  • Loading branch information
achrinza authored and dhmlau committed Feb 23, 2024
1 parent 6525229 commit acd3c0c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/eslint-config/eslintrc.js
Expand Up @@ -229,6 +229,20 @@ module.exports = {
// filter: '^([2-5]{1}[0-9]{2})$|[-/ ]',
modifiers: ['requiresQuotes'],
},

// For module imports
// see: https://github.com/loopbackio/loopback-next/issues/10288
{
selector: 'import',
format: ['camelCase', 'PascalCase'],
},

// For Lodash module imports
{
selector: 'import',
format: null,
filter: '^_$',
},
],
},
overrides: [
Expand Down

0 comments on commit acd3c0c

Please sign in to comment.