@hackney/eslint-config

Eslint config for LBH Modern Tools for Housing

Usage no npm install needed!

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

README

@hackney/eslint-config

Eslint config for TS and React projects.

Installation

npm install @hackney/eslint-config -D
yarn add @hackney/eslint-config -D

Add the library dependencies

yarn add @typescript-eslint/eslint-plugin eslint eslinit-config-airbnb eslint-config-airbnb-typescript eslint-config-prettier eslint-config-react eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-testing-library prettier -D

Usage

For React based projects configure a .eslintrc file:

{
  "extends": "@hackney/eslint-config"
}

For non React based TS projects:

{
  "extends": "@hackney/eslint-config/base"
}