Socket
Book a DemoInstallSign in
Socket

@directus/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/eslint-config

Shared ESLint config used in Directus projects

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
2
Created
Source

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
  • Includes eslint-plugin-command for one-off codemod

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

FAQs

Package last updated on 24 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts