Skip to content

Commit

Permalink
Add lint rule for unused imports, and fix (#4476)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgodbolt committed Dec 20, 2022
1 parent fe5f5e1 commit d94eb20
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yml
Expand Up @@ -9,6 +9,7 @@ plugins:
- prettier
- unicorn
- '@typescript-eslint'
- unused-imports
extends:
- ./.eslint-license-header.yml
- eslint:recommended
Expand Down
2 changes: 1 addition & 1 deletion lib/base-compiler.ts
Expand Up @@ -52,7 +52,7 @@ import {CompilerOutputOptions, ParseFiltersAndOutputOptions} from '../types/feat
import {Language} from '../types/languages.interfaces';
import {Library, LibraryVersion, SelectedLibraryVersion} from '../types/libraries/libraries.interfaces';
import {ResultLine} from '../types/resultline/resultline.interfaces';
import {ToolResult, ToolTypeKey} from '../types/tool.interfaces';
import {Tool, ToolResult, ToolTypeKey} from '../types/tool.interfaces';

import {BuildEnvSetupBase, getBuildEnvTypeByKey} from './buildenvsetup';
import {BuildEnvDownloadInfo} from './buildenvsetup/buildenv.interfaces';
Expand Down
2 changes: 1 addition & 1 deletion lib/tooling/base-tool.ts
Expand Up @@ -31,7 +31,7 @@ import {ExecutionOptions} from '../../types/compilation/compilation.interfaces';
import {UnprocessedExecResult} from '../../types/execution/execution.interfaces';
import {Library, SelectedLibraryVersion} from '../../types/libraries/libraries.interfaces';
import {ResultLine} from '../../types/resultline/resultline.interfaces';
import {ToolInfo, ToolResult, ToolTypeKey} from '../../types/tool.interfaces';
import {ToolInfo, ToolResult} from '../../types/tool.interfaces';
import * as exec from '../exec';
import {logger} from '../logger';
import {parseOutput} from '../utils';
Expand Down
46 changes: 46 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -130,6 +130,7 @@
"eslint-plugin-requirejs": "^4.0.1",
"eslint-plugin-sonarjs": "^0.11.0",
"eslint-plugin-unicorn": "^40.1.0",
"eslint-plugin-unused-imports": "^2.0.0",
"file-loader": "^6.2.0",
"lint-staged": "^13.0.3",
"mini-css-extract-plugin": "^2.4.5",
Expand Down

0 comments on commit d94eb20

Please sign in to comment.