README
@alexandrov/eslint-config
Shareable Config
An ESLintInstall
npm i -g \
eslint \
prettier \
babel-eslint \
@alexandrov/eslint-config \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-config-standard \
eslint-plugin-standard \
eslint-plugin-promise \
eslint-plugin-import \
eslint-plugin-node \
eslint-plugin-react \
eslint-plugin-jest
~/.eslintrc
file
Add to your IMPORTANT! use only common
for now...
{
"extends": "@alexandrov/eslint-config/common" // use only this
}
You can override settings from the shareable config by adding them directly into your
.eslintrc
file.
~/.prettierrc
file
Add to your {
"arrowParens": "always",
"trailingComma": "all",
"tabWidth": 2,
"semi": false,
"singleQuote": false
}
ESLint
Add VS Code extension -Extension to enable ESLint in VS Code
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.
License
MIT. Copyright (c) Alexandrov.co.