@yepreally/eslint-config
v6.0.0
Published
ESLint rules for yepreally projects
Readme
@yepreally/eslint-config
ESLint rule configuration based on work from eslint-plugin-bmcallis.
http://eslint.org/docs/rules/
Plugins Used:
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-node
- eslint-plugin-react
- eslint-plugin-react-hooks
Usage
Install the configs by running:
npm install --save-dev eslint @yepreally/eslint-configNote that the plugins and parser used are dependencies of this project and will also be installed to your project, so you don't need to specify them individually.
Then add the extends to your .eslintrc.js:
module.exports = {
extends: ['@yepreally/eslint-config'],
rules: {
// your overrides
}
}Smaller Bits
By extending @yepreally/eslint-config you're getting all of the configs for eslint, import, jest, react, and typescript. If you only want some of these you can extend them individually.
module.exports = {
extends: [
'@yepreally/eslint-config/core',
'@yepreally/eslint-config/import',
'@yepreally/eslint-config/jest',
'@yepreally/eslint-config/react',
'@yepreally/eslint-config/typescript',
],
rules: {
// overrides
}
}