eslint-config-dev is a shareable configuration package for eslint.
Add eslint and eslint-config-dev to your project:
npm install --save-dev eslint eslint-config-dev
Then, add the following configuration to your package.json
:
{
"eslintConfig": {
"extends": "dev"
}
}
After the previous install instructions, add typescript-eslint to your project:
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-plugin
Then, add the following configuration to your package.json
:
{
"eslintConfig": {
"extends": "dev/ts"
}
}
After the previous install instructions, add eslint-plugin-astro and eslint-plugin-jsx-a11y to your project:
npm install --save-dev eslint-plugin-astro eslint-plugin-jsx-a11y
Then, add the following configuration to your package.json
:
{
"eslintConfig": {
"extends": "dev/astro"
}
}