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 660d2e7 commit 6348a29
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 @@ -137,5 +137,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 6348a29

Please sign in to comment.