1.2.0-beta.1 • Published 2 years ago
@bluedex/eslint-config v1.2.0-beta.1
@bluedex/eslint-config
Bluedex ESLint config to enforce coding standards and best practices.
- TypeScript and Jest support
- Seamless Prettier integration
- Separate environments for Node.js and React
Installation
yarn add --dev eslint @bluedex/eslint-configUsage
Make sure to include
require('@bluedex/eslint-config/load')at the top of your ESLint config. This loads a@rushstack/eslint-patch/modern-module-resolutionpatch so that ESLint loads any plugins installed by this package.
require('@bluedex/eslint-config/load')
module.exports = {
extends: '@bluedex/eslint-config/node'
}or:
require('@bluedex/eslint-config/load')
module.exports = {
extends: '@bluedex/eslint-config/react'
}VSCode
If you're a VSCode user, consider installing the official ESLint plugin and copying ./.vscode/settings.json to your own .vscode/settings.json configuration file. This will automatically run eslint --fix on save.
1.2.0-beta.1
2 years ago