Skip to content

Commit

Permalink
feat: add lint rule disable src import (#2081)
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinRosati authored Sep 13, 2024
1 parent eda2586 commit 278ff09
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,19 @@ module.exports = {
],
'react/react-in-jsx-scope': 'off',
'react/jsx-uses-react': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: 'src',
message: 'Importing from "src" is not allowed.',
},
],
patterns: [
'@commercetools-docs/ui-kit/src/*', // Restrict all imports from "src" directory since not available in production build
],
},
],
},
};

0 comments on commit 278ff09

Please sign in to comment.