@baliestri/eslint-config-common

Common configuration for ESLint.

Usage no npm install needed!

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

README

@baliestri/eslint-config-common

Common configuration for ESLint. Commonly used by myself, but made available for your use.

Usage

Shareable configs are designed to work with the extends feature of .eslintrc.json files.

It's necessary install the package dependencies, run the following command:

# NPM
$ npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-plugin-unicorn
# Yarn
$ yarn add --dev @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-plugin-unicorn

Then, add this to your .eslintrc.json file:

{
  "extends": "@baliestri/common"
}

Note: We omitted the eslint-config- prefix since it's automatically assumed by ESLint.

Licence

This project is licensed under the MIT license. Please see the license file for more information. tl;dr you can do whatever you want as long as you include the original copyright and license notice in any copy of the software/source.