๐Ÿ“ฆ directus / eslint-config

Shared ESLint config used in Directus projects

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ MIT License
๐Ÿ“ฅ Clone https://github.com/directus/eslint-config.git
HTTPS git clone https://github.com/directus/eslint-config.git
SSH git clone git@github.com:directus/eslint-config.git
CLI gh repo clone directus/eslint-config
dependabot[bot] dependabot[bot] Bump eslint from 9.21.0 to 9.32.0 (#29) 4c5a6cc 5 months ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ .vscode
๐Ÿ“ fixtures
๐Ÿ“ patches
๐Ÿ“ scripts
๐Ÿ“ src
๐Ÿ“ test
๐Ÿ“„ .editorconfig
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ eslint.config.ts
๐Ÿ“„ license
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ readme.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ tsup.config.ts
๐Ÿ“„ README.md

Directus ESLint Config

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

  • Lint and format JS/TS, Vue, JSON, YAML and TOML files (via ESLint)
  • Format HTML, CSS/SCSS, MD and GQL files (via dprint)
  • Contains recommended and hand-picked rules

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