Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/logux/eslint-config
- Owner: logux
- License: mit
- Created: 2016-10-16T18:38:48.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-18T14:13:51.000Z (27 days ago)
- Last Synced: 2024-10-20T18:37:19.332Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 1.71 MB
- Stars: 35
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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`.