Skip to content

open-turo/eslint-config-react

Repository files navigation

@open-turo/eslint-config-react

Turo eslint configuration for react. The config expects that Typescript is being used as it extends eslint-config-typescript.

Release Tests pass/fail License Contributions welcome CI semantic-release: angular Conventional commits Join us!

Usage

Install the package and all of its peer dependencies:

npx install-peerdeps --dev @open-turo/eslint-config-react

eslint.config.js (requires eslint>=v8.23.0)

const turoConfig = require("@open-turo/eslint-config-react");

module.exports = turoConfig();

.eslintrc (legacy example)

{
  "extends": "@open-turo/eslint-config-react/recommended",
}

You will have to set the ESLINT_USE_FLAT_CONFIG env var to true.

Development

Pre-commit

Install pre-commit and the commit hooks:

pre-commit install
pre-commit install --hook-type commit-msg

Keeping peerDependencies up-to-date

Transitive peerDependencies should be added, and kept up to date. A useful tool for that task is npx check-peer-dependencies, which shows us our missing (or outdated) peerDependencies.

Get Help

Please review Issues, post new Issues against this repository as needed.

Contributions

Please see here for guidelines on how to contribute to this project.

Packages

No packages published

Contributors 12