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

@alexlafroscia/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alexlafroscia/eslint-config

Alex LaFroscia's Personal ESLint Baseline Config

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

@alexlafroscia/eslint-config

After setting up almost the same ESLint configuration on many project, I decided to finally come up with a personal configuration that I can share and extend.

My personal configuration tries to be light on language usage rules and mostly just focus on formatting. To that end, it leverages prettier for the most part, with a few extra things added in.

Usage

First, install the config file

yarn add -D @alexlafroscia/eslint-config

If you just want to extend from the base configuration, the only thing you need in your .eslintrc file is

{
  "extends": "@alexlafroscia"
}

If you're using TypeScript, you should instead do the following to configure the TypeScript parser instead.

{
  "extends": "@alexlafroscia/eslint-config/typescript"
}

What does this configuration do?

All versions of the configuration

  • Configures Prettier to run through ESLint (and disable any built-in ESLint rules about formatting)
  • Configures the sorting and grouping of imports

The typescript configuration additionally

  • Configures the correct parser
  • Disable ESLint from warning about unused variables (since TypeScript will take care for that more accurately)

FAQs

Package last updated on 09 Jul 2019

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