Skip to content
GitHub

typescriptConfig

variable in meocord/eslint Since 4.0.0

const typescriptConfig: Linter.Config

Lints TypeScript as a new MeoCord app does: type-aware rules, Prettier, and import cycles that break injection.

Spread it into a rule set of your own to add or change rules, and keep the default export's other entries.

Examples

TypeScript
import meocordESLint, { typescriptConfig } from 'meocord/eslint'

export default [
  ...meocordESLint,
  { ...typescriptConfig, rules: { ...typescriptConfig.rules, '@typescript-eslint/no-deprecated': 'warn' } },
]