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

@emanprague/eslint-config

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emanprague/eslint-config

ESlint and prettier configurations

  • 2.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
137
decreased by-17.47%
Maintainers
4
Weekly downloads
 
Created
Source

eslint-config

This package contains shared rules for ESlint with TypeScript and Prettier.

Inspired by https://dev.to/robertcoopercode/using-eslint-and-prettier-in-a-typescript-project-53jb

Versions

eslint-config v2 requires ESlint 7.

Use eslint-config v1 for ESlint 6 + TSlint.

Usage

Install ESlint:

yarn add eslint @emanprague/eslint-config -D

Update config files as follows:

.eslintrc.js

module.exports = {
  extends: [
    "@emanprague/eslint-config/eslint-default"
  ],
  settings: {
    react: {
      version: "latest",
    },
  },
  env: {
    browser: true,
    jest: true,
  },
};

.prettierrc.js

module.exports = require("@emanprague/eslint-config/prettier-config");

And you should be good to go with:

eslint \"./src/**/*.{ts,tsx}\" --cache

Keywords

FAQs

Package last updated on 25 Nov 2021

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