@eleven-labs/eslint-config

1.0.0 • Public • Published

💅 eslint-config

Shared ESLint configuration for project

Integrate into new project

Install this package with NPM:

npm install --save-dev eslint @eleven-labs/eslint-config

Install this package with Yarn:

yarn add -D eslint @eleven-labs/eslint-config

Use ESLint config in your project

Create an .eslintrc file at the root of the project and add the config that suits your project.

For a JavaScript project:

{
  "extends": "@eleven-labs/eslint-config"
}

All eslint configurations that follow inherit this configuration.

For a TypeScript project:

{
  "extends": "@eleven-labs/eslint-config/typescript"
}

For a React project:

{
  "extends": "@eleven-labs/eslint-config/react"
}

You can combine the configs if you have a TypeScript and React project:

{
  "extends": ["@eleven-labs/eslint-config/typescript", "@eleven-labs/eslint-config/react"]
}

Don't forget to specify the ecmascript version and other environments you are on in your configuration file

For more information see the documentation

Example:

{
  "env": {
    "es2022": true,
    "jest": true
  },
  "extends": [
    "@eleven-labs/eslint-config/typescript"
  ]
}

To add the prettier config, please follow the package documentation.

Readme

Keywords

Package Sidebar

Install

npm i @eleven-labs/eslint-config

Weekly Downloads

26

Version

1.0.0

License

MIT

Unpacked Size

6 kB

Total Files

6

Last publish

Collaborators

  • fpasquet