Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

☂️ eslint-plugin-jest #492

Open
Boshen opened this issue Jun 28, 2023 · 2 comments
Open

☂️ eslint-plugin-jest #492

Boshen opened this issue Jun 28, 2023 · 2 comments
Assignees
Labels
A-linter Area - Linter good first issue Experience Level - Good for newcomers

Comments

@Boshen
Copy link
Member

Boshen commented Jun 28, 2023

Warning

This comment is maintained by CI. Do not edit this comment directly.
To update comment template, see https://github.com/oxc-project/oxc/tree/main/tasks/lint_rules

This is tracking issue for eslint-plugin-jest.

There are 54(+ 0 deprecated) rules.

  • 1/19 recommended rules are remaining as TODO
  • 8/35 not recommended rules are remaining as TODO

To get started, run the following command:

just new-jest-rule <RULE_NAME>

Then register the rule in crates/oxc_linter/src/rules.rs and also declare_all_lint_rules at the bottom.

Recommended rules

✨: 18, 🚫: 0 / total: 19
Status Name Docs
jest/expect-expect https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/expect-expect.md
jest/no-alias-methods https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-alias-methods.md
jest/no-commented-out-tests https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-commented-out-tests.md
jest/no-conditional-expect https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-conditional-expect.md
jest/no-deprecated-functions https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-deprecated-functions.md
jest/no-disabled-tests https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-disabled-tests.md
jest/no-done-callback https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-done-callback.md
jest/no-export https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-export.md
jest/no-focused-tests https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-focused-tests.md
jest/no-identical-title https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-identical-title.md
jest/no-interpolation-in-snapshots https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-interpolation-in-snapshots.md
jest/no-jasmine-globals https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-jasmine-globals.md
jest/no-mocks-import https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-mocks-import.md
jest/no-standalone-expect https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-standalone-expect.md
jest/no-test-prefixes https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-test-prefixes.md
jest/valid-describe-callback https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/valid-describe-callback.md
jest/valid-expect-in-promise https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/valid-expect-in-promise.md
jest/valid-expect https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/valid-expect.md
jest/valid-title https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/valid-title.md

✨ = Implemented, 🚫 = Not supported

Not recommended rules

✨: 27, 🚫: 0 / total: 35
Status Name Docs
jest/consistent-test-it https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/consistent-test-it.md
jest/max-expects https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/max-expects.md
jest/max-nested-describe https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/max-nested-describe.md
jest/no-conditional-in-test https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-conditional-in-test.md
jest/no-confusing-set-timeout https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-confusing-set-timeout.md
jest/no-duplicate-hooks https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-duplicate-hooks.md
jest/no-hooks https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-hooks.md
jest/no-large-snapshots https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-large-snapshots.md
jest/no-restricted-jest-methods https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-restricted-jest-methods.md
jest/no-restricted-matchers https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-restricted-matchers.md
jest/no-test-return-statement https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-test-return-statement.md
jest/no-untyped-mock-factory https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/no-untyped-mock-factory.md
jest/prefer-called-with https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-called-with.md
jest/prefer-comparison-matcher https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-comparison-matcher.md
jest/prefer-each https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-each.md
jest/prefer-equality-matcher https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-equality-matcher.md
jest/prefer-expect-assertions https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-expect-assertions.md
jest/prefer-expect-resolves https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-expect-resolves.md
jest/prefer-hooks-in-order https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-hooks-in-order.md
jest/prefer-hooks-on-top https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-hooks-on-top.md
jest/prefer-importing-jest-globals https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-importing-jest-globals.md
jest/prefer-jest-mocked https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-jest-mocked.md
jest/prefer-lowercase-title https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-lowercase-title.md
jest/prefer-mock-promise-shorthand https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-mock-promise-shorthand.md
jest/prefer-snapshot-hint https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-snapshot-hint.md
jest/prefer-spy-on https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-spy-on.md
jest/prefer-strict-equal https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-strict-equal.md
jest/prefer-to-be https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-to-be.md
jest/prefer-to-contain https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-to-contain.md
jest/prefer-to-have-length https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-to-have-length.md
jest/prefer-todo https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/prefer-todo.md
jest/require-hook https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/require-hook.md
jest/require-to-throw-message https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/require-to-throw-message.md
jest/require-top-level-describe https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/require-top-level-describe.md
jest/unbound-method https://github.com/jest-community/eslint-plugin-jest/blob/v28.6.0/docs/rules/unbound-method.md

✨ = Implemented, 🚫 = Not supported

@Boshen Boshen added good first issue Experience Level - Good for newcomers A-linter Area - Linter labels Jul 5, 2023
@Boshen

This comment was marked as outdated.

@Boshen Boshen changed the title ☂️ linter: eslint-plugin-jest recommended rules ☂️ eslint-plugin-jest Jan 26, 2024
@keita-hino
Copy link
Contributor

I will start working on the task of jest/require-to-throw-message.

Boshen pushed a commit that referenced this issue Apr 8, 2024
Fixes umbrella issue for
[`plugin-jest`](#492) to render
recommended rules section properly.

- - -

Along with sticking legacy ESLint.
Since `eslint@latest` is now v9 and it removed `Linter#defineRule()` and
`Linter#getRules()` which we use heavily...
mysteryven added a commit that referenced this issue Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter good first issue Experience Level - Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants