@razorlabs/eslint-config

1.0.0 • Public • Published

@razorlabs/eslint-config

Razor Labs 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 @razorlabs/eslint-config

or

pnpm add -D eslint @razorlabs/eslint-config

Usage

Make sure to include require('@razorlabs/eslint-config/load') at the top of your ESLint config. This loads a @rushstack/eslint-patch/modern-module-resolution patch so that ESLint loads any plugins installed by this package.

require('@razorlabs/eslint-config/load')

module.exports = {
  extends: '@razorlabs/eslint-config/node'
}

or:

require('@razorlabs/eslint-config/load')

module.exports = {
  extends: '@razorlabs/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.

Package Sidebar

Install

npm i @razorlabs/eslint-config

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

7.42 kB

Total Files

7

Last publish

Collaborators

  • natedotv2