7.0.3 • Published 1 day ago

@open-turo/eslint-config-react v7.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

@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

Then in your .eslintrc file, extend from the default configuration of this package, which is the recommended eslint configuration for our existing front-end projects.

To use this config, just add to your .eslintrc the following:

"extends": "@open-turo/eslint-config-typescript"

Legacy preset

There is a legacy preset that extends @open-turo/eslint-config-typescript/legacy. This only exists for backwards compatibility with existing projects. It is strongly recommended to use the standard preset.

To use the legacy preset, update your .eslintrc file to be:

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

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.

7.0.3

1 day ago

7.0.2

18 days ago

7.0.1

22 days ago

7.0.0

1 month ago

6.0.3

2 months ago

6.0.2

2 months ago

6.0.1

2 months ago

6.0.0

3 months ago

5.0.0

5 months ago

3.0.0

10 months ago

2.0.3

11 months ago

4.0.0

9 months ago

2.0.2

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago