Socket
Socket
Sign inDemoInstall

eslint-config-leapfe

Package Overview
Dependencies
0
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-leapfe

Leap's TypeScript and React ESLint config


Version published
Weekly downloads
1
decreased by-92.31%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-config-leapfe

Leap specific linting rules for ESLint

Our default export contains all of our ESLint rules, including ECMAScript 6+、 React and TypeScript. It requires eslint, @typescript-eslint/parser, eslint-plugin-import, eslint-plugin-react, eslint-plugin-react-hooks, @typescript-eslint/eslint-plugin, eslint-plugin-promise and eslint-config-prettier.

Installation

using npm 5+, use this shortcut

npx install-peerdeps --dev eslint-config-leapfe

Then, add eslint-config-leap to the extends array in your .eslintrc.* file. This rules include typescript rule, so you should specify parser and parserOptions.project in .eslintrc.* file.

{
  "parser": "@typescript-eslint/parser",
  "extends": [
    "leapfe"
  ],
  "parserOptions": {
    "project": ["./tsconfig.json"]
  }
}

Rules

all available rules https://github.com/LeapFE/eslint-config-leap/blob/master/rule.json

FAQs

Last updated on 15 Jun 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc