npm

Need private packages and team management tools?Check out npm Orgs. »

@alexandrov/eslint-config

1.3.2 • Public • Published

@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.

install

npm i @alexandrov/eslint-config

Downloadsweekly downloads

0

version

1.3.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability