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

@magrathealabs/eslint-config-magrathealabs

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@magrathealabs/eslint-config-magrathealabs

ESLint shareable config for the Magrathea Labs style

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

eslint-config-magrathealabs npm downloads

This package includes our shareable ESLint configuration used by Magrathea Labs. This configuration is based in Airbnb Style Guide. One of our motivation to create this shareable configuration is that in all of our javascript projects we need to copy and paste the same ESLint configuration, only modifying piece of json/js in some cases, but using always the same dependencies. So now we only need to follow the installation and usage section and it's ready to use.

Installation

npm install --save-dev @magrathealabs/eslint-config-magrathealabs
# or
yarn add -D @magrathealabs/eslint-config-magrathealabs

Usage

Once the @magrathealabs/eslint-config-magrathealabs package is installed, you can use it by specifying magrathealabs in the [extends] section at your .eslintrc.json or .eslintrc.js, ESLint will automatically insert the eslint-config-.(http://eslint.org/docs/user-guide/configuring#extending-configuration-files) section of your ESLint configuration.

{
  "extends": "@magrathealabs/eslint-config-magrathealabs",
  "rules": {
    // Additional, per-project rules...
  }
}

After Configuration

After you've installed and configured the @magrathealabs/eslint-config-magrathealabs in your package.json you can add the script to run the linter:

"scripts": {
  ...
  "lint": "eslint path/to/linter"
  # or
  "lint": "eslint ." #to check all files from source project
  ...
}

So you can just call this:

npm run lint
# or
yarn run lint

Linter will check your code style and return to you.

Keywords

FAQs

Package last updated on 05 Dec 2018

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