eslint-plugin-jest-lazy

1.1.11 • Public • Published

Why

As we can see at https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md, original name is longer for most methods.

Since shorter name improve readability (if possible to understand meaning), this rule will help us to use shorter name.

module.exports = {
  plugins: ['jest', 'jest-lazy'],
  extends: ['plugin:jest/recommended'],
  rules: {
    /**
     * https://github.com/jest-community/eslint-plugin-jest/blob/master/docs/rules/no-alias-methods.md
     */
    'jest/no-alias-methods': 0,
    'jest-lazy/prefer-short-names': 2,
  },
}

Acknowledgement

The most part of the code of this plugin is copied from eslint-plugin-jest.

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-plugin-jest-lazy

Weekly Downloads

2

Version

1.1.11

License

MIT

Unpacked Size

11.1 kB

Total Files

6

Last publish

Collaborators

  • ken0x0a