Skip to content

Commit

Permalink
fix: remove unused imports (#8613)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed Jul 1, 2022
1 parent 8cf10fb commit 0cf4832
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
@@ -1,6 +1,6 @@
assets/
build/
coverage/
lib/
lib
tsconfig.tsbuildinfo
vendor/
17 changes: 17 additions & 0 deletions .eslintrc.types.cjs
@@ -0,0 +1,17 @@
module.exports = {
plugins: ['unused-imports'],
parser: '@typescript-eslint/parser',
rules: {
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports': 'error',
'unused-imports/no-unused-vars': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
};
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.

5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -40,12 +40,12 @@
"lint:prettier": "prettier --check .",
"lint:eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
"install": "node install.js",
"generate:types": "node utils/export_all.js && api-extractor run --local --verbose",
"generate:types": "node utils/export_all.js && api-extractor run --local --verbose && eslint --ext ts --no-ignore --no-eslintrc -c .eslintrc.types.cjs --fix lib/types.d.ts",
"generate:markdown": "ts-node -O '{\"module\":\"commonjs\"}' utils/generate_docs.ts && prettier --ignore-path none --write docs",
"generate:esm-package-json": "echo '{\"type\": \"module\"}' > lib/esm/package.json",
"format": "run-s format:*",
"format:prettier": "prettier --write .",
"format:eslint": "eslint --ext js --ext ts --fix ..",
"format:eslint": "eslint --ext js --ext ts --fix .",
"docs": "run-s build generate:markdown",
"debug": "npm run build:test && mocha --inspect-brk",
"commitlint": "commitlint --from=HEAD~1",
Expand Down Expand Up @@ -114,6 +114,7 @@
"eslint-plugin-mocha": "10.0.5",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-tsdoc": "0.2.16",
"eslint-plugin-unused-imports": "2.0.0",
"esprima": "4.0.1",
"expect": "25.2.7",
"gts": "3.1.0",
Expand Down

0 comments on commit 0cf4832

Please sign in to comment.