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

@cognite/eslint-config

Package Overview
Dependencies
Maintainers
48
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cognite/eslint-config

Cognite eslint config

  • 1.4.0-0
  • Source
  • npm
  • Socket score

Version published
Maintainers
48
Created
Source

Eslint config

This provides styleguide for JS/ES through eslint rules and prettier formatter.

Setup

Install lint config:

yarn add --dev @cognite/eslint-config

Install peer dependencies:

yarn add --dev babel-eslint eslint eslint-config-airbnb eslint-config-prettier eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react prettier

Create a .eslintrc.json file in the root of your project:

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

Rules:

We use Airbnb as a base for our styleguide, and we use prettier as a formatter. This means that we extend the prettier config and eslint --fix will use prettier to format your code.

We also extend the recommended rules for Jest tests.

Exceptions to the standard prettier config is singlequotes and dangling commas.

Babel parser is used to eslint to parse experimental ES syntax.

Keywords

FAQs

Package last updated on 15 Oct 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