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

Package detail

eslint-config-ybiquitous

ybiquitous21.9kMIT21.1.0

Personal ESLint configuration

eslint, eslintconfig

readme

eslint-config-ybiquitous

npm node MIT License Conventional Conventional Commits Changelog

My personal ESLint configuration.

This package purpose is to collect some tips and plugins.

For more details about plugins used in this package, please check dependencies field in package.json.

Install

When not using TypeScript:

npm install --save-dev eslint-config-ybiquitous eslint prettier

When using TypeScript, install the following in addition:

npm install --save-dev @typescript-eslint/eslint-plugin

Usage

Edit your .eslintrc.* file according to some following cases:

Case Setting
Basic extends: "ybiquitous"
Node.js extends: "ybiquitous/node"
Browser extends: "ybiquitous/browser"
React extends: "ybiquitous/react"
TypeScript extends: "ybiquitous/typescript"

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

21.1.0 (2024-09-02)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 8.0.0 to 8.3.0 (#1343) (9f4d104)

21.0.0 (2024-08-01)

⚠ BREAKING CHANGES

  • typescript: require @typescript-eslint/eslint-plugin>=8.0.0 as peer dependency (#1339)
  • typescript: add new rules and remove deprecated rules since @typescript-eslint/eslint-plugin v8 (#1331)

Features

  • deps: bump eslint-plugin-compat from 4.2.0 to 6.0.0 (#1329) (e97ff04)
  • deps: bump eslint-plugin-regexp from 2.4.0 to 2.5.0 (#1312) (5a0b485)
  • react: add react/jsx-props-no-spread-multi rule (#1334) (f871ae4)
  • typescript: add new rules and remove deprecated rules since @typescript-eslint/eslint-plugin v8 (#1331) (20cd09b)
  • typescript: require @typescript-eslint/eslint-plugin>=8.0.0 as peer dependency (#1339) (9cb0057)

Bug Fixes

  • deps: stop supporting @typescript-eslint/eslint-plugin v8 (#1336) (a246a97)

20.0.0 (2024-04-01)

⚠ BREAKING CHANGES

  • deps: bump @typescript-eslint/eslint-plugin from 6.20.0 to 7.1.0 (#1299)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 6.20.0 to 7.1.0 (#1299) (fa09661)
  • deps: bump @typescript-eslint/eslint-plugin from 7.1.0 to 7.4.0 (#1308) (6a8b16c)
  • deps: bump eslint-plugin-react from 7.33.2 to 7.34.1 (#1304) (6a854e3)

19.1.0 (2024-02-01)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 6.14.0 to 6.18.0 (#1285) (408989d)
  • deps: bump @typescript-eslint/eslint-plugin from 6.18.1 to 6.20.0 (#1292) (c2dff17)

19.0.0 (2023-12-18)

⚠ BREAKING CHANGES

  • drop Node.js 16 support (#1270)

Features

  • deps: bump @typescript-eslint/eslint-plugin from >=6.9.0 to >=6.14.0 (#1273) (a1ace91)
  • deps: bump eslint-plugin-regexp from 1.15.0 to 2.1.2 (#1274) (3948e14)
  • drop Node.js 16 support (#1270) (0495838)

18.3.0 (2023-11-01)

Features

  • deps: bump @typescript-eslint/eslint-plugin from >=6.2.0 to >=6.9.0 (#1261) (cf65290)

18.2.0 (2023-10-02)

Features

18.1.0 (2023-09-01)

Features

  • core: remove deprecated no-return-await rule (#1243) (53946f8)
  • typescript: add @typescript-eslint/class-methods-use-this rule (#1245) (5c2113c)

Bug Fixes

  • deps: bump eslint-config-prettier from 8.8.0 to 9.0.0 (#1240) (4f9c88c)

18.0.0 (2023-07-20)

⚠ BREAKING CHANGES

  • deps: bump @typescript-eslint/eslint-plugin from 5.60.1 to 6.1.0 (#1235)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.60.1 to 6.1.0 (#1235) (8cb7ffb)

17.0.0 (2023-05-20)

⚠ BREAKING CHANGES

  • drop Node.js 14 support (#1212)

Features

16.3.0 (2023-02-02)

Features

  • deps: bump eslint-plugin-import from 2.26.0 to 2.27.5 (#1171) (02ad76e)
  • deps: bump eslint-plugin-jsx-a11y from 6.6.1 to 6.7.1 (#1174) (a9bfb34)
  • deps: bump eslint-plugin-react from 7.31.11 to 7.32.2 (#1178) (dcd84c4)
  • deps: bump eslint-plugin-regexp from 1.11.0 to 1.12.0 (#1183) (b60d40e)

Bug Fixes

  • deps: bump @typescript-eslint/eslint-plugin from 5.48.0 to 5.50.0 (#1177) (b96410b)

16.2.0 (2022-12-01)

Features

  • core: enable no-empty-static-block and no-new-native-nonconstructor (cafc50c)
  • regexp: enable no-extra-lookaround-assertions and no-missing-g-flag (1034b0f)

16.1.0 (2022-11-01)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.38.1 to 5.42.0 (#1147) (ed7c008)

16.0.0 (2022-07-01)

⚠ BREAKING CHANGES

  • drop Node.js v12 support (#1109)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.27.0 to 5.30.0 (#1107) (a5e1924)
  • drop Node.js v12 support (#1109) (5fe6605)

15.4.0 (2022-06-01)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.21.0 to 5.27.0 (#1092) (4822223)
  • deps: bump eslint-plugin-react from 7.29.4 to 7.30.0 (#1091) (e1689ec)

15.3.0 (2022-05-02)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.17.0 to 5.21.0 (#1079) (bcfc382)
  • deps: bump eslint from 8.12.0 to 8.14.0 (#1081) (fc8ad27)

15.2.0 (2022-03-05)

Features

15.1.0 (2022-03-03)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 5.10.2 to 5.13.0 (#1058) (fc45370)
  • deps: bump eslint from 8.3.0 to 8.6.0 (#1033) (c8a133e)
  • deps: bump eslint-config-prettier from 8.4.0 to 8.5.0 (#1059) (09f9828)
  • deps: bump eslint-plugin-react from 7.28.0 to 7.29.2 (#1052) (248b5c5)

15.0.0 (2021-11-23)

⚠ BREAKING CHANGES

  • deps: The latest version of 8.x is required and the core ruleset is updated.

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.32.0 to 5.3.0 (#1004) (e817ed0)
  • deps: bump eslint-plugin-react from 7.26.1 to 7.27.1 (#1015) (6cf12e6)
  • deps: bump eslint-plugin-regexp from 1.3.1 to 1.5.0 (#997) (3b707c7)
  • deps: support eslint 8.x (#1014) (0847359)

Bug Fixes

  • core: allow __dirname and __filename for no-underscore-dangle (#1006) (a5284f8)
  • deps: bump eslint-plugin-compat from 3.13.0 to 4.0.0 (#1008) (e4ad27b)
  • deps: bump eslint-plugin-jsx-a11y from 6.4.1 to 6.5.1 (#1012) (2447df6)
  • deps: bump eslint-plugin-react-hooks from 4.2.0 to 4.3.0 (#1010) (92512a1)

14.3.0 (2021-09-27)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.31.0 to 4.32.0 (#988) (1703a15)
  • deps: bump eslint-plugin-react from 7.25.1 to 7.26.0 (#986) (947ae6d)
  • regexp: bump eslint-plugin-regexp from 1.1.0 to 1.3.1 (#985) (f7bea29)

14.2.0 (2021-09-13)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.30.0 to 4.31.0 (#976) (f796e3b)

14.1.0 (2021-09-02)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.28.5 to 4.30.0 (#967) (4e66049)
  • deps: bump eslint-plugin-import from 2.23.4 to 2.24.2 (#966) (2f3c438)
  • deps: bump eslint-plugin-react from 7.24.0 to 7.25.1 (#964) (77dea45)
  • regexp: add eslint-plugin-regexp (#974) (c0163a7)

14.0.1 (2021-05-21)

Bug Fixes

  • node: disable node/no-extraneous-import (#938) (28629e3)

14.0.0 (2021-05-21)

⚠ BREAKING CHANGES

  • node: This package now targets ESM, not CommonJS. Also, it requires Node.js 12.20.0+.

Features

  • deps: bump peer eslint version >=7.26.0 (#933) (fb2b1a7)
  • deps: bump peer typescript-eslint version >=4.24.0 (#930) (2a78d84)
  • import: disable import/prefer-default-export (#935) (3c3c857)
  • node: enable rules for ESM (#937) (ea69c7c)

Bug Fixes

  • deps: bump eslint-plugin-import from 2.22.1 to 2.23.2 (#932) (42f9b80)
  • import: better sorting imports (#934) (ac3f10a)
  • import: set ignorePackages to import/extensions (#936) (119bde8)

13.2.0 (2021-04-12)

Features

  • typescript: add @typescript-eslint/no-unsafe-argument rule (#919) (a5f1f04)

13.1.0 (2021-04-01)

Features

  • deps: bump eslint-plugin-react from 7.22.0 to 7.23.1 (#906) (18c802c)
  • deps: require eslint 7.23.0+ (#910) (e6cedbb)

Bug Fixes

  • deps: require @typescript-eslint/eslint-plugin 4.20.0+ (#909) (1050471)

13.0.0 (2021-03-10)

⚠ BREAKING CHANGES

  • Node 12+ required now

Features

12.7.0 (2021-01-11)

Features

  • deps: bump eslint-plugin-react from 7.21.5 to 7.22.0 (#852) (3373f00)

Bug Fixes

  • deps: bump @typescript-eslint/eslint-plugin from 4.10.0 to 4.12.0 (#855) (2670afe)

12.6.0 (2020-12-21)

Features

  • core: loosen arrow-body-style (error -> warn) (#844) (fbb98ed)
  • deps: bump @typescript-eslint/eslint-plugin from 4.9.1 to 4.10.0 (#842) (0810cb0)

12.5.0 (2020-12-10)

Features

  • deps: bump eslint from 7.14.0 to 7.15.0 (#833) (40573e3)
  • deps: bump eslint-config-prettier from 6.15.0 to 7.0.0 (#834) (658a425)

12.4.0 (2020-11-30)

Features

  • deps: bump eslint from 7.13.0 to 7.14.0 (#826) (67dab6b)

12.3.0 (2020-11-17)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.6.1 to 4.8.1 (#823) (39642dc)

12.2.0 (2020-11-05)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.5.0 to 4.6.1 (#812) (dd4a284)

12.1.0 (2020-10-07)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.2.0 to 4.4.0 (#782) (908bc4a)
  • import: use core rule instead of plugin rule (#786) (0d6546d)

12.0.0 (2020-09-27)

⚠ BREAKING CHANGES

Features

  • deps: bump @typescript-eslint/eslint-plugin from 4.1.1 to 4.2.0 (#766) (0062ff7)
  • prettier: remove eslint-plugin-prettier (#772) (d5386cc)

11.2.1 (2020-09-08)

Bug Fixes

  • deps: bump the minimum version of eslint (#753) (6e6a83c)
  • typescript: turn off no-use-before-define explicitly (#752) (c70a2c2)

11.2.0 (2020-09-08)

Features

  • typescript: bump typescript-eslint from 3.9.0 to 4.1.0 (#751) (461dd34)

11.1.0 (2020-08-08)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 3.7.1 to 3.8.0 (#721) (2991615)

Bug Fixes

  • deps: bump eslint from 7.4.0 to 7.5.0 (remove id-blacklist) (#706) (5acd469)

11.0.0 (2020-07-14)

⚠ BREAKING CHANGES

  • deps: the minimum required peer dependencies are bumped.
  • core: The no-restricted-globals rule will warn fewer global variables.

Features

  • core: remove eslint-restricted-globals package (#694) (fd17971)
  • deps: bump @typescript-eslint/eslint-plugin from 2.31.0 to 2.33.0 (#655) (881e84f)
  • deps: bump eslint to v7 (#695) (cbf04f0)
  • node: disable all Node-specific rules (#645) (795de66)

Bug Fixes

  • import: fix invalid usage of plugin:import/{react,typescript} (#680) (40e7667)
  • node: remove core Node.js rules (#678) (920e80b)
  • prettier: remove prettier from peer-deps (#686) (f35e155)
  • typescript: remove typescript from peer-deps (#685) (6214d93)

10.11.0 (2020-05-07)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.28.0 to 2.31.0 (#639) (849c773)
  • deps: bump eslint-plugin-react-hooks from 3.0.0 to 4.0.0 (#637) (f99ce2c)
  • typescript: enable rules requiring type info (#640) (ae57e07)

10.10.1 (2020-04-14)

Bug Fixes

  • deps: allow prettier v2 (#625) (f8ac8cf)
  • deps: bump @typescript-eslint/eslint-plugin from 2.27.0 to 2.28.0 (#621) (ca39733)

10.10.0 (2020-04-13)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.26.0 to 2.27.0 (#615) (ca10615)
  • deps: bump eslint-plugin-node from 11.0.0 to 11.1.0 (#610) (41cea9a)
  • deps: bump eslint-plugin-react-hooks from 2.5.1 to 3.0.0 (#609) (907a0ca)

10.9.1 (2020-03-24)

Bug Fixes

  • deps: bump @typescript-eslint/eslint-plugin from 2.22.0 to 2.23.0 (#601) (e1b0f23)
  • deps: bump @typescript-eslint/eslint-plugin from 2.24.0 to 2.25.0 (#608) (595e2a7)

10.9.0 (2020-03-03)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.21.0 to 2.22.0 (#596) (64d7437)

10.8.0 (2020-02-07)

Features

10.7.0 (2020-01-28)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.17.0 to 2.18.0 (#572) (6e8da47)

10.6.0 (2020-01-22)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.16.0 to 2.17.0 (#563) (7f275ab)

10.5.0 (2020-01-17)

Features

  • core: set argsIgnorePattern to no-unused-vars (#559) (f267d07)
  • deps: bump @typescript-eslint/eslint-plugin from 2.13.0 to 2.15.0 (#552) (2d931a4)
  • deps: bump @typescript-eslint/eslint-plugin from 2.15.0 to… (#557) (c4e8454)
  • deps: bump eslint-plugin-node from 10.0.0 to 11.0.0 (#547) (343a293)
  • deps: bump eslint-plugin-react from 7.17.0 to 7.18.0 (#560) (bf37bed)

10.4.0 (2019-12-26)

Features

10.3.0 (2019-11-26)

Features

  • deps: bump @typescript-eslint/eslint-plugin to 2.9.0 (#521) (5f7e583)
  • deps: bump eslint from 6.6.0 to 6.7.0 (#516) (562d99b)
  • deps: introduce peerDependenciesMeta (#517) (9807bae)
  • remove deprecated rules (#522) (7b9cc9d)

10.2.0 (2019-11-20)

Features

  • deps: bump @typescript-eslint/eslint-plugin from 2.7.0 to 2.8.0 (#513) (c94496c)

10.1.0 (2019-11-12)

Features

  • typescript: add no-unused-expressions rule (#507) (b087b21)

10.0.0 (2019-10-18)

⚠ BREAKING CHANGES

  • deps: requires ESLint minimum version 6.4.0

Features

  • deps: bump eslint from 6.3.0 to 6.4.0 (#466) (38b1d68)
  • deps: bump eslint-plugin-react from 7.14.3 to 7.15.1 (#479) (1f18537)

9.0.0 (2019-09-13)

⚠ BREAKING CHANGES

  • import: The special support for .json and .mjs has been dropped.

Features

  • core: disable no-undefined (#457) (d25cd2c)
  • core: loosen rule func-style (#456) (2c15911)
  • core: loosen rule prefer-destructuring (#455) (b6b060f)
  • import: support TypeScript files (#459) (9268f4c)
  • typescript: change settings of explicit-function-return-type (#458) (1a56123)

8.2.0 (2019-09-09)

Features

  • deps: bump eslint-plugin-node from 9.2.0 to 10.0.0 (#450) (42c3975)

8.1.0 (2019-08-22)

Features

  • deps: bump eslint-plugin-react-hooks from 1.7.0 to 2.0.1 (#439) (019ac25)

8.0.0 (2019-08-20)

Bug Fixes

  • react: add missing .tsx extension for JSX (#363) (3ba9ae9)

Features

  • deps: bump eslint-plugin-compat from 2.7.0 to 3.0.1 (#365) (6aaf415)
  • deps: bump eslint-plugin-import from 2.16.0 to 2.17.2 (#382) (9db61e3)
  • deps: bump eslint-plugin-node from 8.0.1 to 9.0.1 (#385) (5bd7ca9)
  • deps: bump eslint-plugin-react from 7.12.4 to 7.13.0 (#386) (daf4633)
  • deps: bump prettier from 1.16.4 to 1.17.0 (#379) (7fa5f86)
  • deps: update to ESLint 6 (#434) (f70e045)
  • react: add eslint-plugin-react-hooks (#407) (ad0fc25)
  • react: disable too strict jsx-no-literals rule (#364) (fd38ce8)
  • typescript: list all TypeScript rules (#435) (3246efc)
  • typescript: update @typescript-eslint/eslint-plugin to v2 (#431) (642be88)

Tests

BREAKING CHANGES

  • deps: requires ESLint minimum version 6.2.0
  • deps: require minimum Node version >=10

7.3.0 (2019-03-10)

Features

  • deps: update dependency eslint to v5.15.1 (#361) (b0a1fde)
  • react: disable jsx-boolean-value rule (#362) (144d554)

7.2.0 (2019-02-04)

Bug Fixes

  • deps: update dependency eslint-config-prettier to v4 (#321) (519f887)
  • deps: update peer-deps versions (#336) (4b9e5b2)

Features

7.1.0 (2019-01-06)

Features

7.0.0 (2018-12-25)

Bug Fixes

  • deps: update dependency eslint-plugin-node to v8 (#293) (7e0a561)
  • deps: update dependency eslint-restricted-globals to ^0.2.0 (#295) (78ca5a0)

Features

  • deps: update ESLint to v5.11.0 and add a rule no-useless-catch (#312) (5966724)

BREAKING CHANGES

  • deps: requires ESLint minimum version 5.11.0

6.2.0 (2018-10-01)

Bug Fixes

  • deps: update dependency eslint-config-prettier to v3 (#268) (e7c0615)
  • deps: update dependency eslint-plugin-prettier to v3 (#284) (18eac49)

Features

6.1.0 (2018-08-07)

Features

  • add new rules since ESLint 5.3.0 (#261) (f6ad84f)
  • more restrict versions of peerDependencies (#262) (128abbb)

6.0.0 (2018-07-17)

Features

  • deps: update dependency eslint-plugin-node to v7 (#253) (f9148a8)

BREAKING CHANGES

  • deps: update to eslint@5 as peer dependency, and update ecmaVersion to 2019

5.1.0 (2018-06-26)

Bug Fixes

  • deps: update dependency eslint-plugin-eslint-comments to v3 (#233) (af75000)

Features

  • deps: update dependency eslint to v5 (#232) (7b49eac)

5.0.1 (2018-06-17)

Bug Fixes

  • node: set ecmaVersion: 2018 forcibly (#230) (8ee3e8e)

5.0.0 (2018-06-17)

Features

BREAKING CHANGES

  • Re-arrange all rules without Airbnb's settings
  • Now minimum support version is Node 8

4.2.2 (2018-02-08)

Bug Fixes

  • deps: update dependency eslint-plugin-node to ^6.0.0 (#157) (704ac4c)

4.2.1 (2017-12-19)

Bug Fixes

  • change trailingComma to es5 following minimum Node version (#137) (bf85cba)

4.2.0 (2017-12-19)

Features

  • new option ybiquitous/node for Node.js environment (#136) (d929f5c)

4.1.0 (2017-12-18)

Features

  • more rough versions of peer dependencies (#133) (a804aa7)

4.0.0 (2017-12-05)

Features

  • integrate with Prettier (#125) (54bd8e8)
  • use plugin:eslint-comments/recommended configuration (#126) (1ea089a)

BREAKING CHANGES

  • Although keeping the lint rules as far as possible, this integration may change your code style a lot. And installing prettier (peer dependency) becomes necessary.

3.0.1 (2017-10-30)

Bug Fixes

  • package: update eslint-plugin-comments to ^2.0.1 (#110) (7ecb73c)

3.0.0 (2017-10-07)

Features

  • package: update eslint-config-airbnb to ^16.0.0 (#97) (807c843)
  • package: update eslint-plugin-compat from ^1.0.2 to ^2.0.1 (#95) (4b24c63)

BREAKING CHANGES

  • package: major update of eslint-config-airbnb

2.1.0 (2017-09-24)

Features

  • delete verbose message on install (5faa7a3)

2.0.2 (2017-08-20)

2.0.1 (2017-07-28)

2.0.0 (2017-07-28)

Features

BREAKING CHANGES

  • ESLint v4 may not support older plugins

1.6.0 (2017-07-13)

Features

  • new entry point ybiquitous/base (a782676)

1.5.2 (2017-07-12)

Bug Fixes

  • glob pattern according to lint-staged README (3059355)

1.5.1 (2017-06-25)

Bug Fixes

  • disable eslint-comments/no-use rule (unintentionally enabled) (9cd10c8)

1.5.0 (2017-06-25)

Features

  • add eslint-plugin-eslint-comments (7bd4768)

1.4.4 (2017-06-15)

  • Introduce standard-version

1.4.3 (2017-06-12)

  • Improve postinstall message
  • Improve README

1.4.2 (2017-06-12)

  • Restrict to ESLint v3 (ESLint v4 is not yet supported)

1.4.1 (2017-06-10)

  • Support Node.js v8

1.4.0 (2017-05-15)

  • Upgrade eslint-config-airbnb to version 15.0.0

1.3.0 (2017-05-05)

  • New ESLint plugin: eslint-plugin-compat

  • Update postinstall example: pre-commit => husky

1.2.0 (2017-02-26)

  • Update eslint-plugin-jsx-a11y to version 4.0.0

1.1.0 (2017-01-12)

  • Update eslint-config-airbnb to version 14.0.0

  • Add CHANGELOG