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

@moltin/eslint-config

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moltin/eslint-config

![Coding Style](https://img.shields.io/badge/code_style-moltin-green.svg)

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ESLint Config for Moltin

Coding Style

Based heavily on Airbnb JavaScript Style Guide with a few small tweaks.

Usage

The core configuration is designed for vanilla ES6 JavaScript, without any frameworks. We also have variations that are designed specifically for each framework below.

Base

Install the npm package to your project

yarn add --dev @moltin/eslint-config

Create .eslintrc with the following content.

{
  "extends": "@moltin"
}

React

Create .eslintrc with the following content.

{
  "extends": [
    "@moltin",
    "@moltin/eslint-config/rules/react"
  ]
}

NOTE: The peer dependencies for React are not installed by default. You will need to the following dependnecies added to your project

yarn add --dev eslint-plugin-react

React

You can also configure react-a11y which will help detect accesibility issues within your components.

{
  "extends": [
    "@moltin",
    "@moltin/eslint-config/rules/react",
    "@moltin/eslint-config/rules/react-a11y"
  ]
}

NOTE: The peer dependencies for React a11y are not installed by default. You will need to the following dependnecies added to your project

yarn add --dev eslint-plugin-react eslint-plugin-jsx-a11y

TODO

  • Push to npm @moltin/eslint-config

Keywords

FAQs

Package last updated on 23 Apr 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