I'm using the latest versions of these packages:
- ESLint: 8.11.0
- Prettier: 2.6.0
- eslint-plugin-prettier: 4.0.0
- eslint-config-prettier: 8.5.0
Rule | Time (ms) | Relative |
---|---|---|
prettier/prettier | 156074.280 | 98.4% |
vue/attribute-hyphenation | 678.026 | 0.4% |
@typescript-eslint/no-unused-vars | 593.419 | 0.4% |
no-redeclare | 174.305 | 0.1% |
padding-line-between-statements | 145.755 | 0.1% |
vue/valid-next-tick | 38.034 | 0.0% |
no-restricted-imports | 37.361 | 0.0% |
@typescript-eslint/no-empty-function | 37.335 | 0.0% |
@typescript-eslint/no-loss-of-precision | 36.425 | 0.0% |
vue/no-async-in-computed-properties | 36.114 | 0.0% |
npm run lint 179.28s user 2.19s system 108% cpu 2:47.58 total
and Prettier is taking 98.3% of the total time.
Is there any way to optimize it (by passing a parameter, using some extra package, disabling specific rules, ...)?