1.3.2 • Published 5 years ago

@alexandrov/eslint-config v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@alexandrov/eslint-config

An ESLint Shareable Config

Install

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

Add to your ~/.eslintrc file

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.

Add to your ~/.prettierrc file

{
  "arrowParens": "always",
  "trailingComma": "all",
  "tabWidth": 2,
  "semi": false,
  "singleQuote": false
}

Add VS Code extension - ESLint

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.