We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52e160a commit 865c19bCopy full SHA for 865c19b
.eslintrc.cjs
@@ -152,6 +152,16 @@ module.exports = {
152
{ argsIgnorePattern: "^_", caughtErrors: "all" },
153
],
154
155
+ "no-restricted-syntax": [
156
+ "error",
157
+ // Forbid default import from "typescript"
158
+ {
159
+ message: 'Default import from "typescript" is not allowed.',
160
+ selector:
161
+ 'ImportDeclaration[source.value="typescript"] > ImportDefaultSpecifier',
162
+ },
163
+ ],
164
+
165
// These on-by-default rules don't work well for this repo and we like them off.
166
"n/no-missing-import": "off",
167
"no-case-declarations": "off",
0 commit comments