Skip to content

Latest commit

 

History

History
935 lines (560 loc) · 54.3 KB

CHANGELOG.md

File metadata and controls

935 lines (560 loc) · 54.3 KB

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

15 February 2022

11 August 2021

10 March 2021

  • Bump eslint-config-wix-editor from 8.1.0 to 8.4.0 #293
  • fix unwrap rule #239
  • Make Lodash a full dependency #255
  • Bump eslint from 6.8.0 to 7.7.0 #262
  • Improve test coverage for matches-shorthand & matches-prop-shorthand. Fix incorrect iteratee & shorthand method data uncovered thereby. #220
  • bump all 7a231a3
  • bump all a42efc6
  • update change log 5f59bc0

12 April 2020

  • fix full lodash import trailing slash #195
  • s/ignorePatterns/ignoreObjects #223
  • docs: add collection-ordering to readme #224
  • fix: Autofix for paths with double member access #230
  • update change log 7a345b5
  • version 7 a2e3d69
  • changelog script de61c2b

12 April 2020

  • infra: upgrade all deps; drop Node 8 support #231
  • Bump babel-plugin-istanbul from 5.2.0 to 6.0.0 #228
  • Bump handlebars from 4.1.2 to 4.5.3 #226
  • Bump js-yaml from 3.12.0 to 3.13.1 #217
  • Bump handlebars from 4.0.10 to 4.1.2 #210
  • add auto-changelog 5f49833

28 October 2019

7 August 2019

7 August 2019

  • Fix typo #196
  • fix: Lodash security vulnerability #208
  • Remove redundant comma #197
  • update dependencies 1bef275
  • refactor in the "chaining" rule c8b0ff3
  • add publish scripts 1b99f81

5 December 2018

  • Make "useArray" enforcement in collection-ordering optional by default bae2b12

5 December 2018

  • Fix prop-shorthand breaking when using _.mixin ca1faf4

3 December 2018

  • Add rule collection-ordering (fixes #190) #190
  • update dependencies 5c2e8b4
  • Only support Node versions in LTS 7889a0a
  • Update CHANGELOG.md fe9b7e7

21 November 2018

  • Add mechanism for methods to support only some shorthands (fixes #189) #189
  • Prevent prefer-lodash-method error on chain() when imported as member import (fixes #186) #186
  • Make collection-return.md a little bit more consistent 2249b27

19 September 2018

  • add implicit option to chaining rule (fixes #184) #184

19 September 2018

  • add cases and fixer to path-style (fixes #185) #185
  • update dependencies and fix lint 2c3edb0
  • update travis to use node version 8 b2ac1af

17 March 2018

  • add rule prefer-find (fixes #175) #175
  • add rule prefer-immutable-method (fixes #154) #154

16 March 2018

  • Add correct example of using _.compact (fixes #165) #165
  • Remove .md from rulename used to build docs URL 27988cf
  • add lodash to recommended preset cce3b23

4 February 2018

  • make prefer-compact report on filter with identity (fixes #177) #177

31 January 2018

  • add ignoreMethods option for rule preferred-alias (fixes #171) #171
  • Use link to tagged version for rule docs 8e3f4dc
  • Remove duplicate fileoverview comments 969a658

22 January 2018

  • Docs: Fix identity-shorthand example (closes #164) #164
  • Add URL to rule documentation to the metadata 69e7386
  • Update prefer-flat-map.md c4016c6
  • Treat generator functions as returning a value for collection-return 19079ef

20 October 2017

  • add option to import from method packages in import-scope (fixes #163) #163
  • add support for single method package imports in LodashContext 3037b9f
  • instruct to be installed as devDependencies 2ed03fc
  • Fix typo in comment f18b383

20 August 2017

  • fix rule prefer-invoke-map to work with eslint >= 4.4.0 (fixes #156) #156
  • add yarn.lock file bb7018b
  • add eslint-plugin-eslint-plugin and fix code errors 4193340
  • Add LICENSE.md e76dc10

12 July 2017

  • add clean script before every babel (fixes #153) #153

19 June 2017

  • fix prefer-over-quantifier to only report on single-argument functions (fixes #152) #152

1 May 2017

  • fix prefer-lodash-method warning on unimplemented string methods 401d28a
  • remove method replace from lodash v3 data 71c1533

26 April 2017

  • update dependencies 7755466
  • reimplement rule callback-binding to use method data 97375de

27 March 2017

  • Add rule prefer-some (fixes #145) #145
  • change structure of method data (fixes #144) #144
  • add missing data for methods conformsTo, defaultTo 5333ff0
  • refactor method data test d3ba2cf
  • change Lodash dependency to minor version to prevent future breaking d512817

23 March 2017

  • add sortedUniq and sortedUniqBy as chainable methods (fixes #143) #143
  • clarify about using global Lodash in README.md 1e40715

15 March 2017

  • adding more string methods to prefer-lodash-method rule (fixes #136) #136

8 February 2017

  • Fix import-scope with lodash/fp (fixes #134) #134

29 January 2017

  • fix prefer-noop to stop reporting on async and generator functions (fixes #132) #132

25 January 2017

  • add missing shorthand functions to version 4 1c290d0

18 January 2017

  • allow async functions in collection-return (fixes #131) #131

17 January 2017

  • Fix import-scope to allow import with asterisk in full config (fixes #130) #130

16 January 2017

  • Add rule import-scope def5067
  • fix case in collection-method-value where commit is used after side effect method 38394d4

20 December 2016

  • remove no-unbound-this from the v3 config and add clarification in docs 5d62f9f

15 December 2016

  • make prefer-invoke-map only check object usages (fixes #128) #128

8 December 2016

  • fix matches-prop-shorthand warning when both sides are a member expression of the parameter (fixes #127) #127

1 December 2016

  • add support for Lodash-es (fixes #126) #126

30 November 2016

  • Simplify cached methods with _.memoize in methodDataUtil 1668d4e
  • Fix crash in chaining when mixing imported and single methods ccdae59
  • add travis CI build status badge 17127be

9 November 2016

  • add rule no-unbound-this (fixes #120) #120
  • improve performance for rules that use aliases 77ae185

8 November 2016

  • improve performance for shorthand rules 5eed1ec

27 October 2016

  • fix crash in prefer-over-quantifier (fixes #118) #118
  • fix preferred-alias case where method is on Object.prototype (fixes #117) #117
  • remove unnecessary code from preferred-alias ec9c452

22 October 2016

  • fix callback-binding not to warn on find methods (fixes #86) #86

22 October 2016

  • ignore Object.prototype methods when checking for Lodash imports (fixes #115) #115
  • upgrade eslint-traverser to correct 1.5.2 version (fixes #114) #114
  • report on callExp instead of method for cases of single method import (fixes #113) #113

20 October 2016

  • refactor prefer-over-quantifier to warn on identity shorthand in chains (fixes #111) #111
  • add more tests to LodashContext 5fbbc92
  • replace istanbul with nyc e92e4be
  • fix link to the chaining rule docmentation f378ed2

17 October 2016

  • change native includes to lodash/includes for earlier node versions (fixes #109) #109
  • refactor state out of lodashUtil and into rules with LodashContext class be41c04

15 October 2016

  • make hasOnlyOneStatement return falsy for nodes that aren't functions (fixes #108) #108

14 October 2016

  • fix crash in getImportedLodashMethod (fixes #107) #107
  • fix erratic test in astUtil d1788c1

13 October 2016

  • make prefer-lodash-method warn on string methods (fixes #99) #99
  • clarify docs for prefer-reject (fixes #105) #105
  • fix schema for prefer-lodash-method a3eb338
  • Fix README.md 1a819ec

13 October 2016

  • reimplement path-style rule (fixes #106) #106
  • fix isMemberExpOf to return false on computed values when allowComputed is false (fixes #91) #91
  • make prefer-map stop reporting if the push is from a declared parameter (fixes #92) #92
  • redefine prefer-chain and no-single-chain into a single chaining rule (fixes #82) #82
  • make rules work for single method imports and requires (fixes #80) #80
  • fix prefer-lodash-typecheck to warn on undefined checks of declared variables (fixes #21) #21
  • update rules to new rule format (requires eslint >= 2.10) ef228f0
  • separate methodDataByVersion to different files per version 4e7cc69
  • add unit tests and fix bugs and signatures in astUtil 7ff56de

5 September 2016

  • make prefer-lodash-method not warn on Object.create for null (fixes #94) #94

4 September 2016

  • update prefer-lodash-method docs (fixes #98) #98
  • improve implementation of unwrap rule to not be recursive 95be25a
  • Fix lint issue in prefer-invoke-map 7c56cca

27 July 2016

  • make prefer-invoke-map only warn on functions with a named first argument (fixes #93) #93
  • add comment about lodash performance in preference over native (fixes #90) #90
  • Elaborate in CONTRIBUTING.md b3228e1

20 July 2016

  • add docs and option schema for the ignorePatterns option of #88
  • Allow ignoring object names via regex pattern 1c01a5f

5 July 2016

  • add eslint peer dependency #85

5 July 2016

  • fix arg count for lodash 4 find, findIndex, findLast, findLastIndex (fixes #86) #86
  • fix typos in readme e63ef25

2 June 2016

  • fix typo in stubFalse argument count 7efc67c

30 May 2016

  • sort methodDataByVersion for version 4 6d226d6
  • update methodDataByVersion up to v4.13.x 565bad6
  • upgrade dependencies 0e10141

19 May 2016

  • create rule consistent-compose (fixes #79) #79
  • use destructuring when requiring util files in rules 1b8db15
  • change travis.yml to only run node 6 c8ddd33
  • fix docs issue in identity-shorthand rule 893b6ad

17 May 2016

  • change prefer-matches error message to suggest _.isMatch (fixes #77) #77
  • fix prefer-lodash-method to accept complex objects to ignoreObjects parameter (fixes #78) #78
  • update devDependencies a502f53

5 May 2016

  • fix sortedIndex methods in iteratee data for v4 (fixes bug comment in #64) 4a04eed

1 May 2016

  • fix collection-return to stop handling blockless arrow functions (fixes #75) #75

28 April 2016

27 April 2016

  • make prefer-times check all levels in the call stack (fixes #73) #73
  • make tests assume ecmaVersion 6 d767bf3

24 April 2016

  • fix and improve prefer-flat-map docs #72
  • add option to prefer-constant to handle function declarations (fixes #70) #70
  • temporarily remove travis badge until it can be added correctly 565b679
  • add devDependencies badge 76b8492
  • add caret to lodash version 9053a30

21 April 2016

  • add option ignoreObjects to rule prefer-lodash-method (fixes #68) #68
  • fix getLodashMethodVisitor false positive when called by function with lodash method name (fixes #69) #69

19 April 2016

  • fix prefer-noop to not warn if the empty function is a method definition (fixes #66) #66

18 April 2016

  • remove number of arguments from _.attempt (fixes #65) #65

18 April 2016

  • remove zipWith from list of methods with fixed-index iteratee (fixes #64) #64

18 April 2016

  • remove slice from list of native collection method calls as it behaves differently with strings (fixes #63) #63
  • add _.negate as a negative condition in prefer-reject (fixes #62) #62
  • fix typo in path-style docs e6887f8

11 April 2016

  • change recommended config of path-style to string (fixes #58) #58
  • change default config of path-style to string and fix docs (fixes #60) #60

10 April 2016

  • update deps and make lodash requirement with caret a2568a9
  • add castArray to chainable methods 4359077

7 April 2016

  • Add slice to the list of native collection methods a68c606

6 April 2016

  • add onlyLiterals option to prefer-matches and prefer-matches-prop #48
  • Alphabetize properties in README.md 19f31b9
  • remove unnecessary semicolons fe379f2

3 April 2016

  • fix error where collection-method-value reports on mutating method remove 05bff20

3 April 2016

  • add rule collection-method-value (fixes #54) #54
  • remove unnecessary semicolon e28a86e

3 April 2016

  • add missed cases to prefer-includes (fixes #53) #53
  • fix eslint error ab78312

29 March 2016

  • Sync chainable in v4 with lodash master. Fixes #49 #52
  • change isLodashWrapper to handle explicit chaining (fixes #50) #50
  • Merge pull request #52 from lukeapage/bugfix-49 #49
  • Add methods from 4.6.0. Fixes #51 #51
  • Sync chainable in v4 with lodash master. Fixes #49 #49
  • add lib folder to .eslintignore a419e7e

28 March 2016

  • fix error crashing eslint 19b27dd

28 March 2016

  • Fix the property shorthand for lodash v4 #47
  • add rule prefer-includes (fixes #46) #46
  • change config to wix-editor/node and fix errors 8a5b2b3
  • use babel in prepublish caba19b
  • Fix errors in README fbf2e2e

20 March 2016

  • SortedLastIndexBy has an iterator on the 2nd arg #44

13 March 2016

  • close #42 removes quote in lodash/recommended #43
  • Merge pull request #43 from godu/master #42
  • update dependencies to latest version a975cfe
  • fix travis to only run tests in node 4 and 5. 87496dc
  • removes quote in lodash/recommended 25499be

13 March 2016

  • add recommended and v3 rule configs (fixes #40) #40
  • update changelog 476d299
  • enable es6 in tests 8c910c8
  • rename .eslintrc to .eslintrc.json 45e78af

10 March 2016

  • add option for exceptions in prefer-lodash-method (fixes #38) #38
  • fix false positive for prefer-lodash-chain where callback uses lodash (fixes #37) #37
  • docs(readme): fix rules info f896337
  • remove coverage badge 262c942

2 March 2016

  • fix error where forEach, forIn, forOwn and right conterparts were considered chainable in v4 92e4b47

25 February 2016

  • update dependencies and fix rules for eslint 2 5054431
  • refactor astUtil to use lodash methods for function definitions 2852ede
  • refactor prefer-is-nil 00e35b0

24 February 2016

  • refactor shorthand methods and report for explicit calls to _.matches, _.property, and _.matchesProperty e42d364
  • add matchesProperty method to path-style 24d2ba6

22 February 2016

  • fix prefer-times when using destructuring (fixes #32) #32

21 February 2016

  • Add rule identity-shorthand e1e5ee3
  • add case when identity function is explicit _.identity 5cb384c
  • add fixer for preferred-alias (#25) 0ea186e

18 February 2016

  • add rule no-extra-args (fixes #26) #26
  • add rule path-style 7166adc
  • fix docs to remove references to lodash3 15a70da
  • fix docs for path-style.md aa36819

7 February 2016

  • fix bug in prefer-map where _ isn't lodash 8892139

4 February 2016

  • fix bug in prefer-filter where _ isn't lodash (fixes #23) #23
  • update CHANGELOG for v1.0.3 fb5a037

31 January 2016

  • refactor ecmaFeature flag to settingsUtil to support both ESLint v1 and v2 (fixes #22) #22

26 January 2016

  • make all lodash call/chain rules only have iteratee if it exists b3bd896

26 January 2016

  • Fix examples in prop-shorthand.md (fixes #16) #16
  • fix error in callback-binding in methods without callbacks c985ba9
  • Reset travis url to eslint-plugin-lodash3 58df2d2
  • fix error in isEqEqEq which caused matches-shorthand rule to crash 599e8e7

26 January 2016

  • add support for settings object with pragma (fixes #1) #1
  • make rules dependant on major version and refactor settings to return whole settings object 6f3e204
  • update README.md 2dd1eda
  • rename rule no-unnecessary-bind to callback-binding with explanation about shared settings a107ad5

19 January 2016

  • Output correct column number for matches-shorthand #19
  • performance: replace optimistic getLodashIteratee with pessimistic getLodashMethodVisitor 6a2015f
  • performance: replace optimistic isLodashWrapper with running from start of chain 9bca10c
  • performance: replace optimistic isEndOfChain with running from start of chain 9abe03e

17 January 2016

  • Output correct column number for prop-shorthand 05a28e3
  • make getLodashIteratee only get called once in 'always' of prop-shorthand 2f7f49c
  • fix README.md 5c48975

29 December 2015

  • fix collection-return bug with arrow functions 212b7f2

27 December 2015

  • change shorthand rules to have option 'always' or 'never' (breaking) d47e946
  • add rule chain-style 59a3b25
  • add rule prefer-constant 90c79d5

23 December 2015

  • implement rule prefer-startswith (fixes #11) #11
  • Suggest to replace indexOf(..., '') === 0 with _.startsWith. Fixes #11 #11
  • remove indexOf and lastIndexOf from list of native method, discovered in #11 fedd20b

6 December 2015

  • add toErrorObject test util b576cb6
  • add _.isUndefined to prefer-lodash-typecheck when not an identifier e97be90
  • align test files 99cf38c

25 November 2015

  • Being consistent with other rule declarations that include default va… #7
  • add static methods and ES6 collection methods to prefer-lodash-method 7bcd3f2
  • Update README.md 672f4bc
  • Being consistent with other rule declarations that include default value. 43c3c0d

23 November 2015

  • add rule prefer-lodash-chain 0f38bcd
  • fix bug in prefer-times where it works on native-map dec6a1f
  • Update README.md b064156

19 November 2015

  • missings commas in rules example in readme #6
  • add matches-shorthand rule and add functions to matches-prop-shorthand 3c30cad
  • support long property paths and conjunctions in prefer-filter, prefer-reject and prop-shorthand 33ee58f
  • Update Readme.md 88c5d61

10 November 2015

  • change eslint config to extend wix-editor and fix errors 3cb2997
  • add rule collection-return 8c878e4
  • add rule prefer-times 976a1d6

9 November 2015

  • fix prefer-get to only work with memberExp or rightmost EqEqEq 0e858f4
  • ignore intellij files d5a3816

28 October 2015

  • exclude typeof === undefined from prefer-lodash-typecheck (fix #5) #5
  • remove schema b77c4ed

11 October 2015

  • fix false positives of complex comparison and computed properties 3a0878e

8 October 2015

  • prevent prefer-get from warning on computed expressions with variables 2c2ea5c

8 October 2015

  • change valid test cases to short syntax 0d2090c
  • add rule prefer-get ffbe336

16 September 2015

  • add rule no-commit 92d57f1
  • fix unwrap to not fail when using _.prototype.commit() ff1ee24

9 September 2015

  • add prefer-lodash-method and prefer-lodash-typecheck (implements #3) 70ded69
  • refactor parts of prefer-wrapper-method into lodashUtil and aliases a91efe1
  • refactor is*EaEqToParamMember 8107254

7 September 2015

6 September 2015

  • make sure prefer-map is only triggered when callee has only one statement 4bc175c
  • consistently name prefer-wrapper-method rule cbd78a8
  • fix bug where non-lodash value() method triggers rule e6e6280

6 September 2015

  • fix index.js to use __dirname a6ffdaa

6 September 2015

  • Fix typo in readme. #2
  • add new rules prefer-invoke, prefer-map, prefer-wrapper-methods 7ba1279
  • add support for arrow functions 245bcff
  • add rule prefer-thru 825f253

24 August 2015

  • add rule prefer-compact 826ba68
  • fix prefer-filter to only report when the condition is shorthandable ea14068
  • refactor with methods in astUtil 919cb2d

24 August 2015

  • fix error where prefer-filter reports on if/else 5a0c2c0

23 August 2015

  • fix error where callee doesn't have an object 6f66695

23 August 2015

19 August 2015

  • fix runtime error in prefer-chain 84b266e

19 August 2015

v0.0.0

16 August 2015