Javascript: eslint v6 support

Created on 11 May 2019  路  11Comments  路  Source: airbnb/javascript

Just like #1834 and #1447, I'm filing this in advance.

eslint v6 alpha has been released.

The current plan is to release a new semver-major of both configs, that supports 3 || 4 || 5 || 6, and the next major after that will drop support for 3 || 4, and only support 5 || 6.

The timeframe for eslint v6 support is "probably not as soon as you would like, but as soon as we can".
Please accept this, and please add no noise to this thread beyond emoji reactions - distractions won't help anyone get the work done any faster.

Please do not file additional issues and do not file pull requests attempting to add support - please, instead, continue to use eslint v5 until such time as our configs support v6.

Peer Dep eslint combined v5 and v6 support released:

  • [x] [eslint-plugin-import](https://github.com/benmosher/eslint-plugin-import/issues/1362)

    • [x] [PR](https://github.com/benmosher/eslint-plugin-import/pull/1393)

    • [x] [Release](https://github.com/benmosher/eslint-plugin-import/pull/1394)

  • [x] [eslint-find-rules](https://github.com/sarbbottam/eslint-find-rules/issues/304)

    • [x] PR

    • [x] Release

  • [x] merge in all pending breaking changes
  • [x] update the base config
  • [x] publish the base config, semver-major
  • [x] eslint-plugin-react

    • [x] PR

    • [x] [Release](https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.14.0)

  • [x] eslint-plugin-jsx-a11y

    • [x] [PR](https://github.com/evcohen/eslint-plugin-jsx-a11y/pull/603) (blocked on import plugin)

    • [x] Release

  • [x] update the main config
  • [x] publish the main config, semver-major

Most helpful comment

https://twitter.com/ljharb/status/1160221334502121472?s=21

Both configs have now been released.

All 11 comments

eslint v6 is now released.

If you鈥檇 like to see our config support it, please submit PRs to the peer dependencies and tools listed above.

WIP PR for eslint-plugin-import(waiting for third party release) - https://github.com/benmosher/eslint-plugin-import/pull/1393

eslint-plugin-react now supports ESLint v6 in https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.14.0

eslint-plugin-jsx-a11y is now updated to support ESLint 6 - just for info :)

The current peerDependency ^4.19.1 || ^5.3.0 of eslint fails every CI jobs of which the project uses eslint 6

@kaelzhang yes, that鈥檚 because it鈥檚 not yet compatible with eslint v6. Until it is, stick with v5.

@kaelzhang yes, that鈥檚 because it鈥檚 not yet compatible with eslint v6. Until it is, stick with v5.

@ljharb are there specific parts that aren't compatible? Best I can tell, most of the breaking changes were in changing the recommended rules, changing some defaults, or making config parsing stricter.

I'm testing the following setup, and other than the peerDependency warning, everything _seems_ to work (I wouldn't be surprised if something isn't working and I haven't noticed yet, though no lint rules are failing).

{
    "babel-eslint": "^10.0.2",
    "eslint": "^6.0.1",
    "eslint-config-airbnb": "^17.1.1",
    "eslint-plugin-import": "^2.18.0",
    "eslint-plugin-jsx-a11y": "^6.2.3",
    "eslint-plugin-mocha": "^5.3.0",
    "eslint-plugin-react": "^7.14.2",
    "eslint-plugin-react-hooks": "^1.6.1",
    "eslint-plugin-security": "^1.4.0",
}

@MatthewHerbst until npm ls exits successfully, your dependency graph is invalid - in other words, the peerDependency warning should be gating your CI and preventing the upgrade.

Curious about the status of this. Is this blocked on anything? Are the things people could help out with to move this along?

Yes, it is blocked by https://github.com/sarbbottam/eslint-find-rules/issues/304. Anyone can help it along by submitting a PR that adds eslint 6 support to that package without a breaking change.

https://twitter.com/ljharb/status/1160221334502121472?s=21

Both configs have now been released.

Was this page helpful?
0 / 5 - 0 ratings