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

@banterstudiosuk/eslint-config-typescript

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@banterstudiosuk/eslint-config-typescript

Typescript lint rules

  • 0.2.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-typescript

My Typescript ESLint / Prettier configuration used for various projects. A React specific config is also available.

Install Peer Dependencies

  yarn add -D @typescript-eslint/parser@^2.31.0 \
    @typescript-eslint/eslint-plugin@^2.31.0 \
    eslint@^6.8.0 \
    eslint-plugin-import@^2.20.1 \
    eslint-plugin-jest@^23.8.2 \
    eslint-plugin-jsx-a11y@^6.2.3 \
    eslint-plugin-prettier@^3.1.2 \
    eslint-plugin-react@^7.18.3 \
    eslint-plugin-react-hooks@^2.0.0 \
    prettier@^1.18.2 \
    typescript@^3.8.3

Install

npm

npm i --save @banterstudiosuk/eslint-config-typescript

yarn

yarn add -D @banterstudiosuk/eslint-config-typescript

Usage

Include the main linter

It's important you specify a typescript parser i.e @typescript-eslint/parser

Be sure to include a parserOptions.project which points to your tsconfig.json

{
  parser: "@typescript-eslint/parser",
  extends: ["@banterstudiosuk/eslint-config-typescript"],
  parserOptions: {
    project: "some-path-to/tsconfig.json"
  }
}

With React

{
  parser: "@typescript-eslint/parser",
  extends: ["@banterstudiosuk/eslint-config-typescript/react"]
  parserOptions: {
    project: "some-path-to/tsconfig.json"
  }
}


## License

MIT

FAQs

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