New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kiwicom/eslint-config

Package Overview
Dependencies
Maintainers
6
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kiwicom/eslint-config

Kiwi.com's ESlint config for TypeScript and Flow.

  • 12.7.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

@kiwicom/eslint-config

Our ESlint config.

Add the following script to your package.json:

{
  "scripts": {
    "lint": "eslint . --max-warnings 0"
  }
}

Increase the number of warnings to your current number of warnings to avoid introducing new ones.

Available configs to extend:

  • @kiwicom/eslint-config - core, Babel, Node, imports
  • @kiwicom/eslint-config/ts - TypeScript
  • @kiwicom/eslint-config/flow - Flow
  • @kiwicom/eslint-config/react - React
  • @kiwicom/eslint-config/jest - Jest

Setup

Your .eslintrc.js:

// Example config for a React+Jest project with both TS and Flow
module.exports = {
  extends: ["@kiwicom", "@kiwicom/eslint-config/react", "@kiwicom/eslint-config/jest"],
  overrides: [
    {
      // TypeScript
      files: ["*.ts", "*.tsx"],
      extends: ["@kiwicom/eslint-config/ts"],
      parserOptions: {
        project: "./tsconfig.json",
      },
    },
    {
      // Flow
      files: ["*.js", "*.jsx", "*.js.flow"],
      extends: ["@kiwicom/eslint-config/flow"],
    },
  ],
};

Prettier

Prettier rules to avoid conflicts are included, however, prettier itself is not.

Install yarn add prettier -D separately, create prettier.config.js and add the following scripts to your package.json:

{
  "scripts": {
    "prettier": "prettier --check .",
    "fmt": "prettier --write ."
  }
}

Development

Benchmark:

  • TIMING=1 eslint ...

Checking prettier conflicts:

  • npx eslint-config-prettier index.js

License

MIT

FAQs

Package last updated on 19 Sep 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