Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/logux/eslint-config

ESLint shareable config for Logux
https://github.com/logux/eslint-config

Last synced: 1 day ago
JSON representation

ESLint shareable config for Logux

Awesome Lists containing this project

README

        

# Logux ESLint Config

Shareable code style and best practice for [Logux] projects.

[Logux]: https://logux.org/

---

  Made at Evil Martians, product consulting for developer tools.

---

## Install

Pure JavaScript or TypeScript:

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

Svelte project:

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

## Usage

Create `eslint.config.js`.

For JavaScript:

```js
import loguxConfig from '@logux/eslint-config'

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

For TypeScript project:

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

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

For Svelte project:

```js
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`.