0.0.1 • Published 10 months ago

@flixlix/config-eslint-ts-react v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Shared eslint configuration

The purpose of the eslint is linting javascript and typescript languages (js, ts, tsx).

This configuration targets lib react packages.


Contents

Setup

  • Add workspace reference to @flixlix/config-eslint-ts-react:

    pnpm add -w @flixlix/config-eslint-ts-react eslint
  • Add eslint configuration file:

    // .eslintrc.js
    
    module.exports = require('@flixlix/config-eslint-ts-react');

Usage

  • Automatic validation of staged files with eslint is handled by monorepo on commit.
  • Automatic validation file with eslint is handled by monorepo on save.
  • Manual usage from command line:

    pnpm lint packages/bar
    pnpm lint:fix packages/bar

Donation

If you found this project helpful, consider\ buying me a coffee, donate by paypal or just leave a star⭐\ Thanks for your support, it is much appreciated!

License

MIT © Luca Félix


⬅ Back