@moltin/eslint-config
![Coding Style](https://img.shields.io/badge/code_style-moltin-green.svg)
Last updated a year ago by moltinbot .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @moltin/eslint-config 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (a year ago)

1 Versions

  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |