Skip to content
This repository was archived by the owner on Oct 18, 2019. It is now read-only.

Releases: RNFDigital/eslint-config

v2.5.0

22 Feb 16:13
ea18449

Choose a tag to compare

Remove Pretter

v2.4.1

02 Jan 13:01
79f4886

Choose a tag to compare

Changed

  • react/jsx-sort-props now ignores case and just sorts props by starting letter.

v2.4.0

02 Jan 10:14

Choose a tag to compare

v2.4.0

sortedimports

Added

  • sort-imports-es6-autofix plugin that replaces the basic sort-imports and also allows the sort order of imports to be autofixed 🎉 . Note that we're now just using the default sorting order (none, all, multiple, single) which is different to before, but it'll all fix itself anyway.
  • New rules from updated packages: lines-between-class-members, jsdoc/require-param-name, jest/prefer-to-have-length, jest/prefer-to-be-null, jest/prefer-to-be-undefined, jsdoc/require-param-name. Some other rules have been added but switched off.

Changed

  • Updated eslint and other plugins.

Removed

  • Nothing outright, but the basic sort-imports from ESLint has been turned off.

v2.3.0

27 Oct 12:30

Choose a tag to compare

Changed

  • Update all peer dependencies
  • Make peer dependencies greater than

v2.2.0

05 Sep 15:27

Choose a tag to compare

Added

Removed

v2.1.0

07 Aug 13:54

Choose a tag to compare

Added

jsdoc/require-example - This forces you to have an @example when using a jsdoc.
jest/valid-expect - This forces expect() to be used correctly in tests.
react/no-will-update-set-state - This prevents the use of setState in componentWillUpdate to prevent an indeterminate state.

Modified

react/prop-types - Turned on reservedFirst option, requiring reserved keywords to appear before other props.

v2.0.1

05 May 10:16

Choose a tag to compare

Changed

  • Changed eslint-config-prettier to be a regular dependency
  • Turned off flowtype/require-parameter-type as we haven't reached a decision yet
  • Turned off react-native/no-color-literals as we don't think a single use colour needs to be extracted as a const

v2.0.0

03 May 15:46

Choose a tag to compare

Added

  • eslint-plugin-prettier
  • Added flowtype/no-types-missing-file-annotation

Changed

  • Removed all rules that conflict with the prettier plugin
  • Extended eslint.js from prettier config
  • Updated packages

v1.15.0

24 Apr 15:55

Choose a tag to compare

Added

  • no-compare-neg-zero
  • import/no-absolute-path
  • import/extensions
  • import/newline-after-import
  • import/no-named-default
  • promise/no-nesting
  • promise/no-promise-in-callback
  • promise/prefer-await-to-then
  • promise/prefer-await-to-callbacks
  • flowtype/no-primitive-constructor-types
  • flowtype/object-type-delimiter
  • jsdoc/check-tag-names
  • jsdoc/check-types
  • jsdoc/require-description-complete-sentence
  • jsdoc/require-param-description
  • jsdoc/require-parameter-type
  • jsdoc/require-returns-description
  • jsdoc/require-returns-type
  • react/forbid-foreign-prop-types
  • react/void-dom-elements-no-children
  • react-native/no-inline-styles
  • react-native/no-color-literals
  • other import rules but turned off to keep a record
  • other promise rules but turned off to keep a record
  • other flowtype rules but turned off to keep a record
  • other jsdoc rules but turned off to keep a record
  • other react rules but turned off to keep a record
  • other react-native rules but turned off to keep a record

Changed

  • import/no-extraneous-dependencies turned off (caused issues in Hydra)
  • promise/always-return turned off
  • flowtype/require-parameter-type turned on
  • flowtype/sort-keys turned off
  • react/no-unused-prop-types turned off
  • react/prefer-stateless-function turned off
  • react/prop-types turned off
  • react/require-optimization turned off
  • removed the deprecated flowtype/valid-syntax
  • updated multiple packages
  • added flow annotations where needed to support new rules

v1.11.0

02 Feb 16:09
4de1ceb

Choose a tag to compare

Added

  • comma-dangle
  • no-return-await
  • no-useless-return
  • prefer-promise-reject-errors
  • require-await
  • prefer-destructuring