Skip to content

Commit

Permalink
chore: introducing @typescript-eslint/no-restricted-imports (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Apr 29, 2023
1 parent ffc27a7 commit b58606b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,24 @@ module.exports = {
"@typescript-eslint/no-non-null-assertion": "off",
},
},
{
files: ["src/**"],
rules: {
"@typescript-eslint/no-restricted-imports": [
"error",
{
patterns: [
{
group: ["@typescript-eslint/*"],
message:
"@typescript-eslint is not included in dependencies. Only type-import is allowed.",
allowTypeImports: true,
},
],
},
],
},
},
{
files: ["src/rules/**"],
rules: {},
Expand Down

0 comments on commit b58606b

Please sign in to comment.