Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.21 KB

README.md

File metadata and controls

57 lines (36 loc) · 1.21 KB

Shared eslint configuration

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

This configuration targets app next packages.


Contents

Setup

  • Add workspace reference to @muravjev/configs-eslint-ts-next:

    pnpm add -w @muravjev/configs-eslint-ts-next eslint
  • Add eslint configuration file:

    // apps/foo/.eslintrc.js
    
    module.exports = require('@muravjev/configs-eslint-ts-next');

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 apps/foo
    pnpm lint:fix apps/foo

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 © Sergey Muravjev


⬅ Back