Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Releases: strvcom/eslint-config-javascript

6.4.0

21 Jan 12:11
88d37ac
Compare
Choose a tag to compare

New rules

Rule changes

  • no-extra-parens: Now ignores multiline JSX components. If you had this rule disabled due to conflict with jsx/wrap-multilines, you can re-enable this rule now. (b17c5bc)
  • Move the following rules to coding-styles/fixable: (5491496)
    • no-else-return

6.3.0

09 Jan 13:31
8f28556
Compare
Choose a tag to compare

Rule Changes

  • Disable capitalized-comments (#15): 172ecc2
  • Disable line-comment-position (#15): c70ec26
  • Move the following rules to coding-styles/fixable: 678bede
    • no-unneeded-ternary
    • operator-linebreak

6.2.1

09 Jan 11:32
1e706f3
Compare
Choose a tag to compare

Changes

  • Adds support for .es file extensions when resolving module paths

6.2.0

12 Dec 12:08
74b1603
Compare
Choose a tag to compare

New rules

Changed rules

6.1.0

28 Nov 10:30
77fc440
Compare
Choose a tag to compare

New rulesets

New rules

Rule changes

  • func-names: Relaxed, now requires function names only when no name can be inferred automatically from the code
  • newline-after-var: Has been disabled. The rule was enabled due to variable hoisting for var statements - vars should be placed on top of the function and separating these statements from the rest of the code made it better readable. Now that we have let and const, it's generally better to declare them as needed, then use them right away. Therefore, this rule made such code harder to read.

6.0.1

10 Nov 19:54
abea846
Compare
Choose a tag to compare
  • Updates settings section for the import plugin

6.0.0

10 Nov 19:52
82dbcde
Compare
Choose a tag to compare

This release includes many epic improvements and changes. Actually it's so epic that everyone's current configuration will break spectacularly. 🎉

New configuration structure

Each platform now has only two configuration files:

  • vXX: A version-specific configuration file with recommended set of rules
  • optional: An optional configuration file with some extra rules not considered to have major impact if not followed

The best-practices rulesets have been removed. Many rules' levels have been lowered to warnings and moved into one of the above-mentioned rulesets. Some rules have been completely turned off.

Action needed:

  • Check out available rulesets in README for details on and update your .eslintrc.js files.

Fixable coding styles ruleset

There is a new coding style ruleset, @strv/javascript/coding-styles/fixable. This is ideal for converting existing codebase. You can include this in your configuration and have ESLint automatically fix all issues for you instead of rewriting your code manually.

Plugins are now included with this ruleset

In earlier versions you had to install some ESLint plugins to enable some rules. This is no longer necessary as the plugins are now included with this package.

Actions needed:

  • Remove eslint-plugin-import and eslint-plugin-react deps from your package.json files
  • Remove plugins section from your .eslintrc.js configuration files (unless you have other plugins installed)

eslint-plugin-import is newly incorporated

This plugin provides linting support for ES 2015 modules (but also CommonJS exports). There are simply too many rules to describe what it does, but in general it helps you with verifying that what you import/export is really what you expect etc.

Actions needed:

  • Verify any errors/issues reported by this plugin and report false positives here. Optionally you might need to provide some extra configuration to make the plugin work, depending on your current setup.

Trailing commas are now required

There has been a proposal (#12) to require trailing commas in many places. The proposal has been accepted. ESLint can autofix this rule to adopt the new coding style.

Actions needed:

  • Run node_modules/.bin/eslint --fix . in current project to adopt the new coding style

eslint-plugin-react rules completely revisited

Thanks to @dannytce, the React rules have been reviewed and updated to match best practices in the industry. See #11.

IDE/Editor integration guides 💪

We have some guides and tips for integrating ESLint in your favourite editors/IDEs. Check them out!

6.0.0-alpha.2

11 Oct 12:41
bfa1c08
Compare
Choose a tag to compare
6.0.0-alpha.2 Pre-release
Pre-release
  • EPIC: Many changes to react-related rules (#11) (thanks @dannytce)

6.0.0-alpha.1

11 Oct 12:40
5a073f6
Compare
Choose a tag to compare
6.0.0-alpha.1 Pre-release
Pre-release
  • EPIC: Includes rules from eslint-config-import
  • Now includes the eslint-plugin-react plugin as a dependency
  • No longer requires class methods to use this (this conflicts with React where you are required to implement a set of APIs that React prescribes)

5.3.0

05 Oct 14:20
18ff1d1
Compare
Choose a tag to compare
  • Require all Symbols to have a description
  • Require class methods to use this (otherwise suggest making them static)