Skip to content

Very slow performance #445

@NullVoxPopuli

Description

@NullVoxPopuli

This issue is the successor to: #304
which was closed after #368.
But I don't think that's enough.

What version of eslint are you using?

❯ yarn eslint -v
v7.32.0

What version of prettier are you using?

❯ yarn list prettier
└─ [email protected]

What version of eslint-plugin-prettier are you using?

❯ yarn list eslint-plugin-prettier
└─ [email protected]

Please paste any applicable config files that you're using (e.g. .prettierrc or .eslintrc files)
n/a
( there also isn't a reasonable way to paste this here, cause I given up on simple lint configs, and gone with an overrides only approach: https://github.com/NullVoxPopuli/eslint-configs )

I don't have or use a .prettierrc, but have defined the following (in a local project) with the following config:

'prettier/prettier': [
        'error',
        {
          arrowParens: 'always',
          printWidth: 100,
          singleQuote: true,
          trailingComma: 'all',
        },
      ],

What source code are you linting?
Combination of JS, TS, and JSON, but only JS and TS have eslint-plugin-prettier enabled.

What did you expect to happen?

Not have > 20% of time spent on one plugin

What actually happened?

Rule                                                                  | Time (ms) | Relative
:---------------------------------------------------------------------|----------:|--------:
prettier/prettier                                                     | 22398.901 |    85.9%
no-redeclare                                                          |   276.436 |     1.1%
padding-line-between-statements                                       |   242.521 |     0.9%
ember/no-assignment-of-untracked-properties-used-in-tracking-contexts |   178.402 |     0.7%
@typescript-eslint/no-unused-vars                                     |   166.158 |     0.6%
no-unused-vars                                                        |   165.051 |     0.6%
ember/require-computed-property-dependencies                          |   159.632 |     0.6%
ember/no-actions-hash                                                 |   145.305 |     0.6%
ember/no-get                                                          |   129.990 |     0.5%
ember/no-on-calls-in-components                                       |    94.890 |     0.4%

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions