Skip to content

Commit

Permalink
Disable no-unused-import-ts ESLint rule if running inside VSCode (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
hasparus committed Dec 3, 2021
1 parent 5f81ca9 commit 687cdab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.js
@@ -1,3 +1,5 @@
const inTextEditor = process.env.VSCODE_PID !== undefined

/** @type {import("eslint").Linter.Config} */
module.exports = {
env: {
Expand All @@ -16,7 +18,7 @@ module.exports = {
'no-invalid-this': 'off',
// this gets inlined into a package eslint, so it means: use current package's package.info or the one at the project root
'import/no-extraneous-dependencies': ['error', { packageDir: ['./', __dirname] }],
'unused-imports/no-unused-imports-ts': 'error',
'unused-imports/no-unused-imports-ts': inTextEditor ? 'off' : 'error',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'@typescript-eslint/no-use-before-define': 'off',
Expand Down

1 comment on commit 687cdab

@shashidhar771892
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add the deleted Line in the coading at assing in supper error

Please sign in to comment.