Skip to content

directus/eslint-config

Repository files navigation

Directus ESLint Config

Opinionated ESLint config used by the projects in the Directus ecosystem.

Installation

pnpm add -D eslint @directus/eslint-config

Usage

Create an ESLint config file with the following content:

Minimal

export { default } from '@directus/eslint-config';

When using additional config

import directusConfig from '@directus/eslint-config';

export default [
	...directusConfig,
	// Additional config
];

Credits

This config is heavily inspired by and partially based on Anthony's ESLint config preset ❤️
If you're looking for an ESLint config preset outside of the Directus ecosystem, check it out at https://github.com/antfu/eslint-config.

Credits also go to all maintainers of the ESLint plugins this config is using.

Additional Resources