@mendabot/eslint-config
v0.0.2
Published
ESLint config shared across our codebase
Downloads
26
Readme
@mendabot/eslint-config
Shared ESLint config used across Mendabot projects. Flat config, ESM only.
Bundles @eslint/js, typescript-eslint (type-checked), @eslint/json, @stylistic,
perfectionist, unicorn, and eslint-plugin-prettier.
Install
eslint and prettier are peer dependencies, so install them alongside.
pnpm
pnpm add -D @mendabot/eslint-config eslint prettiernpm
npm install -D @mendabot/eslint-config eslint prettieryarn
yarn add -D @mendabot/eslint-config eslint prettierbun
bun add -d @mendabot/eslint-config eslint prettierUsage
eslint.config.js:
import eslintConfigDefault from '@mendabot/eslint-config'
export default [...eslintConfigDefault]Extend or override by appending your own config objects:
import eslintConfigDefault from '@mendabot/eslint-config'
export default [...eslintConfigDefault, { rules: { 'no-console': 'error' } }]Type-aware rules are enabled via projectService, so TypeScript files must be covered by a
tsconfig.json. JSON files are linted and key-sorted, except package.json, tsconfig.json,
eas.json, turbo.json, and lockfiles.
