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