Nerdiest Political Manifesto

    @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.

    Keywords

    none

    Install

    npm i @lendi/typescript-eslint-config

    DownloadsWeekly Downloads

    1

    Version

    0.2.3

    License

    ISC

    Unpacked Size

    7.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • trung-lendi
    • sadia-afrin
    • sean-elliott-lendi
    • nghiato
    • samanthaksanders
    • sunny.niu
    • pratyush-lendi
    • weikun-lendi
    • mfarshadmehr
    • ritapang
    • jayce_dugan
    • damien.lendi
    • jessezha
    • vinualwislendi
    • jannes.mingram.lendi
    • shraddham
    • bchiong
    • antoine_lendi
    • coshea
    • lendi-owner
    • willparker
    • mekaela
    • bradley.martin.lendi
    • kevin_bao_lendi
    • andy_sawyer
    • anuragsri
    • malkyfaith
    • brianduan
    • andrealin
    • yihan_lu_lendi
    • matthew-jordan
    • vamsiampolu
    • stan-lendi
    • amir.sarvestani
    • timsilva
    • illi4
    • samnevers
    • tues
    • jeffrey9231
    • boris.gordon
    • leo.wei
    • naguibihab
    • edkim_lendi
    • bharadwajsampath
    • joshatlendi
    • nodemacross
    • ddiprose_lendi
    • wilkinsleung0712
    • john.zhang
    • luissilvalendi
    • jacktator
    • lendi-luizglingani
    • nikste
    • cgreenlendi
    • simon.armstrong
    • allancrainlendi
    • thomaslendi
    • dimitrioslendi
    • daniel-deng-lendi
    • hemanthvenkata
    • ashis.nayak
    • kevinlilendi
    • tigerpistol
    • mapaxton
    • desmond.hsu
    • le-kang-lendi
    • yifan_lendi
    • yupeili
    • rwinarto.lendi
    • andrewantony
    • harshdeepgarg_lendi
    • dirgh
    • zhengyang.liu
    • mahmood-sajjadi
    • janettt