eslint-plugin-jest-lazy

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.

Usage no npm install needed!

<script type="module">
  import eslintPluginJestLazy from 'https://cdn.skypack.dev/eslint-plugin-jest-lazy';
</script>

README

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.