@mediamonks/eslint-config-react

This package provides a React TypeScript eslint configuration as an extensible shared config, based on the MediaMonks Coding Standards.

Usage no npm install needed!

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

README

@mediamonks/eslint-config-react npm version

This package provides a React TypeScript eslint configuration as an extensible shared config, based on the MediaMonks Coding Standards.

Installation

The configuration has a number of peer dependencies that must be installed.

npm i --dev @mediamonks/eslint-config-react

Note for yarn users: yarn does not install peer dependencies by default, this can be supplemented with install-peerdeps.

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

Usage

Now you can add @mediamonks/eslint-config-react to your .eslintrc. Adding parserOptions.project is only required if your project is using TypeScript.

{
  "extends": "@mediamonks/eslint-config-react",
  "parserOptions": {
    "project": "./tsconfig.json" // can also be an array, if multiple `tsconfig.json` are present
  }
}