Skip to content

Version 0.4.0

Choose a tag to compare

@jaydenseric jaydenseric released this 27 Jun 07:23
· 201 commits to master since this release

Minor

  • Throw an error if the eslint peer dependency is not a project dev dependency.
  • New browser project setup:
  • Support Next.js projects:
    • parserOptions.sourceType is module, as Next.js only supports ESM in .js files. Once Next.js updates to webpack >= 4 this will be reverted and .mjs should be used for ESM source files instead.
    • Disabled the react/react-in-jsx-scope rule, as Next.js uses babel-plugin-react-require.
  • Rules preferring modern ES syntax only apply if the syntax is supported:
    • For Babel projects, support is assumed.
    • For non-Babel browser projects, no support is assumed.
    • For non-Babel Node.js projects, support for each syntax is determined against the package.json engines.node field (now documented as required for all projects).

Patch