@lendi/typescript-eslint-config

0.2.3 • Public • Published

@lendi/typescript-eslint-config

How to use

Add the package to your project.

yarn add --dev @lendi/typescript-eslint-config

Create a .eslintrc.js file in the root of the project and paste in the following code:

const frontend = require('@lendi/typescript-eslint-config').frontend;

// Specify the typescript rules defined for this project.
frontend.parserOptions.project = './tsconfig.esm.json';

module.exports = frontend;

To specifically import the backend configuration, just change all instances of the word frontend to backend in the above block of code. The major difference between the two is detection and linting of jsx code.

Add the following script to your package.json:

"eslint": "eslint -c .eslintrc.js --ext .js,.jsx,.ts,.tsx ./"

The last argument should be the location of where eslint should be run against (e.g. src/ or packages/).

For any issues, please contact the HUB team.

Dependencies (7)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @lendi/typescript-eslint-config

    Weekly Downloads

    1

    Version

    0.2.3

    License

    ISC

    Unpacked Size

    7.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • joshua-derbe-lendi
    • michaelhuttonlendi
    • simon_lau_lendi
    • mona_catapia_lendi
    • augustodiaslendi
    • benjamintan
    • kishan.vyas
    • rachit.arora
    • leoskbabu
    • hm.qm
    • oliverfrance
    • joymun
    • kjartan.johansen
    • simon.vollett
    • michael-palmes-lendi
    • dapovey
    • beiwang-lendi
    • nooshines
    • willhargan_lendi
    • fernandogontijo_
    • sylvialuo
    • phill_eade
    • trung-lendi
    • nghiato
    • sunny.niu
    • pratyush-lendi
    • mfarshadmehr
    • ritapang
    • jessezha
    • vinualwislendi
    • jannes.mingram.lendi
    • bchiong
    • antoine_lendi
    • lendi-owner
    • bradley.martin.lendi
    • andy_sawyer
    • anuragsri
    • malkyfaith
    • brianduan
    • andrealin
    • yihan_lu_lendi
    • stan-lendi
    • amir.sarvestani
    • timsilva
    • illi4
    • samnevers
    • tues
    • boris.gordon
    • leo.wei
    • edkim_lendi
    • bharadwajsampath
    • nodemacross
    • ddiprose_lendi
    • john.zhang
    • luissilvalendi
    • lendi-luizglingani
    • nikste
    • thomaslendi
    • dimitrioslendi
    • le-kang-lendi
    • yupeili
    • rwinarto.lendi
    • andrewantony
    • harshdeepgarg_lendi
    • dirgh