@admmello/eslint-config
v1.6.12
Published
ESLint configuration used by admmello.
Downloads
56
Readme
admmello ESLint config
Whats included?
- Standard config base;
- React plugin;
- React Hooks plugin;
- JSX a11y plugin;
- Prettier;
Setup
- Install the dependencies
npm i -D eslint @admmello/eslint-config
yarn add -D eslint @admmello/eslint-config
- Create a
.eslintrc.json
file extending the config:
with Next.js
{
"extends": ["@admmello/eslint-config/next", "next/core-web-vitals"]
}
without Next.js
{
"extends": "@admmello/eslint-config/react"
}
Node.js
{
"extends": "@admmello/eslint-config/node"
}
In your settings.json avoid
"editor.formatOnSave": true
as a global parameter.Still in setting.json add
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.addMissingImports": "explicit",
"source.organizeImports": "explicit"
},