Skip to content

Commit

Permalink
improve eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
morewings committed Dec 18, 2023
1 parent f05b90d commit d1e12cb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,22 @@ module.exports = {
],
},
},
/* Disable `template` directory imports for all files */
{
files: ['./src/**/*.*'],
rules: {
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['**/templates/**'],
message: 'Imports from templates directory are forbidden.',
},
],
},
],
},
},
],
};

0 comments on commit d1e12cb

Please sign in to comment.