@ayloncarrijo/eslint-config
v2.0.7
Published
A shareable ESLint config used in my projects.
Readme
@ayloncarrijo/eslint-config
A shareable ESLint config used in my projects.
What's supported by this config?
- JavaScript;
- TypeScript;
- React;
Install
pnpm add -D eslint @ayloncarrijo/eslint-configUsage
- Add a
.eslintrc.jsfile in the root of the project extending the config:
module.exports = {
extends: ["@ayloncarrijo/eslint-config"],
};You can also use a
.eslintrc.jsoninstead of.eslintrc.jsif you prefer.
- If you are using TypeScript and your
tsconfig.jsonis not located in the same directory as your ESLint config, you will need to provide a path to it:
module.exports = {
extends: ["@ayloncarrijo/eslint-config"],
parserOptions: {
project: "./tsconfig.json",
},
};