Skip to content

logux/eslint-config

Repository files navigation

Logux ESLint Config

Shareable code style and best practice for Logux projects.


  Made at Evil Martians, product consulting for developer tools.


Install

Pure JavaScript or TypeScript:

pnpm add --save-dev @logux/eslint-config eslint

Svelte project:

pnpm add --save-dev @logux/eslint-config eslint-plugin-svelte svelte eslint

Usage

Create eslint.config.js.

For JavaScript:

import loguxConfig from '@logux/eslint-config'

/** @type {import('eslint').Linter.Config[]} */
export default [...loguxConfig]

For TypeScript project:

import loguxTsConfig from '@logux/eslint-config/ts'

/** @type {import('eslint').Linter.Config[]} */
export default [...loguxTsConfig]

For Svelte project:

import loguxSvelteConfig from '@logux/eslint-config/svelte'

/** @type {import('eslint').Linter.Config[]} */
export default [...loguxSvelteConfig]

This project utilizes ESLint with a flat configuration. You may need to enable its support in your workspace:

  • VS Code: enable eslint.experimental.useFlatConfig.