@anton.bobrov/eslint-config
v2.0.2
Published
Eslint configs for vanilla/react/next projects
Downloads
302
Maintainers
Readme
Eslint configs for vanilla/react/next projects
Installation
npm i [email protected] [email protected] --save-dev
npm i "@anton.bobrov/eslint-config" --save-dev
Usage
.eslintrc.js
/** @type {import("eslint").Linter.Config} */
module.exports = {
// base config
extends: ['@anton.bobrov/eslint-config'],
// or for React
extends: ['@anton.bobrov/eslint-config/react'],
// or for Next.js
extends: ['@anton.bobrov/eslint-config/next'],
parserOptions: {
project: './tsconfig.eslint.json',
},
};
tsconfig.eslint.json
{
"extends": "./tsconfig.json",
"include": ["**/*.ts", "**/*.js", "**/*.tsx", "**/*.jsx", "./.eslintrc.js"]
}
prettier.config.js
module.exports = require('@anton.bobrov/eslint-config/prettier');