oxc-project / oxc

⚓ A collection of JavaScript tools written in Rust.
https://oxc.rs
MIT License
11.33k stars 409 forks source link

☂️ eslint-plugin-jest #492

Open Boshen opened 1 year ago

Boshen commented 1 year ago

[!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 62(+ 0 deprecated) rules.

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.8.3/docs/rules/expect-expect.md | | ✨ | jest/no-alias-methods | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-alias-methods.md | | ✨ | jest/no-commented-out-tests | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-commented-out-tests.md | | ✨ | jest/no-conditional-expect | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-conditional-expect.md | | ✨ | jest/no-deprecated-functions | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-deprecated-functions.md | | ✨ | jest/no-disabled-tests | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-disabled-tests.md | | ✨ | jest/no-done-callback | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-done-callback.md | | ✨ | jest/no-export | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-export.md | | ✨ | jest/no-focused-tests | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-focused-tests.md | | ✨ | jest/no-identical-title | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-identical-title.md | | ✨ | jest/no-interpolation-in-snapshots | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-interpolation-in-snapshots.md | | ✨ | jest/no-jasmine-globals | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-jasmine-globals.md | | ✨ | jest/no-mocks-import | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-mocks-import.md | | ✨ | jest/no-standalone-expect | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-standalone-expect.md | | ✨ | jest/no-test-prefixes | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-test-prefixes.md | | ✨ | jest/valid-describe-callback | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/valid-describe-callback.md | | | jest/valid-expect-in-promise | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/valid-expect-in-promise.md | | ✨ | jest/valid-expect | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/valid-expect.md | | ✨ | jest/valid-title | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/valid-title.md | ✨ = Implemented, 🚫 = Not supported

Not recommended rules

✨: 30, 🚫: 0 / total: 43 | Status | Name | Docs | | :----: | :--- | :--- | | ✨ | jest/consistent-test-it | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/consistent-test-it.md | | ✨ | jest/max-expects | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/max-expects.md | | ✨ | jest/max-nested-describe | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/max-nested-describe.md | | ✨ | jest/no-conditional-in-test | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-conditional-in-test.md | | ✨ | jest/no-confusing-set-timeout | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-confusing-set-timeout.md | | ✨ | jest/no-duplicate-hooks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-duplicate-hooks.md | | ✨ | jest/no-hooks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-hooks.md | | ✨ | jest/no-large-snapshots | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-large-snapshots.md | | ✨ | jest/no-restricted-jest-methods | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-restricted-jest-methods.md | | ✨ | jest/no-restricted-matchers | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-restricted-matchers.md | | ✨ | jest/no-test-return-statement | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-test-return-statement.md | | ✨ | jest/no-untyped-mock-factory | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/no-untyped-mock-factory.md | | | jest/padding-around-after-all-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-after-all-blocks.md | | | jest/padding-around-after-each-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-after-each-blocks.md | | | jest/padding-around-all | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-all.md | | | jest/padding-around-before-all-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-before-all-blocks.md | | | jest/padding-around-before-each-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-before-each-blocks.md | | | jest/padding-around-describe-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-describe-blocks.md | | | jest/padding-around-expect-groups | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-expect-groups.md | | | jest/padding-around-test-blocks | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/padding-around-test-blocks.md | | ✨ | jest/prefer-called-with | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-called-with.md | | ✨ | jest/prefer-comparison-matcher | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-comparison-matcher.md | | | jest/prefer-each | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-each.md | | ✨ | jest/prefer-equality-matcher | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-equality-matcher.md | | | jest/prefer-expect-assertions | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-expect-assertions.md | | ✨ | jest/prefer-expect-resolves | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-expect-resolves.md | | ✨ | jest/prefer-hooks-in-order | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-hooks-in-order.md | | ✨ | jest/prefer-hooks-on-top | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-hooks-on-top.md | | | jest/prefer-importing-jest-globals | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-importing-jest-globals.md | | ✨ | jest/prefer-jest-mocked | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-jest-mocked.md | | ✨ | jest/prefer-lowercase-title | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-lowercase-title.md | | ✨ | jest/prefer-mock-promise-shorthand | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-mock-promise-shorthand.md | | | jest/prefer-snapshot-hint | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-snapshot-hint.md | | ✨ | jest/prefer-spy-on | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-spy-on.md | | ✨ | jest/prefer-strict-equal | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-strict-equal.md | | ✨ | jest/prefer-to-be | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-to-be.md | | ✨ | jest/prefer-to-contain | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-to-contain.md | | ✨ | jest/prefer-to-have-length | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-to-have-length.md | | ✨ | jest/prefer-todo | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/prefer-todo.md | | ✨ | jest/require-hook | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/require-hook.md | | ✨ | jest/require-to-throw-message | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/require-to-throw-message.md | | ✨ | jest/require-top-level-describe | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/require-top-level-describe.md | | | jest/unbound-method | https://github.com/jest-community/eslint-plugin-jest/blob/v28.8.3/docs/rules/unbound-method.md | ✨ = Implemented, 🚫 = Not supported
Boshen commented 1 year ago

@mysteryven Can you setup a todo list in issue summary?

keita-hino commented 7 months ago

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