Javascript code quality guide using ESLint
Yarn:
yarn add -D \
@ravorona/eslint-config \
@eslint/js \
eslint
NPM:
npm i --save-dev \
@ravorona/eslint-config \
@eslint/js \
eslint
Set the shared configurations inside your ESLint configuration
import ravorona from '@ravorona/eslint-config'
export default [
...ravorona.configs.all,
{
rules: {
'no-unused-vars': 'warn'
}
}
]
Prefer Prettier for formatting rules.