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

@mangoweb/eslint-config-ts

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mangoweb/eslint-config-ts

ESLint configuration using Prettier designed for TS.

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@mangoweb/eslint-config-ts

ESLint configuration using Prettier designed for TS.

Installation

  1. Install the config: $ npm install @mangoweb/eslint-config-ts --save-dev
  2. And its peer dependencies: $ npm install @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier --save-dev
  3. If you want to use the manGoweb prettier config, also run $ npm install @mangoweb/prettier-config --save-dev

⚠️ You might want to also fix the package version so that any potential future backwards incompatibilities don't break your build. This package is generally intended for live development with the occasional BC break. Should that affect your application because you failed to fix the version, that's on you.

Usage

  1. Create a .prettierrc.js file in your project root:
    module.exports = {
        ...require("@mangoweb/prettier-config"), // Or something else
        // Add any project-specific overrides
        // E.g. semi: false
    }
    
  2. Create a .eslintrc.js in your project root:
    module.exports = {
        extends:  [
            '@mangoweb/eslint-config-ts',
        ]
    }
    
  3. Configure your ide to use these files. It will likely find them automatically though.

Optionally, also add these to your package.json:

{
    "scripts": {
        "eslint:lint": "eslint \"src/**/*.{ts,tsx}\" ",
        "eslint:fix": "eslint --fix \"src/**/*.{ts,tsx}\" "
    }
}

That's it!

FAQs

Package last updated on 09 Nov 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