Chialab's linting rules for ESLint.
It includes:
- recommended default ESLint rules
eslint-plugin-jsx-a11y
for JSX templates accessibility checkeslint-plugin-babel
for unsupported JavaScript features@typescript-eslint/eslint-plugin
for TypeScript language
Install ESLint:
npm i -D eslint
yarn add -D eslint
Install @chialab/eslint-config
:
npm i -D @chialab/eslint-config
yarn add -D @chialab/eslint-config
Create a .eslintrc.json
file and add the configuration:
.eslintrc.json
{
"extends": [
"@chialab/eslint-config"
]
}
Install the ESLint extension for your IDE (optional):