Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
4157 lines (3512 sloc) 224 KB

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. This change log adheres to standards from Keep a CHANGELOG.

Unreleased

Added

Fixed

Changed

7.32.2 - 2023.01.28

Fixed

7.32.1 - 2023.01.16

Fixed

  • prevent circular dependency in index and "all" config (#3519 @ljharb)
  • destructuring-assignment: do not force destructuring of optionally chained properties (#3520 @ljharb)

7.32.0 - 2023.01.10

Added

Fixed

Changed

  • [Docs] jsx-no-leaked-render: Remove mentions of empty strings for React 18 (#3468 @karlhorky)
  • [Docs] update eslint-doc-generator to v1.0.0 (#3499 @bmish)
  • [meta] add issue template (#3483 @ROSSROSALES)
  • [Docs] Use emoji for jsx-runtime config and config file for eslint-doc-generator (#3504 @bmish)
  • [Docs] prefer-exact-props: fix example flow syntax (#3510 @smackfu)
  • [Perf] use anyOf instead of oneOf (@ljharb @remcohaszing)

7.31.11 - 2022.11.17

Fixed

Changed

  • [Perf] component detection: improve performance by avoiding traversing parents unnecessarily (#3459 @golopot)
  • [Docs] forbid-component-props: inclusive language w/ allowlist (#3473 @AndersDJohnson)
  • [Docs] automate doc generation with eslint-doc-generator (#3469 @bmish)

7.31.10 - 2022.10.10

Fixed

7.31.9 - 2022.10.09

Fixed

Changed

7.31.8 - 2022.09.08

Fixed

Changed

  • [meta] npmignore markdownlint config (#3413 @jorrit)

7.31.7 - 2022.09.05

Fixed

7.31.6 - 2022.09.04

Fixed

Changed

  • [Docs] no-unknown-property: add a mention about using ignores properties with libraries that add props (#3390 @sjarva)

7.31.5 - 2022.09.03

Fixed

7.31.4 - 2022.09.03

Fixed

7.31.3 - 2022.09.02

Fixed

7.31.2 - 2022.09.02

Fixed

Changed

7.31.1 - 2022.08.26

Fixed

7.31.0 - 2022.08.24

Added

Fixed

Changed

7.30.1 - 2022.06.23

Fixed

Changed

7.30.0 - 2022.05.18

Added

Fixed

Changed

  • [readme] remove global usage and eslint version from readme (#3254 @aladdin-add)
  • [Refactor] fix linter errors (#3261 @golopot)
  • [Docs] no-unused-prop-types: fix syntax errors (#3259 @mrdulin)
  • [Refactor] improve performance for detecting function components (#3265 @golopot)
  • [Refactor] improve performance for detecting class components (#3267 @golopot)
  • [Refactor] no-deprecated: improve performance (#3271 @golopot)
  • [Refactor] no-did-mount-set-state, no-did-update-set-state, no-will-update-set-state: improve performance (#3272 @golopot)
  • [Refactor] improve performance by avoiding unnecessary Components.detect (#3273 @golopot)
  • [Refactor] add isParenthesized AST util (#3203 @Belco90)
  • [Docs] default-props-match-prop-types, require-default-props, sort-prop-types: fix typos (#3279 @nix6839)
  • [Refactor] improve performance of rule merging (#3281 @golopot)
  • [Refactor] improve performance of component detection (#3276 @golopot)

7.29.4 - 2022.03.13

Fixed

7.29.3 - 2022.03.03

Fixed

7.29.2 - 2022.02.25

Fixed

7.29.1 - 2022.02.25

Fixed

  • jsx-key: prevent false "missing array key" warning (#3215 @ljharb)
  • jsx-indent: avoid checking returns sans jsx (#3218 @ljharb)
  • jsx-key: avoid a crash (#3220 @ljharb)
  • version settings: avoid a crash with an invalid version (#3219 @ljharb)

7.29.0 - 2022.02.24

Added

Fixed

Changed

7.28.0 - 2021.12.22

Added

Fixed

Changed

7.27.1 - 2021.11.18

Fixed

Changed

  • [readme] fix syntax typo (#3141 @moselhy)

7.27.0 - 2021.11.09

Added

Fixed

Changed

7.26.1 - 2021.09.29

Fixed

Changed

7.26.0 - 2021.09.20

Added

Fixed

Changed

7.25.3 - 2021.09.19

Fixed

  • prop-types, propTypes: bail out unknown generic types inside func params (#3076 @vedadeepta)

Changed

  • [readme] Update broken link for configuration files (#3071 @prateek3255)
  • [Refactor] create/extract isCreateElement and isDestructuredFromPragmaImport utils (@ljharb)

7.25.2 - 2021.09.16

Fixed

  • [jsx-no-useless-fragments]: Handle insignificant whitespace correctly when allowExpressions is true (#3061 @benj-dobs)
  • prop-types, propTypes: handle implicit children prop in react's generic types (#3064 @vedadeepta)
  • display-name: fix arrow function returning result of function call with JSX arguments being interpreted as component (#3065 @danielfinke)
  • jsx-no-target-blank: avoid crash on attr-only href (#3066 @ljharb @gaz77a)
  • jsx-uses-vars: ignore lowercase tag names (#3070 @alanorozco)

7.25.1 - 2021.08.29

Fixed

7.25.0 - 2021.08.27

Added

Fixed

Changed

7.24.0 - 2021.05.27

Added

  • component detection: add componentWrapperFunctions setting (#2713 @@jzabala @LandonSchropp)
  • no-unused-prop-types: add ignore option (#2972 @grit96)
  • version detection: support recursive processor virtual filename (#2965 @JounQin)

Fixed

Changed

7.23.2 - 2021.04.08

Fixed

Changed

  • Fix CHANGELOG.md (#2950 @JounQin)

7.23.1 - 2021.03.23

Fixed

  • version detection: support processor virtual filename (#2949 @JounQin)

7.23.0 - 2021.03.22

Added

Fixed

Changed

7.22.0 - 2020.12.29

Added

Fixed

Docs

7.21.5 - 2020.10.19

Fixed

Changed

  • [Tests] jsx-indent-props: Add passing test (#2823 @Hypnosphi)

7.21.4 - 2020.10.09

Fixed

7.21.3 - 2020.10.02

Fixed

  • prop-types: fix Cannot read property 'type' of undefined error when destructured param (#2807 @minwe)
  • no-typos: avoid crash on spread syntax in createReactClass object (#2816 @ljharb @Songyu-Wang)

7.21.2 - 2020.09.24

Fixed

7.21.1 - 2020.09.23

Fixed

7.21.0 - 2020.09.22

Added

Fixed

Changed

7.20.6 - 2020.08.12

Fixed

Changed

7.20.5 - 2020.07.28

Fixed

Docs

7.20.4 - 2020.07.26

Fixed

  • improve algorithm to check if a variable is coming from the pragma ([#2706][] @jzabala)
  • prop-types: handle component returning null (#2696 @hank121314)
  • prop-types/function-component-definition: Add check for first letter capitalization in functional component detection (#2699 @jzabala)
  • prop-types: use variable value in prop type fields defined by variables (#2704 @jzabala)
  • no-typos: warn on a bindingless react import

Changed

  • [Tests] boolean-prop-naming: Added test for function invocation of bool (#2697 @ajkovar)
  • [Tests] jsx-curly-brace-presence, jsx-no-comment-textnodes: add passing tests
  • [Refactor] no-unused-state: avoid a loop

7.20.3 - 2020-06-30

Fixed

7.20.2 - 2020-06-29

Fixed

7.20.1 - 2020-06-28

Fixed

Changed

  • forbid-prop-types: warn on destructured values as well (#2676 @ajkovar)
  • relax JSX pragma regexp (#2643 @gfmio)
  • Cache detected React version (#2673 @lencioni)
  • [refactor] jsx-pascal-case: Remove xregexp (#2636 @yacinehmito))
  • [Tests] a no-typos test fails in eslint v7.3 ([#2678][] @toshi-toma)
  • [Deps] update jsx-ast-utils, object.entries, resolve
  • [Dev Deps] update @types/eslint, @types/estree, @types/node, @typescript-eslint/parser, eslint-config-airbnb-base, eslint-plugin-eslint-plugin, eslint-plugin-import, typescript

7.20.0 - 2020-05-12

Added

Fixed

Docs

Changed

  • [Deps] Move "semver" to devDependencies (#2595 @rajivshah3)
  • [eslint] remove operator-linebreak override (#2578 @golopot)
  • [Tests] button-has-type: ensure no mistakenly allowed identifiers named button/submit/reset (#2625 @golopot)
  • [Tests] displayName: add a test case (#2593 @golopot)
  • [Dev Deps] update @types/eslint, @types/estree, @types/node, @typescript-eslint/parser, coveralls, eslint-config-airbnb-base, eslint-plugin-import, typescript

7.19.0 - 2020-03-06

Added

Fixed

Changed

  • [readme] Small visual inconsistency (#2568 @arvigeus)
  • [docs] add react/ prefix to rule name, for consistency
  • no-unescaped-entities: skip test cases that are now parsing errors in acorn-jsx@5.2.0 (#2583 @golopot)

7.18.3 - 2020-02-02

Fixed

7.18.2 - 2020-02-01

Fixed

7.18.1 - 2020-02-01

Fixed

Changed

  • [Docs] use markdown-magic to automatically sort all rules alphabetically (#1742 @ybiquitous)
  • [Docs] jsx-props-no-spreading: fix typo to use correct rule (#2547 @jonggyun))

7.18.0 - 2020-01-15

Added

Fixed

Changed

  • [Docs] no-render-return-value: Fix title (#2540 @micnic)
  • [Refactor]: remove unused codes in util/propTypes (#2288 @golopot)
  • no-typos: check static lifecycle methods (#2006 @bsonntag)
  • [Docs] jsx-first-prop-new-line: Fix rule name in "Rule Options" section (#2535 @barreira)
  • [Tests] no-unused-prop-types: Added test cases (#977 @dozoisch)
  • [Tests] avoid running tests on pretest job
  • [meta] Move eslint-plugin-eslint-plugin to devDeps (#2510 @nstepien)
  • [Deps] update array-includes, object.entries, object.fromentries, object.values, resolve

7.17.0 - 2019-11-28

Added

Fixed

Changed

7.16.0 - 2019-10-04

Added

Fixed

7.15.1 - 2019-10-01

Fixed

Changed

7.15.0 - 2019-09-30

Added

Fixed

Changed

7.14.3 - 2019-07-23

Fixed

  • Fix prop-types to ignore validation when Flow indexers are used (#2330 @yannickcr)
  • Fix error being thrown after the first warning when react version cannot be detected (#2336 @abhishekdev)
  • Fix component detection when memo and forwardRef are used together (#2349 @yannickcr)

Changed

  • Documentation improvements (@ljharb, #2354 @golopot)

7.14.2 - 2019-06-24

Fixed

7.14.1 - 2019-06-24

Fixed

7.14.0 - 2019-06-23

Added

Fixed

Changed

7.13.0 - 2019-05-03

Added

Fixed

Changed

7.12.4 - 2019-01-16

Fixed

Changed

7.12.3 - 2019-01-04

Fixed

Changed

  • [Docs] add a missing comma in the JSON settings (#2117, @haideralsh)
  • [Docs] update README to document React version detection (#2114, @mohsinulhaq)

7.12.2 - 2019-01-02

Fixed

  • prop-types: avoid crash on used prevProps (#2095, @ljharb)
  • Version warning: Link does not end with '.' (#2103, @yoyo837))
  • forbid-prop-types: fix crash with propWrapper check on MemberExpressions (#2104, @ljharb)

7.12.1 - 2019-01-01

Fixed

Changed

  • Fix CHANGELOG.md (#2097, @alexzherdev)

7.12.0 - 2018-12-27

Added

  • no-typos: Support createClass (#1828, @alexzherdev)
  • Support detecting React.forwardRef/React.memo (#2089, @jomasti)
  • jsx-indent: add checkAttributes option for JSX attribute indentation (#2086, @jomasti)
  • Change allowed propWrapperFunctions setting values (#2065, @jomasti)
  • add jsx-fragments rule to enforce fragment syntax (#1994, @alexzherdev)
  • Support "detect" option for React version setting (#1978, @alexzherdev)
  • Support shorthand fragment syntax in many rules (#1956, @alexzherdev)
  • jsx-no-literals: print node value in warning message (#2008, @jlgonzalezdev)

Fixed

Changed

7.11.1 - 2018-08-14

Fixed

  • stop crashing when assigning to propTypes (#1932, @alexzherdev)

Changed

  • Fix changelog links (#1926, @ferhatelmas)
  • Fix changelog links (#1929, @alexzherdev)

7.11.0 - 2018-08-13

Added

Fixed

Changed

7.10.0 - 2018-06-24

Added

Fixed

Changed

7.9.1 - 2018-06-03

  • Nothing was fixed; this is a republish with some updated deps. (#1804 @ljharb)

7.9.0 - 2018-06-03

Added

Fixed

  • Fix static lifecycle methods validation in sort-comp (#1793 @lynxtaa)
  • Fix crash in no-typos when encountering anonymous react imports (#1796 @jsg2021)
  • Fix ESLint 3 support (#1779)

Changed

  • Documentation improvements (#1794 @lencioni)
  • Update Travis CI configuration to test on multiple ESLint verions

7.8.2 - 2018-05-13

Fixed

7.8.1 - 2018-05-12

Fixed

7.8.0 - 2018-05-11

Added

Fixed

Changed

  • Documentation improvements (#1699 @ronanmathew, #1743 @ybiquitous, #1753 @awthwathje, #1783 @chentsulin, #1703 @ferhatelmas)

7.7.0 - 2018-02-19

Added

Fixed

Changed

7.6.1 - 2018-01-28

Fixed

7.6.0 - 2018-01-25

Added

Fixed

Changed

7.5.1 - 2017-11-19

Fixed

Changed

  • Documentation improvements (#1546 @jseminck)

7.5.0 - 2017-11-18

Added

Fixed

Changed

7.4.0 - 2017-09-24

Added

Fixed

Changed

  • Documentation improvements (#1392 @xcatliu, #1403 @piperchester, #1432 @jneuendorf)

7.3.0 - 2017-08-21

Added

  • Add checks for propTypes, contextTypes and childContextTypes to no-typos (#213 @DianaSuvorova)

Fixed

Changed

  • Documentation improvements (#1383 @mjomble)

7.2.1 - 2017-08-14

Fixed

Changed

  • Documentation improvements (#1123 @penx)

7.2.0 - 2017-08-09

Added

Fixed

Changed

  • Documentation improvements (#1261 @mminer, #1005 @yooungt13, #1289 @konekoya, #1308 @xcatliu, #1306 @egberts, #1329 #1344 @DianaSuvorova)
  • ES6-ify codebase (#1274 #1277 #1281 @dfilipidisz)
  • Code refactoring (@ljharb)
  • Update Travis CI and AppVeyor CI configurations (@lencioni)

7.1.0 - 2017-06-13

Added

Fixed

Changed

  • Set ESLint 4.0.0 as valid peerDependency
  • Dead code removal (#1227 @jseminck)
  • Update dependencies (@ljharb)
  • Documentation improvements (#1071 @adnasa, #1199 @preco21, #1222 @alexilyaev, #1231 @vonovak, #1239 @webOS101, #1241 @102)

7.0.1 - 2017-05-13

Fixed

Changed

  • Update dependencies
  • Documentation improvements (#1173 @luftywiranda13, #1192 @markus-willems)

7.0.0 - 2017-05-06

Added

Breaking

  • Update rules for React 15.5.0:
    • Add warnings for React.PropTypes and React.createClass in no-deprecated (#1148 @Calyhre)
    • Update