@xverseprojects/eslint-config

0.0.1 • Public • Published

@uniswap/eslint-config

Uniswap 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 @uniswap/eslint-config

Usage

Make sure to include require('@uniswap/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('@uniswap/eslint-config/load')

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

or:

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @xverseprojects/eslint-config

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

7.29 kB

Total Files

7

Last publish

Collaborators

  • xverseprojects