@moltin/eslint-config

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @moltin/eslint-config

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

88.5 kB

Total Files

16

Last publish

Collaborators

  • bsteinbach.ep
  • samblacklock
  • itaccounts-ep
  • moltinbot
  • epjames
  • tomkdickinson
  • sgoswami
  • kchengep