@typeform/eslint-config

6.1.0 • Public • Published

eslint-config-typeform

ESLint configuration for Typeform front-end projects

Install

yarn add eslint @typeform/eslint-config --dev

Usage

If you want to use the default configuration, you can simply create a .eslintrc.js file (or alternatives) with the following content:

module.exports = {
  extends: ['@typeform/eslint-config'],
}

And run with:

yarn eslint . --fix

Using with prettier

If your codebase uses prettier for styles formatting, you can override default standard rules updating your eslint config:

module.exports = {
  extends: ['@typeform/eslint-config', 'prettier', 'prettier/react', 'plugin:prettier/recommended'],
}

and installing eslint-plugin-prettier:

yarn add --dev eslint-plugin-prettier

Readme

Keywords

none

Package Sidebar

Install

npm i @typeform/eslint-config

Weekly Downloads

138

Version

6.1.0

License

LGPL-3.0-only

Unpacked Size

18.5 kB

Total Files

20

Last publish

Collaborators

  • typeform-admin
  • ownersnpm