3.3.1 • Published 3 years ago
eslint-config-dev v3.3.1
eslint-config-dev
eslint-config-dev is a shareable configuration package for eslint.
Install
Add eslint and eslint-config-dev to your project:
npm install --save-dev eslint eslint-config-devThen, add the following configuration to your package.json:
{
"eslintConfig": {
"extends": "dev"
}
}Usage with TypeScript
After the previous install instructions, add typescript-eslint to your project:
npm install --save-dev @typescript-eslint/parser @typescript-eslint/eslint-pluginThen, add the following configuration to your package.json:
{
"eslintConfig": {
"extends": "dev/ts"
}
}Usage with Astro
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-a11yThen, add the following configuration to your package.json:
{
"eslintConfig": {
"extends": "dev/astro"
}
}