Skip to content

Commit

Permalink
Baseline for eslint-import-resolver-typescript timings
Browse files Browse the repository at this point in the history
  • Loading branch information
bordecal committed Jul 18, 2022
1 parent bf41b66 commit c33d70c
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,26 @@
],
2
],
"import/extensions": [
"error",
"never",
{
"json": "always"
}
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-absolute-path": "error",
"import/no-duplicates": "error",
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }],
"import/no-unassigned-import": ["error", { "allow": ["symbol-observable"] }],
"import/no-unused-modules": [
"error",
{
"missingExports": true,
"unusedExports": true
}
],
"import/order": [
"error",
{
Expand Down
16 changes: 16 additions & 0 deletions linting/timings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Rule | Time (ms) | Relative
:-------------------------------------------|----------:|--------:
import/no-unused-modules | 16192.504 | 34.3%
@typescript-eslint/no-misused-promises | 12934.596 | 27.4%
@typescript-eslint/no-floating-promises | 6937.194 | 14.7%
import/order | 2205.970 | 4.7%
import/no-extraneous-dependencies | 2010.543 | 4.3%
import/no-duplicates | 1928.831 | 4.1%
import/extensions | 1304.148 | 2.8%
@typescript-eslint/no-unnecessary-qualifier | 975.010 | 2.1%
padding-line-between-statements | 502.669 | 1.1%
max-len | 199.775 | 0.4%

real 1m21.717s
user 0m0.168s
sys 0m0.399s
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "node ./bin/devkit-admin build",
"build:bazel": "node ./bin/devkit-admin build-bazel",
"build-tsc": "tsc -p tsconfig.json",
"lint": "eslint --cache --max-warnings=0 \"**/*.ts\"",
"lint": "eslint --max-warnings=0 \"**/*.ts\"",
"ng-dev": "cross-env TS_NODE_PROJECT=$PWD/.ng-dev/tsconfig.json TS_NODE_TRANSPILE_ONLY=1 node --no-warnings --loader ts-node/esm node_modules/@angular/dev-infra-private/ng-dev/bundles/cli.mjs",
"templates": "node ./bin/devkit-admin templates",
"validate": "node ./bin/devkit-admin validate",
Expand Down

0 comments on commit c33d70c

Please sign in to comment.