@gazzati/eslint-config-node
v1.0.15
Published
ESLint + Prettier config for NodeJS applications
Downloads
18
Maintainers
Readme
ESLint + Prettier config for NodeJS applications
We use both eslint and prettier to lint our code:
- eslint is for code-quality.
- prettier is for formatting.
Installation
yarn add --dev @gazzati/eslint-config-node
also add eslint
if not already added
yarn add --dev eslint
Extend the shared eslint config in .eslintrc.js
:
// .eslintrc.js
module.exports = {
extends: ["@gazzati/eslint-config-node"],
rules: {
// Specific project rules
},
};
Extend the shared prettier config in .prettierrc.js
:
// .prettierrc.js
module.exports = require('@gazzati/eslint-config-node/.prettierrc')