This package provides a very opinionated and strict ESLint configuration (plus some Prettier config as well). It basically combines other plugins and rules.
# NPM
npm install @coderspirit/eslint-config --save-dev
# Yarn
yarn add @coderspirit/eslint-config --dev
# PNPM
pnpm add --save-dev @coderspirit/eslint-config
In your .eslintrc.cjs
file, add '@coderspirit'
to the extends
section:
module.exports = {
extends: [
'@coderspirit',
// ...
],
// ...
}
In your .prettierrc.mjs
file:
import config from '@coderspirit/eslint-config/prettier'
export default {
...config,
// ... your custom details
}