@bluebase/eslint-config-bluebase

A collection of coding standards used for BlueBase projects

Usage no npm install needed!

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

README

BlueBase Eslint Config

An Eslint Configuration for BlueBase projects


Setup

  • Install the package via
yarn add @bluebase/eslint-config-bluebase
  • Create a .eslintrc file on the root of your project with the following content
{
    "extends": [
        "@bluebase/eslint-config-bluebase/eslint.js"
    ]
}
  • Add the following lines to scripts in package.json
"lint" : "eslint src --ext=jsx,ts,tsx",
"fix:lint" : "eslint src --ext=jsx,ts,tsx --fix"
  • Run lint
yarn lint
  • Fix lint
yarn fix:lint