smartswap-eslint-config
v1.0.0
Published
Smartswap ESLint config
Readme
smartswap-eslint-config
Smartswap 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 smartswap-eslint-configUsage
Make sure to include
require('smartswap-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('smartswap-eslint-config/load')
module.exports = {
extends: 'smartswap-eslint-config/node'
}or:
require('smartswap-eslint-config/load')
module.exports = {
extends: 'smartswap-eslint-config/react'
}