eslint-config-tjw-base

2.0.0 • Public • Published

eslint-config-tjw-base

The Jared Wilcurt's base ESLint rules

Using this

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

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 baseRestrictedSyntax = require('eslint-config-tjw-base/no-restricted-syntax.json');

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

See also:

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-tjw-base

Weekly Downloads

18

Version

2.0.0

License

MIT

Unpacked Size

6.71 kB

Total Files

5

Last publish

Collaborators

  • thejaredwilcurt