Skip to content

Commit c33d70c

Browse files
committed
Baseline for eslint-import-resolver-typescript timings
1 parent bf41b66 commit c33d70c

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

Diff for: .eslintrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,26 @@
3838
],
3939
2
4040
],
41+
"import/extensions": [
42+
"error",
43+
"never",
44+
{
45+
"json": "always"
46+
}
47+
],
4148
"import/first": "error",
4249
"import/newline-after-import": "error",
4350
"import/no-absolute-path": "error",
4451
"import/no-duplicates": "error",
4552
"import/no-extraneous-dependencies": ["off", { "devDependencies": false }],
4653
"import/no-unassigned-import": ["error", { "allow": ["symbol-observable"] }],
54+
"import/no-unused-modules": [
55+
"error",
56+
{
57+
"missingExports": true,
58+
"unusedExports": true
59+
}
60+
],
4761
"import/order": [
4862
"error",
4963
{

Diff for: linting/timings.txt

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Rule | Time (ms) | Relative
2+
:-------------------------------------------|----------:|--------:
3+
import/no-unused-modules | 16192.504 | 34.3%
4+
@typescript-eslint/no-misused-promises | 12934.596 | 27.4%
5+
@typescript-eslint/no-floating-promises | 6937.194 | 14.7%
6+
import/order | 2205.970 | 4.7%
7+
import/no-extraneous-dependencies | 2010.543 | 4.3%
8+
import/no-duplicates | 1928.831 | 4.1%
9+
import/extensions | 1304.148 | 2.8%
10+
@typescript-eslint/no-unnecessary-qualifier | 975.010 | 2.1%
11+
padding-line-between-statements | 502.669 | 1.1%
12+
max-len | 199.775 | 0.4%
13+
14+
real 1m21.717s
15+
user 0m0.168s
16+
sys 0m0.399s

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build": "node ./bin/devkit-admin build",
2424
"build:bazel": "node ./bin/devkit-admin build-bazel",
2525
"build-tsc": "tsc -p tsconfig.json",
26-
"lint": "eslint --cache --max-warnings=0 \"**/*.ts\"",
26+
"lint": "eslint --max-warnings=0 \"**/*.ts\"",
2727
"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",
2828
"templates": "node ./bin/devkit-admin templates",
2929
"validate": "node ./bin/devkit-admin validate",

0 commit comments

Comments
 (0)