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

eslint-config-surikat

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-surikat

Surikat's way of coding in TS

  • 5.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
288
increased by54.01%
Maintainers
1
Weekly downloads
 
Created
Source

ESLint Config Surikat

Surikat's ESLint rules, including rules for TypeScript & React.

Setup

Install as a dev dependency. ESLint and other necessary dependencies will be included.

npm i -D eslint-config-surikat

Add an .eslintrc file:

npx eslint --init

Extend in your .eslintrc file. This is in general all your config file should need:

{
  "extends": "surikat"
}

For React applications, use the React specific config, including lint rules for React and hooks.

{
  "extends": "surikat/react"
}

In some cases, such as when having code in a monorepo, the ESLint config will be merged with configuration files in parent directories. To prevent this and only use this config, specify that the configuration file is a root file.

{
  "extends": "surikat",
  "root": true
}

Install Necessary Extensions

For VSCode, install the official ESLint extension.

For JetBrains based IDE:s such as IntelliJ, WebStorm & GoLand, support should be included out of the box.

Use

You should already get support from your code editor / IDE. Add a lint script to your `package.json to enable support for linting through the CI as well.

{
  "scripts": {
    "lint": "eslint . --ext .js,.jsx,.ts,.tsx"
  }
}

FAQs

Package last updated on 06 Feb 2024

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