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

@tangany/eslint-config

Package Overview
Dependencies
Maintainers
10
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tangany/eslint-config

Tangany's sharable ESLint config

  • 0.3.11
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
558
increased by60.34%
Maintainers
10
Weekly downloads
 
Created
Source

Tangany ESLint Config


Shareable config that is designed to work with the extends feature of .eslintrc files. Install the package via: npm i -D @tangany/eslint-config@latest eslint-plugin-simple-import-sort eslint-plugin-import eslint-plugin-unused-imports or yarn add eslint @tangany/eslint-config@latest eslint-plugin-simple-import-sort eslint-plugin-import eslint-plugin-unused-imports -D

and add it as a dependency to your .eslintrc:

{
	"extends": ["@tangany"]
}

Your file should look something like this:

.eslintrc.js

module.exports = {
  root: true,
  parser: "@typescript-eslint/parser",
  parserOptions: {
    project: "tsconfig.json",
    sourceType: "module",
  },
  plugins: ["@typescript-eslint/eslint-plugin"],
  extends: [
    "plugin:@typescript-eslint/recommended",
    "@tangany/eslint-config"
  ],
  env: {
    node: true,
    jest: true,
  },
  rules: {}
};

Package scripts

You can add a script to your package.json to run the linter, including between the curly braces the folders you want to be linted (or remove the curly braces if it's only one folder):

"lint": "eslint \"{src,apps,libs,tests}/**/*.ts\" --fix",

© 2022 Tangany

Keywords

FAQs

Package last updated on 21 Oct 2022

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