Skip to content

Commit 3da80de

Browse files
committed
chore: introducing @typescript-eslint/no-restricted-imports
1 parent ffc27a7 commit 3da80de

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.eslintrc.js

+18
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,24 @@ module.exports = {
113113
"@typescript-eslint/no-non-null-assertion": "off",
114114
},
115115
},
116+
{
117+
files: ["src/**"],
118+
rules: {
119+
"@typescript-eslint/no-restricted-imports": [
120+
"error",
121+
{
122+
patterns: [
123+
{
124+
group: ["@typescript-eslint/*"],
125+
message:
126+
"@typescript-eslint is not included in dependencies. Only type-import is allowed.",
127+
allowTypeImports: true,
128+
},
129+
],
130+
},
131+
],
132+
},
133+
},
116134
{
117135
files: ["src/rules/**"],
118136
rules: {},

0 commit comments

Comments
 (0)