A customized ESLint rules configuration for JavaScript coding style.
First install the ESLint with the following command:
yarn add --dev eslint
Next, install @qubit-ltd/eslint-config
:
yarn add --dev @qubit-ltd/eslint-config
Add @qubit-ltd/eslint-config
to the extends
section of your .eslintrc
configuration file:
{
"extends": [
"@qubit-ltd/eslint-config"
]
}
A full example of .eslintrc
configuration file is as follows:
{
"root": true,
"extends": [
"@qubit-ltd/eslint-config"
]
}