eslint-config-tjw-jest

2.0.0 • Public • Published

eslint-config-tjw-jest

The Jared Wilcurt's Jest ESLint rules

Using this

  1. npm install --save-dev eslint-config-tjw-jest
  2. In your .eslitrc.js add tjw-jest to your extends like so:
    module.exports = {
      'extends': [
        'tjw-jest'
      ]
    };

If you already have a no-restricted-syntax rule, you can merge the ones that come with this config with your own, like so:

// .eslintrc.js
const jestRestrictedSyntax = require('eslint-config-tjw-jest/no-restricted-syntax.json');

module.exports = {
  extends: [
    'tjw-jest'
  ],
  rules: {
    'no-restricted-syntax': [
      'error',
      ...jestRestrictedSyntax,
      // your custom rules
    ]
  }
};

See also:

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-tjw-jest

Weekly Downloads

44

Version

2.0.0

License

MIT

Unpacked Size

16.4 kB

Total Files

9

Last publish

Collaborators

  • thejaredwilcurt