eslint-config-isomorphic
v1.12.0
Published
JavaScript Isomorphic Style - ESLint Shareable Config
Downloads
10
Maintainers
Readme
eslint-config-isomorphic
An ESLint Shareable Config for JavaScript Isomorphic Apps
Install
This module is for advanced users.
npm install eslint-config-isomorphic
Usage
Shareable configs are designed to work with the extends
feature of .eslintrc
files.
You can learn more about
Shareable Configs on the
official ESLint website.
To use the JavaScript Standard Style shareable config, first run this:
yarn add --dev eslint-config-isomorphic eslint babel-eslint eslint-import-resolver-webpack eslint-plugin-angular eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-react eslint-plugin-standard
Then, add this to your .eslintrc file:
For React:
{
"extends": "isomorphic/react"
}
For Angular:
{
"extends": "isomorphic/angular"
}
For Node:
{
"extends": "isomorphic/node"
}
Note: We omitted the eslint-config-
prefix since it is automatically assumed by ESLint.
You can override settings from the shareable config by adding them directly into your
.eslintrc
file.