@superdispatch/eslint-plugin
v0.7.0
Published
Shared ESLint plugin
Downloads
121
Keywords
Readme
@superdispatch/eslint-plugin
Installation
yarn add eslint prettier typescript @superdispatch/eslint-plugin -D
Usage
Add to .eslintrc.js
:
module.exports = {
settings: {
// Require for `eslint-plugin-react`.
react: { version: 'detect' },
},
overrides: [
{
files: '*.js',
extends: 'plugin:@superdispatch/node',
},
{
files: '*.{ts,tsx}',
extends: [
'plugin:@superdispatch/typescript',
'plugin:@superdispatch/react',
],
},
{
files: ['**/__tests__/**/*.{ts,tsx}'],
extends: 'plugin:@superdispatch/jest',
},
],
};