@alexandrov/eslint-config

Alexandrov.co JavaScript Styleguide - ESLint Shareable Config

Usage no npm install needed!

<script type="module">
  import alexandrovEslintConfig from 'https://cdn.skypack.dev/@alexandrov/eslint-config';
</script>

README

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