Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lendi/typescript-eslint-config

Package Overview
Dependencies
Maintainers
53
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lendi/typescript-eslint-config

## How to use

  • 0.2.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
53
Created
Source

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

FAQs

Package last updated on 04 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc