UNPKG

@toreda/eslint-config

Version:

Toreda's shareable ESLint flat config for TypeScript and Prettier. Requires ESLint 9+.

66 lines (38 loc) 1.22 kB
[![Toreda](https://content.toreda.com/logo/toreda-logo.png)](https://www.toreda.com) # `@toreda/eslint-config` Toreda's official `eslint-config` for organization-wide TypeScript projects.   # Installation ## Install with `pnpm` ```bash $ `pnpm` add @toreda/eslint-config --D ``` ## Install with npm ```bash $ npm add @toreda/eslint-config --save-dev ```   # Usage ## Using the config After `@toreda/eslint-config` has been added to project dependencies, create (or open) `eslint.config.js` in your project's root folder. **Spread `@toreda/eslint-config` into your flat config array:** ```javascript const toredaConfig = require('@toreda/eslint-config'); module.exports = [ ...toredaConfig, { rules: {} } ]; ``` > Requires ESLint 9 or newer. For ESLint 8 and earlier, use `@toreda/eslint-config@2.x`.   # More information See [eslint.org's shareable configs page](https://eslint.org/docs/developer-guide/shareable-configs) for more information.   # Legal ## License [MIT](LICENSE) © Toreda, Inc. ## Copyright Copyright © 2019 - 2026 Toreda, Inc. All Rights Reserved. https://www.toreda.com