@mediacurrent/eslint-config-react

This is Mediacurrent's ESLint config for React projects.

Usage no npm install needed!

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

README

@mediacurrent/eslint-config-react

This is Mediacurrent's ESLint config for React projects.

Install

npx install-peerdeps --dev @mediacurrent/eslint-config-react

Extend

Add the following to your .eslintrc:

"extends": "@mediacurrent/eslint-config-react"

Pre-commit hook

For formatting using these rules to take place automatically on commit, follow the steps outlined here in Prettier setup.