Socket
Book a DemoInstallSign in
Socket

@borealisgroup/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@borealisgroup/eslint-config

ESLint config for JS linting.

1.13.7
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

@borealisgroup/eslint-config

ESLint config for JS linting.

Prerequisites

  • react or node environment
  • usage of jest as the test-suite (if any)
  • if you don't use create-react-app, you have to install eslint

Note: you can still overwrite the env, globals and parser in your local .eslintrc.js.

Install

Using npm:

yarn -D @borealisgroup/eslint-config

Usage

Create a file .eslintrc.js at the root of your project:

module.exports = {
  extends: '@borealisgroup',
};

If not already done, in your editor (e.g. VSCode):

  • Enable ESLint: Run the linter on type
  • Enable ESLint: Auto Fix on save
  • Disable Editor: Format on save (Prettier)

ESLint

Parser

  • babel-eslint

Plugins

  • airbnb: one of the most widely used code styles for ECMAScript 6+ and React.

Rules

  • TODO

Prettier

This ESLint configuration can work together with prettier, thanks to eslint-plugin-prettier

Why

Why do we need a shared coding style accross the company?

TL;DR - For consistency, productivity and happiness.

Contributing

If you want to modify plugins or general rules in your project, please submit a pull request with a justification instead of overwriting your local config.

See awesome-eslint for more plugins.

Keywords

eslint

FAQs

Package last updated on 25 Sep 2020

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.