@competec/eslint-config-competec

2.8.2 • Public • Published

pipeline status semantic-release NPM version NPM downloads

eslint-config-competec

Competec ESLint Rules

Installation

You'll first need to install ESLint with yarn:

$ yarn add eslint --dev

Next, install @competec/eslint-config-competec with yarn:

$ yarn add @competec/eslint-config-competec --dev

Usage

Create a file named .eslintrc.json with following contents in the root folder of your project:

{
    "extends": [
        "@competec/eslint-config-competec"
    ]
}

For the use with react, change it to the following:

{
    "extends": [
        "@competec/eslint-config-competec/react"
    ]
}

For the use with typescript, change it to the following:

{
    "extends": [
        "@competec/eslint-config-competec/typescript"
    ]
}

For the use with flow, change it to the following:

{
    "extends": [
        "@competec/eslint-config-competec/flow"
    ]
}

For the use in tests, change it to the following:

{
    "extends": [
        "@competec/eslint-config-competec/test"
    ]
}

Developer Information

Please use the yarn commit command to add commit with the correct formatting.

Package Sidebar

Install

npm i @competec/eslint-config-competec

Weekly Downloads

5

Version

2.8.2

License

MIT

Unpacked Size

23.1 kB

Total Files

12

Last publish

Collaborators

  • teamwebcompetec
  • raphaelh