@competec/eslint-config-competec
v2.8.2
Published
Competec ESLint Rules
Downloads
12
Readme
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.