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

  • 3.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
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 v3 supports ESlint 8.

eslint-config v2 requires ESlint 7.

Use eslint-config v1 for ESlint 6 + TSlint.

Usage

Install ESlint:

yarn add eslint prettier @emanprague/eslint-config -D

Update config files as follows:

.eslintrc.js

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

.prettierrc.js

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

Note that instead of creating the .prettierrc.js file, you can just add the following row to your package.json file.

"prettier": "@emanprague/eslint-config/prettier-config",

And you should be good to go with:

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

Contribution

How to release:

  1. manually set version in package.json
  2. push
  3. create a new release in GH

Keywords

FAQs

Package last updated on 03 Sep 2023

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