This repository was archived by the owner on Oct 18, 2019. It is now read-only.
Releases: RNFDigital/eslint-config
Releases · RNFDigital/eslint-config
v2.5.0
v2.4.1
v2.4.0
v2.4.0
Added
sort-imports-es6-autofixplugin that replaces the basicsort-importsand 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
eslintand other plugins.
Removed
- Nothing outright, but the basic
sort-importsfrom ESLint has been turned off.
v2.3.0
Changed
- Update all peer dependencies
- Make peer dependencies greater than
v2.2.0
Added
- getter-return All getter function should have a return
- padding-line-between-statements This replaces three deprecated rules:
- for-direction We are not using for but if ever someone disable the rule that restrict this, it's good to have a rule that will avoid infinite loop
- no-buffer-constructor We are not using this also, but I think it's a nice rule to have to avoid using deprecated
new Buffersyntax that may lead to security vulnerabilities if not use properly.
Removed
- lines-around-directive Deprecated
- newline-after-var Deprecated
- newline-before-return Deprecated
- capitalized-comments This is something I added before but now that it's being used I don't see any benefit from it. I want to remove this because it's is sometimes frustrating when debugging with this rule and auto fix on. When we comment some codes to debug this will capitalize start of the codes and have to be reverted when uncommenting. If you benefit from this rule, comment below.
- class-methods-use-this does not work well with our new way of creating react components
- id-blacklist hurts more that in helps - @Draydrew (#24 (review))
v2.1.0
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
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
v1.15.0
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
Added
- comma-dangle
- no-return-await
- no-useless-return
- prefer-promise-reject-errors
- require-await
- prefer-destructuring
