@moltin/eslint-config
v1.0.0
Published
![Coding Style](https://img.shields.io/badge/code_style-moltin-green.svg)
Downloads
2
Readme
ESLint Config for Moltin
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