@bjeco/eslint-config

Portable configuration for Eslint

Usage no npm install needed!

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

README

eslint-config

npm (scoped)

Portable configuration for Eslint

Install

yarn add -D @bjeco/eslint-config eslint eslint-plugin-jest eslint-plugin-json-format eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-unicorn@19

Setup

Add an "eslintConfig" parameter to the package.json file as an object containing an "extends" parameter:

{
  "name": "my-library",
  "version": "9000.0.1",
  "eslintConfig": {
    "extends": "@bjeco"
  }
}

Reference

Eslint configuration settings

TODO

  • Add VSCode plugin and settings for auto fix setup
  • Go through existing recommended rule sets and extend them with additional rules
    • eslint core
    • json-format
    • jsx-a11y
    • react
    • react-hooks
    • unicorn
  • Figure out what other lint plugins should be added here