Socket
Book a DemoInstallSign in
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

Source
npmnpm
Version
2.1.0
Version published
Weekly downloads
347
109.04%
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");

Keywords

eslint

FAQs

Package last updated on 14 Dec 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