Skip to content

Package

eslint-config v3.0.1

Changelog

seedcordseedcord

The whole Discord bot, typed end to end

Website · Guide · Reference · Discord

npm node bun license

About

@seedcord/eslint-config is the flat ESLint config seedcord projects run, with a matching Prettier config. Two options add the bot rules:

pnpm create seedcord installs it and writes both config files. Install it yourself to add the same setup to an existing bot, or to any TypeScript project with both options left off.

Installation

pnpm add -D @seedcord/eslint-config eslint jiti prettier typescript

ESLint loads an eslint.config.ts through jiti.

Usage

// eslint.config.ts
import createConfig from '@seedcord/eslint-config';

export default createConfig({
    tsconfigRootDir: import.meta.dirname,
    registerDiscordjsPlugin: true,
    registerSeedcordPlugin: true,
    generalIgnores: ['**/seedcord-gen.ts']
});
// prettier.config.ts
import { createPrettierConfig } from '@seedcord/eslint-config/prettier';

export default createPrettierConfig();

The linting guide covers what the rules catch.