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

Package detail

@react-hookz/eslint-config

react-hookz588MITdeprecated4.1.7

Package is deprecated and will be deleted soon. Use @ver0/eslint-config instead.

eslint configuration files used in @react-hookz projects

readme

[!CAUTION] PACKAGE IS DEPRECATED AND WILL BE DETED SOON
USE @ver0/eslint-config instead

@react-hookz/eslint-config

eslint configuration files used in @react-hookz projects

NPM Version NPM Downloads NPM Dependents Build

Installation

This package does not install eslint, so you need to install them manually.

yarn add -D @react-hookz/eslint-config eslint

Usage

This config is expected to be used with ESLint 8.3+, as it utilizes flat config.

Import sub-configs you are interested in, spreading them into your config. All configs are guaranteed to be an array.

Some configs, like jest and vitest, require extra dependencies to be installed. You can find the required dependencies in the respective READMEs.

import baseConfig from '@react-hookz/eslint-config/base.js';
import reactConfig from '@react-hookz/eslint-config/react.js';
import vitestConfig from '@react-hookz/eslint-config/vitest.js';

export default [
    ...baseConfig,
    ...reactConfig,
    ...vitestConfig,
    {
        rules: {
            // your own overrides
        },
    },
];

changelog

2.1.5 (2024-02-03)

Bug Fixes

2.1.4 (2023-10-05)

Bug Fixes

  • move prettier, eslint and eslint-plugin-prettier to peer dependencies (332ac5d)

2.1.3 (2023-10-05)

Bug Fixes

  • upgrade all dependencies (a46c453)

2.1.2 (2023-08-28)

Bug Fixes

  • disable default-case rule (fbc91c1)

2.1.1 (2023-08-14)

Bug Fixes

  • more touches to aliases and importing (378fad3)
  • more tweaks to base and typescript config (28c11ff)

2.1.0 (2023-08-14)

Features

  • add more plugins to config (edf4077)

2.0.4 (2023-07-13)

Bug Fixes

  • rollback typescript plugin to previous major (c37851c)

2.0.3 (2023-07-13)

Bug Fixes

2.0.2 (2023-07-03)

Bug Fixes

  • proper resolving of typescript files (2a4bb79)

2.0.1 (2023-07-03)

Bug Fixes

  • add rules to base and react configs (b6b4429)

2.0.0 (2023-06-29)

BREAKING CHANGES

  • package is now ESM and using different indentation character. Also, during module structure - all config files now have cjs

1.8.0 (2023-06-12)

Features

  • mdx: update configs on md\mdx linting (a88efd2)

1.7.7 (2023-04-19)

Bug Fixes

1.7.6 (2022-12-18)

Bug Fixes

  • docs: update link to GHA actions badge (25291e4)

1.7.5 (2022-11-18)

Bug Fixes

1.7.4 (2022-10-18)

Bug Fixes

1.7.3 (2022-08-29)

Bug Fixes

  • update deps and regenerate lockfile (d039399)

1.7.2 (2022-08-15)

Bug Fixes

  • update deps and regenerate lockfile (d3259c6)

1.7.1 (2022-08-15)

Bug Fixes

  • accident with hierarchy of config (c70feb6)

1.7.0 (2022-08-14)

Features

  • add typescript rule on variables naming (e7c1b6f)

1.6.1 (2022-05-11)

Bug Fixes

1.6.0 (2022-03-09)

Features

1.5.1 (2022-03-09)

Bug Fixes

  • move eslint-plugin-react-hooks to dependencies (6ad0b29)

1.5.0 (2022-02-18)

Features

  • allow underscored function parameters (d98506b)

1.4.0 (2022-01-14)

Features

  • cease defining prettier config in eslint config (#2) (cb4b937)

1.3.4 (2022-01-13)

Bug Fixes

1.3.3 (2022-01-13)

Bug Fixes

1.3.2 (2022-01-12)

Bug Fixes

1.3.1 (2022-01-12)

Bug Fixes

  • add missing dependency for airbnb (d440207)

1.3.0 (2022-01-12)

Features

  • add eslint-plugin-react-hooks (1dae2a4)

1.2.1 (2022-01-12)

Bug Fixes

  • improve typescript and base configs (408b600)

1.2.0 (2022-01-12)

Features

1.1.1 (2022-01-12)

Bug Fixes

  • move eslint-plugin-unicorn to dependencies (7fbd064)

1.1.0 (2022-01-12)

Bug Fixes

  • improve distribution packaging via .npmignore (1b0633f)

Features

  • improvements on linting along with new lint plugins (ef9cc38)

1.0.1 (2022-01-11)

Bug Fixes

1.0.0 (2022-01-11)

Features