Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@spotify/eslint-config-react

spotify284.3kApache-2.015.0.0

Spotify's ESLint config for React projects

readme

eslint-config-react

Spotify's ESLint config for react.

Installation

yarn add --dev @spotify/eslint-config-react eslint eslint-plugin-react eslint-plugin-jsx-a11y

Usage

After installing, update your project's .eslintrc.json file to import the rule sets you want:

{
  "extends" : [
    "@spotify/eslint-config-react"
  ]
}

Read the ESlint config docs for more information.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

15.0.0 (2023-05-18)

chore

  • deps: upgrade dependencies (ef060c7)
  • node: upgrade required Node version to 18 (9528841)

BREAKING CHANGES

  • node: Node bump from v14 to v18
  • deps: TypeScript bump from v4 to v5, Jest bump from v28 to v29

14.1.6 (2023-02-14)

Note: Version bump only for package @spotify/eslint-config-react

14.1.5 (2023-01-30)

Note: Version bump only for package @spotify/eslint-config-react

14.1.4 (2023-01-19)

Note: Version bump only for package @spotify/eslint-config-react

14.1.3 (2022-12-07)

Note: Version bump only for package @spotify/eslint-config-react

14.1.2 (2022-12-02)

Note: Version bump only for package @spotify/eslint-config-react

14.1.1 (2022-11-25)

Note: Version bump only for package @spotify/eslint-config-react

14.1.0 (2022-08-08)

Note: Version bump only for package @spotify/eslint-config-react

14.0.2 (2022-07-15)

Note: Version bump only for package @spotify/eslint-config-react

14.0.1 (2022-07-12)

Note: Version bump only for package @spotify/eslint-config-react

14.0.0 (2022-07-11)

Note: Version bump only for package @spotify/eslint-config-react

13.0.1 (2022-04-19)

Note: Version bump only for package @spotify/eslint-config-react

13.0.0 (2022-03-21)

chore

BREAKING CHANGES

  • update @typescript-eslint from v4 to v5, eslint from v7 to v8

12.0.0 (2021-09-22)

Build System

  • node: drop support for Node v12. Support only NodeJS >= 14.17.x (be04398)

BREAKING CHANGES

  • node: Dropped support for Node v12. Minimum supported NodeJS version is now >= 14.17.x.

11.0.0 (2021-07-16)

Note: Version bump only for package @spotify/eslint-config-react

10.0.0 (2021-04-14)

Build System

  • drop support for nodejs v10.x (3fe3059)

Features

  • eslint-config-react: disable react/prop-types rule (d445345)

BREAKING CHANGES

  • drop support for NodeJS v10.x, which reaches EOL on April 30, 2021.

9.0.2 (2021-02-26)

Bug Fixes

9.0.0 (2020-10-26)

Note: Version bump only for package @spotify/eslint-config-react

8.0.2 (2020-07-15)

Bug Fixes

  • eslint-config-react: fix peer dependency on eslint-plugin-react-hooks (8591423)

8.0.0 (2020-06-23)

Features

BREAKING CHANGES

  • eslint: see release notes for eslint v7

7.0.1 (2020-05-15)

Note: Version bump only for package @spotify/eslint-config-react

7.0.0 (2020-04-28)

BREAKING CHANGES

  • running web-scripts without arguments exits code 1 now instead of exiting 0
  • prettier 2.0 may introduce breaking changes
  • prettier 2.0 may introduce breaking changes

  • improvement(web-scripts): make stylecheck and typecheck default for lint

the lint script will now default typechecking and stylechecking to true by default. You may shut these off with --no-typecheck and --no-stylecheck.

  • Users who have projects incompatible with TypeScript checks or with projects that do not user prettier will now fail yarn lint.

6.2.0 (2020-04-04)

Note: Version bump only for package @spotify/eslint-config-react

6.1.1 (2020-04-03)

Note: Version bump only for package @spotify/eslint-config-react

6.0.0 (2020-01-29)

Build System

  • bump node in engines to 10.18.0 (08ea936)

BREAKING CHANGES

  • increasing Node version in engines declaration

5.2.0 (2020-01-22)

Features

  • index.js: Add react/jsx-curly-brace-presence rule (fbef1ae)

5.0.0 (2020-01-06)

Note: Version bump only for package @spotify/eslint-config-react

4.0.0 (2020-01-03)

chore

  • bump engine to >=10.13.0 (9527453)

Features

  • web-scripts: Upgrade to ESLint ^6.8.0 (d0c37e9)

BREAKING CHANGES

  • Minimum Node version has been increased
  • web-scripts: Users of web-scripts that rely on ESLint 5 will see unexpected linting errors.

3.0.1 (2019-10-24)

Bug Fixes

  • eslint-config-react: Add static-variables to react/sort-comp (f0526c0)

3.0.0 (2019-10-10)

Note: Version bump only for package @spotify/eslint-config-react

2.0.0 (2019-09-23)

Note: Version bump only for package @spotify/eslint-config-react

1.1.4 (2019-07-17)

Bug Fixes

  • Add repostiory field to package.json files (fccd2db)

1.1.0 (2019-07-01)

Bug Fixes

  • support ESLint 6 in our configs (59341e3)
  • Updates engines field to node >=10 (b3b4f58)

1.0.2 (2019-06-26)

Bug Fixes

  • update dependencies for peerDependency warnings (eceff7c)

1.0.1 (2019-06-24)

Note: Version bump only for package @spotify/eslint-config-react