chore(deps): update devdependencies (non-major)
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| babel-preset-cozy-app | devDependencies | minor | 1.5.2 -> 1.12.0 |
| cozy-app-publish | devDependencies | minor | ^0.22.3 -> ^0.30.0 |
| eslint-plugin-react | devDependencies | minor | 7.14.2 -> 7.30.1 |
| react-test-renderer (source) | devDependencies | minor | 16.8.6 -> 16.14.0 |
| redux-mock-store | devDependencies | patch | 1.5.3 -> 1.5.4 |
| webextension-polyfill | devDependencies | minor | ^0.6.0 -> ^0.9.0 |
Release Notes
cozy/cozy-libs (babel-preset-cozy-app)
v1.12.0
1.12.0 (2021-10-22)
Features
v1.11.0
1.11.0 (2021-02-12)
Features
- Add finance theme (bb8cf35)
v1.10.0
1.10.0 (2020-11-23)
Features
v1.9.3
Note: Version bump only for package babel-preset-cozy-app
v1.9.2
1.9.2 (2020-09-15)
Bug Fixes
- Flaky builds due to SyntaxError (6b86b76)
v1.9.1
Note: Version bump only for package babel-preset-cozy-app
v1.9.0
1.9.0 (2020-07-16)
Bug Fixes
- Call revokeSelf if not the owner of the sharing (f7afc60)
Features
- Update lodash accross all packages (6a20128)
v1.8.1
v1.8.0
v1.7.0
v1.6.0
1.6.0 (2020-09-01)
Features
v1.5.3
cozy/cozy-libs (cozy-app-publish)
jsx-eslint/eslint-plugin-react
v7.30.1
Fixed
- [
display-name]: fix false positive for HOF returning only nulls (#3291 @golopot) - [
jsx-no-leaked-render]: avoid unnecessary negation operators and ternary branches deletion (#3299 @Belco90) - [
display-name]: fix false positive when using memo (#3304 @golopot)
Changed
- [Docs] [
jsx-tag-spacing]: rename option from [#3264][] ([#3294[] @ljharb) - [Docs] [
jsx-key]: split the examples (#3293 @ioggstream)
v7.30.0
Added
- [
destructuring-assignment]: add optiondestructureInSignature(#3235 @golopot) - [
no-unknown-property]: Allow crossOrigin on image tag (SVG) (#3251 @zpao) - [
jsx-tag-spacing]: Addmultiline-alwaysoption (#3260, #3264 @Nokel81) - [
function-component-definition]: replacevarbyconstin certain situations (#3248 @JohnBerd @SimeonC) - add [
jsx-no-leaked-render] (#3203 @Belco90) - [
require-default-props]: add optionfunctions(#3249 @nix6839)
Fixed
- [
hook-use-state]: Allow UPPERCASE setState setter prefixes (#3244 @duncanbeevers) -
propTypes: addVFCto react generic type param map (#3230 @dlech) - [
no-unused-state]: avoid a crash (#3258 @WillyLiaoWH @ljharb) - [
jsx-no-useless-fragment]: use proper apostrophe in error message (#3266 @develohpanda) -
propTypes: handle imported types/interface in forwardRef generic (#3280 @vedadeepta) - [
button-has-type]: fix exception for<button type>(#3255 @meowtec) - [
no-unstable-nested-components]: Improve error message and catch React.memo() (#3247 @zacharyliu)
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
isParenthesizedAST 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)
v7.29.4
Fixed
- [
no-unused-state]: avoid a crash on a class field gDSFP (#3236 @ljharb) - [
boolean-prop-naming]: handle React.FC, intersection, union types (#3241 @ljharb)
v7.29.3
Fixed
- [
no-unused-state]: avoid a crash on type-only gDSFP declarations (#3225 @ljharb) - [
jsx-curly-brace-presence]: the string "never" defaults topropElementValuesasignore(#3228 @ljharb) -
propTypes: addVFCto react generic list (#3230 @ljharb)
v7.29.2
Fixed
- [
jsx-curly-brace-presence]: avoid warning on curlies containing quote characters (#3214 @ljharb) - [
jsx-indent]: do not report on non-jsx-returning ternaries that contain null (#3222 @ljharb) - [
jsx-indent]: properly report on returned ternaries with jsx (#3222 @ljharb) - [
no-array-index-key]: detect named-importedcloneElement/createElement(#3213 @ljharb)
v7.29.1
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)
v7.29.0
Added
- add [
hook-use-state] rule to enforce symmetric useState hook variable names (#2921 @duncanbeevers) - [
jsx-no-target-blank]: Improve fixer with optionallowReferrer(#3167 @apepper) - [
jsx-curly-brace-presence]: add "propElementValues" config option (#3191 @ljharb) - add [
iframe-missing-sandbox] rule (#2753 @tosmolka @ljharb) - [
no-did-mount-set-state], [no-did-update-set-state]: no-op with react >= 16.3 (#1754 @ljharb) - [
jsx-sort-props]: support multiline prop groups (#3198 @duhamelgm) - [
jsx-key]: addwarnDuplicatesoption to warn on duplicate jsx keys in an array (#2614 @ljharb) - [
jsx-sort-props]: addlocaleoption (#3002 @ljharb)
Fixed
- [
prop-types],propTypes: add support for exported type inference (#3163 @vedadeepta) - [
no-invalid-html-attribute]: allow 'shortcut icon' onlink(#3174 @Primajin) - [
prefer-exact-props] improve performance forIdentifiervisitor (#3190 @meowtec) -
propTypes: Handle TSTypeReference in no-unused-prop-type (#3195 @niik) - [
sort-prop-types]: avoid repeated warnings of the same node/reason (#519 @ljharb) - [
jsx-indent]: Fix indent handling for closing parentheses (#620 @stefanbuck]) - [
prop-types]/propTypes: follow a returned identifier to see if it is JSX (#1046 @ljharb) - [
no-unused-state]: TS: supportgetDerivedStateFromPropsas an arrow function (#2061 @ljharb) - [
no-array-index-key]: catch.toStringandString()usage (#2813 @RedTn) - [
function-component-definition]: do not break on dollar signs (#3207 @ljharb) - [
prefer-stateless-function]: avoid a crash insidedoctrine(#2596 @ljharb) - [
prop-types]: catch infinite loop (#2861 @ljharb) - [
forbid-prop-types]: properly report name in error message; check undestructured arguments (#2945 @ljharb)
Changed
- [readme] change [
jsx-runtime] link from branch to sha (#3160 @tatsushitoji) - [Docs] HTTP => HTTPS (#3133 @Schweinepriester)
- [readme] Some grammar fixes (#3186 @JJ)
- [Docs] [
jsx-no-target-blank]: Improve readme (#3169 @apepper) - [Docs] [
display-name]: improve examples (#3189 @golopot) - [Refactor] [
no-invalid-html-attribute]: sort HTML_ELEMENTS and messages (#3182 @Primajin) - [Docs] [
forbid-foreign-prop-types]: documentallowInPropTypesoption (#1815 @ljharb) - [Refactor] [
jsx-sort-default-props]: remove unnecessary code (#1817 @ljharb) - [Docs] [
jsx-no-target-blank]: fix syntax highlighting (#3199 @shamrin) - [Docs] [
jsx-key]: improve example (#3202 @chnakamura) - [Refactor] [
jsx-key]: use more AST selectors (@ljharb)
v7.28.0
Added
- [
function-component-definition]: support namedComponents option being an array (#3129 @petersendidit)
Fixed
- [
jsx-indent-props]: Resetline.isUsingOperatorcorrectly after ternary (#3146 @tobiaswaltl)
Changed
- [Refactor] [
no-arrow-function-lifecycle], [no-unused-class-component-methods]: use report/messages convention (@ljharb) - [Tests] component detection: Add testing scaffolding (#3149 @duncanbeevers)
- [New] component detection: track React imports (#3149 @duncanbeevers)
- [New] component detection: add
util.isReactHookCall(#3156 @duncanbeevers)
v7.27.1
Fixed
- [
no-invalid-html-attribute]: allowlinkrelto haveapple-touch-icon,mask-icon(#3132 @ljharb) - [
no-unused-class-component-methods]: addgetChildContextlifecycle method (#3136 @yoyo837) - [
prop-types]: fix false positives on renames in object destructuring (#3142 @golopot) - [
no-arrow-function-lifecycle]: fix invalid autofix from a concise arrow method to a regular one (#3145 @ljharb) - [
display-name]: avoid false positives on non-creatClass object expressions (#3144 @ljharb)
Changed
v7.27.0
Added
- support eslint 8.x (#3059 @MichaelDeBoey @ljharb)
- [
no-unused-class-component-methods]: Handle unused class component methods (#2166 @jakeleventhal @pawelnvk) - add [
no-arrow-function-lifecycle] (#1980 @ngtan) - add support for
@typescript-eslint/parserv5 (@ljharb) - [
no-invalid-html-attribute]: add rule (#2863 @Nokel81)
Fixed
-
propTypes: addVoidFunctionComponentto react generic list (#3092 @vedadeepta) - [
jsx-fragments], [jsx-no-useless-fragment]: avoid a crash on fragment syntax intypescript-eslintparser (@ljharb) - [
jsx-props-no-multi-spaces]: avoid a crash on long member chains in tag names intypescript-eslintparser (@ljharb) - [
no-unused-prop-types],usedPropTypes: avoid crash with typescript-eslint parser (@ljharb) - [
display-name]: unwrap TSasexpressions (#3110 @ljharb) - [
destructuring-assignment]: detect refs nested in functions (#3102 @ljharb) - [
no-unstable-components]: improve handling of objects containing render function properties (#3111 @fizwidget) - [
prop-types],propTypes: add forwardRef<>, ForwardRefRenderFunction<> prop-types (#3112 @vedadeepta) - [
no-typos]: prevent a crash when using private methods (@ljharb) - [
destructuring-assignment], component detection: improve component detection (#3122 @vedadeepta) - [
no-invalid-html-attribute]: avoid crash on spread props (#3126 @ljharb)
Changed
- [Tests] test on the new babel eslint parser (#3113 @ljharb)
- [Docs] [
jsx-no-target-blank]: adjust options description (#3124 @gebsh)
v7.26.1
Fixed
- [
no-namespace]: fix crash on non-string React.createElement name (#3082 @ljharb) - [
no-namespace]: avoid crash on non-string createElement values (#3085 @ljharb) - [
jsx-no-target-blank]: improve error messages (#3088 @cutiful)
Changed
- [Docs] [
jsx-max-props-per-line]: fix options example (#3083 @MrRaiter)
v7.26.0
Added
- add [
no-namespace] rule (#2640 @yacinehmito @ljharb) - [
jsx-max-props-per-line]: addsingleandmultioptions (#3078 @SIL0RAK)
Fixed
Changed
- [
no-access-state-in-setstate]: passing test for “don't error if it's not a React Component” (#1873 @kentcdodds)
v7.25.3
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
isCreateElementandisDestructuredFromPragmaImportutils (@ljharb)
v7.25.2
Fixed
- [
jsx-no-useless-fragments]: Handle insignificant whitespace correctly whenallowExpressionsistrue(#3061 @benj-dobs) - [
prop-types],propTypes: handle implicitchildrenprop 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)
v7.25.1
Fixed
v7.25.0
Added
- [
jsx-no-useless-fragments]: add option to allow single expressions in fragments (#3006 @mattdarveniza) - add [
prefer-exact-props] rule (#1547 @jomasti) - [
jsx-no-target-blank]: addformsoption (#1617 @jaaberg) - [
jsx-pascal-case]: addallowLeadingUnderscoreoption (#3039 @pangaeatech) - [
no-children-prop]: AddallowFunctionsoption (#1903 @alexzherdev) - [
jsx-runtime]: setparserOptions.jsxPragmafor@typescript-eslint/parser(bb64df65 @ljharb)
Fixed
- component detection: use
estraverseto improve component detection (#2992 @Wesitos) - [
destructuring-assignment], [no-multi-comp], [no-unstable-nested-components], component detection: improve component detection (#3001 @vedadeepta) - [
no-deprecated]: fix crash on rest elements (#3016 @ljharb) - [
destructuring-assignment]: get the contextName correctly (#3025 @ohhoney1) - [
no-typos]: prevent crash on styled components and forwardRefs (#3036 @ljharb) - [
destructuring-assignment], component detection: handle default exports edge case (#3038 @vedadeepta) - [
no-typos]: fix crash on private methods (#3043 @ljharb) - [
jsx-no-bind]: handle local function declarations (#3048 @p7g) - [
prop-types],propTypes: handle React.* TypeScript types (#3049 @vedadeepta) - [
prop-types],propTypes: add handling forFC<Props>, improve tests (#3051 @vedadeepta) - [
prop-types],propTypes: prevent crash introduced in #3051 (#3053 @ljharb)
Changed
- [Docs] [
jsx-no-bind]: updates discussion of refs (#2998 @dimitropoulos) - [Refactor]
utils/Components: correct spelling and delete unused code (#3026 @ohhoney1) - [Docs] [
jsx-uses-react], [react-in-jsx-scope]: document [react/jsx-runtime] config (#3018 @pkuczynski @ljharb) - [Docs] [
require-default-props]: fix small typo (#2994 @evsasse) - [Tests] add weekly scheduled smoke tests (#2963 @AriPerkkio)
- [Docs] improve instructions for
jsx-runtimeconfig (#3052 @ljharb)
v7.24.0
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
- [
jsx-handler-names]: properly substitute value into message (#2975 @G-Rath) - [
jsx-uses-vars]: ignore namespaces (#2985 @remcohaszing) - [
jsx-no-undef]: ignore namespaces (#2986 @remcohaszing) - [
jsx-child-element-spacing]: Don't flag whitespace around<br/>tags (#2989 @pascalpp)
Changed
- [Docs] [
jsx-newline]: Fix minor spelling error on rule name (#2974 @DennisSkoko) - [Refactor] [
void-dom-elements-no-children]: improve performance - [readme] fix missing trailing commas (#2980 @sugardon)
- [readme] fix broken anchor link (#2982 @vzvu3k6k)
- [Docs] [
jsx-child-element-spacing]: fixes sentence which ends abruptly (#2990 @pascalpp)
v7.23.2
Fixed
- [
jsx-max-depth]: Prevent getting stuck in circular references (#2957 @AriPerkkio) - [
jsx-no-target-blank]: fix handling ofwarnOnSpreadAttributesbeing false (#2953 @Nokel81) - [
forbid-dom-props]: supportJSXNamespacedName(#2961 @mrtnzlml) - [
forbid-component-props]: supportJSXNamespacedName(@ljharb)
Changed
v7.23.1
Fixed
v7.23.0
Added
- [
jsx-no-target-blank]: add fixer (#2862 @Nokel81) - [
jsx-pascal-case]: support minimatchignoreoption (#2906 @bcherny) - [
jsx-pascal-case]: supportallowNamespaceoption (#2917 @kev-y-huang) - [
jsx-newline]: Add prevent option (#2935 @jsphstls) - [
no-unstable-nested-components]: Prevent creating unstable components inside components (#2750 @AriPerkkio) - added
jsx-runtimeconfig, for the modern JSX runtime transform (@ljharb)
Fixed
- [
jsx-no-constructed-context-values]: avoid a crash withas XTS code (#2894 @ljharb) - [
jsx-no-constructed-context-values]: avoid a crash with boolean shorthand (#2895 @ljharb) - [
static-property-placement]: do not report non-components (#2893 @golopot) - [
no-array-index-key]: support optional chaining (#2897 @SyMind) - [
no-typos]: avoid a crash on bindinglessprop-typesimport; add warning (#2899 @ljharb) - [
jsx-curly-brace-presence]: ignore containers with comments (#2900 @golopot) - [
destructuring-assignment]: fix a false positive for local prop namedcontextin SFC (#2929 @SyMind) - [
jsx-no-target-blank]: Allow rel="noreferrer" whenallowReferreris true (#2925 @edemaine) - [
boolean-prop-naming]: add check for typescript "boolean" type (#2930 @vedadeepta) - version detection: Add tests that verify versioning works for sibling and child projects (#2943 @jcrosetto)
- [
jsx-curly-newline]: Update error messages (#2933 @jbrower2)
Changed
- [Docs] [
jsx-no-constructed-context-values][]: fix invalid example syntax (#2910 @kud) - [readme] Replace lists of rules with tables in readme (#2908 @motato1)
- [Docs] added missing curly braces (#2923 @Muditxofficial)
v7.22.0
Added
- [
jsx-key]: addedcheckKeyMustBeforeSpreadoption for new jsx transform (#2835 @morlay) - [
jsx-newline]: add new rule (#2693 @jzabala) - [
jsx-no-constructed-context-values]: add new rule which checks when the value passed to a Context Provider will cause needless rerenders (#2763 @dylanOshima) - [
jsx-indent-props]: addignoreTernaryOperatoroption (#2846 @SebastianZimmer) - [
jsx-no-target-blank]: AddwarnOnSpreadAttributesoption (#2855 @michael-yx-wu)
Fixed
- [
display-name]/component detection: avoid a crash on anonymous components (#2840 @ljharb) - [
prop-types]: function in class that returns a component causes false warning in typescript (#2843 @SyMind) - [
jsx-no-target-blank]: avoid a crash with a non-string literal (#2851 @ljharb) - [
jsx-no-script-url]: avoid crash with booleanhref(#2871 @ljharb, @AriPerkkio) - [
no-typos]: avoid crash with computed method name (#2870 @ljharb, @AriPerkkio) - [
jsx-max-depth]: avoid crash with childless jsx child (#2869 @ljharb, @AriPerkkio) - [
jsx-wrap-multilines]: fix crash withdeclarations that are on a new line after=(#2875 @ljharb) - [
no-unknown-property]: avoid crash with prop named with Object.prototype key (#2879 @ljharb, @AriPerkkio) - [
prop-types]: default argument does not count as props-types declaration (#2877 @golopot) - [
jsx-props-no-multi-spaces]: fix a false positive for beside comments (#2878 @golopot) - [
jsx-no-undef]: handle the TS parser combined with an invalid ecmaVersion (#2882 @ljharb) - [
no-unused-prop-types]: applyskipShapePropsto exact types (#2883 @golopot) - [
no-danger-with-children]/[style-prop-object]/[no-adjacent-inline-elements]: add category, URL (#2891 @thofmann)
Docs
- [
no-unused-prop-types]: Add new example to rule (#2852 @thehereward) - [
prop-types]: fix example (#2881 @technote-space)
v7.21.5
Fixed
- [
jsx-indent-props]: Apply indentation when using brackets (#2826 @Moong0122) - [
jsx-handler-names]: Skip inline handlers when checkInlineFunction=false (#2833 @onigoetz)
Changed
- [Tests]
jsx-indent-props: Add passing test (#2823 @Hypnosphi)
v7.21.4
Fixed
- [
no-unused-prop-types]: Silence false positive onnevertype in TS (#2815 @pcorpet) - [
jsx-indent-props]: Apply indentation when operator is used in front of the upper line (#2808, #2820 @Moong0122) - [Deps] update
jsx-ast-utils(#2822 jsx-eslint/jsx-ast-utils#102 @ljharb)
v7.21.3
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)
v7.21.2
Fixed
- [
prop-types]: handle RestElement in destructured param (#2805 @hank121314)
v7.21.1
Fixed
- [
jsx-handler-names]: avoid a crash when an inline prop is not a MemberExpression (#2803 @willheslam)
v7.21.0
Added
- [
button-has-type]: support trivial ternary expressions (#2748 @Hypnosphi) - [
jsx-handler-names]: addcheckInlineFunctionoption (#2761 @dididy) - [
jsx-no-literals]: addnoAttributeStringsoption (#2782 @TaLeaMonet) - [
prop-types]: add support forPropTypes.exact(#2740 @jzabala) - [
jsx-filename-extension]: Add allow option (#2746 @remcohaszing)
Fixed
- [
function-component-definition]: ignore object properties (#2771 @stefan-wullems) - [
forbid-component-props]: Implemented support for "namespaced" components (#2767 @mnn) - [
prefer-read-only-props]: support Flow$ReadOnly(#2772, #2779, #2770 @karolina-benitez) - [
jsx-handler-names]: handle whitespace (#2789 @AriPerkkio) - [
prop-types]: Detect TypeScript types for destructured default prop values (#2780 @sunghyunjo) - [
jsx-pascal-case]: Handle single character namespaced component (#2791 @daviferreira) - [
jsx-closing-bracket-location]: Intag-aligned, made a distinction between tabs and spaces (#2796 @Moong0122) - [
jsx-handler-names]: false positive when handler name begins with number (#1689 @jsphstls) - [
prop-types]: Detect JSX returned by sequential expression (#2801 @mikol) - [
jsx-props-no-multi-spaces]: "Expected no line gap between" false positive (#2792 @karolina-benitez) - [
no-unknown-property]: check attributes with any input case (#2790 @julienw) - [
prop-types]/[no-unused-prop-types]: handle CallExpression in ReturnType (#2802 @hank121314) - [
jsx-uses-react]: mark fragment variables as used (#2775 @remcohaszing) - [
no-unused-prop-types]: improve component declared props detection ([#2755][] @jzabala) - [
jsx-props-no-multi-spaces]: Show error in multi-line props (#2756 @iiison)
Changed
- [Tests] [
jsx-one-expression-per-line]: add passing tests (#2799 @TaLeaMonet) - [Tests] [
prop-types]: add test (#2757 @jzabala)
v7.20.6
Fixed
- [
jsx-curly-brace-presence]: fix multiline comment case (#2716 @ljharb) - [
jsx-no-useless-fragment]: accept fragments with call expressions (#2744 @hasparus) - [
jsx-no-literals] with allowStrings doesn't work in props (#2736 @karolina-benitez) - [
no-find-dom-node]: Improve error message (#2741 @ecraig12345) - [
no-typos]/[no-unused-prop-types]/propType detection: Support typescript props interface extension and TSTypeAliasDeclaration (#2721 @hank121314) - [
no-this-in-sfc]/component detection: add arrow function to list of allowed position for component (#2708 @jzabala) - [
no-access-state-in-setstate]: add check for class component (#2711 @jzabala) - [
prop-types]/component detection: avoid a crash when a localcreateElementidentifier exists (#2733 @ljharb)
Changed
- [
no-unused-prop-types]: add test assigning this.props to a variable
v7.20.5
Fixed
- [
jsx-curly-brace-presence]: disable disallowed JSX text chars check in props (#2710 @jzabala) - [
no-unused-state]: check for class expression (#2712 @jzabala) - [
prop-types]: handle anonymous functions (#2730, #2731 @odinho @wKich @jzabala)
Docs
- [Docs] [
no-access-state-in-setstate]: fix example (#2724 @youngjuning)
v7.20.4
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 bindinglessreactimport
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
v7.20.3
Fixed
- [
no-unused-prop-types]/[prop-types]: typescript interface support literal type and only FunctionComponent should have propTypes validation (#2690 @hank121314) - [
no-unused-prop-types]/TypeScript: avoid crash on indexable interface (#2687 @ljharb)
v7.20.2
Fixed
- [
no-unused-prop-types]: handle optional chaining (#2679 @hank121314) - [
jsx-pascal-case]: fix a false positive with "H1" (#2683 @ljharb) - [
jsx-no-useless-fragment]: avoid a crash when autofixing a self-closing React.Fragment (#2680 @ljharb) - [
forbid-prop-types]: avoid crash (#2682 @ljharb)
v7.20.1
Fixed
- [
forbid-dom-props], [function-component-definition]: fix schema typos (#2667 @mflorence99) - [
no-unused-prop-types]: fix with typescript eslint parser (#2661 @eltonio450)
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
v7.20.0
Added
- support eslint v7 (#2635 @ljharb, @toshi-toma)
- [
forbid-component-props][]/[forbid-dom-props][]: Allow a custom message with forbid props (#2615 @mtamhankar1) - [
jsx-no-literals][]: addignorePropsoption to ignore props validation (#2146 @iiison)
Fixed
- [
jsx-sort-props][]: only use localeCompare when case is ignored (#2556 @tanmoyopenroot) - [
jsx-key][]: add a failing test case for optional chaining (#2610 @JonathanLee-LX) - [
no-unused-state][]: handle optional chaining (#2588 @golopot) - [
jsx-pascal-case][]: Do not consider namespaces when checking for DOM (#2638 @yacinehmito) - [
jsx-curly-spacing][], [jsx-no-bind][],usedPropTypesutil: avoid node.start and node.end (25b1936 @toshi-toma) - [
jsx-no-target-blank][]: allowno-referrerwithoutnoopenerby default (#2043 @seancrater) - [
button-has-type][]: improve message when non-static value is used (aecff62 @golopot) - [
no-adjacent-inline-elements][]: prevent crash on nullish children (#2621 @Rogdham) - [
prop-types][]: avoid crash when spreading any type (#2606 @golopot)) - [
require-render-return][]: add missing "a" (#2604 @leothorp) - [
jsx-no-comment-textnodes][]: fix for@typescript-eslint/parser(#2601 @Axnyff) - [
displayName][]: avoid a crash when using React.memo (#2587 @golopot)
Docs
- Clean up examples in rule docs (#2546 @silvenon)
- [readme] Add Rules of Hooks to Other useful plugins section (#2633 @petetnt)
- [
no-this-in-sfc][]: backtickthis(#2616 @mrflip) - [
function-component-definition][]: Fix unnamedComponents option examples (#2608 @vkrol))
Changed
- [Deps] Move "semver" to devDependencies (#2595 @rajivshah3)
- [eslint] remove
operator-linebreakoverride (#2578 @golopot) - [Tests]
button-has-type: ensure no mistakenly allowed identifiers namedbutton/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
v7.19.0
Added
- [
style-prop-object][]: Addallowoption (#1819 @hornta) - [
jsx-pascal-case][]: Support unicode characters (#2557 @Svish)
Fixed
- [
prefer-stateless-function][]: avoid crash on ts empty constructor (#2582 @golopot) - [
no-adjacent-inline-elements][]: avoid a crash (#2575 @ljharb) - [
no-unused-prop-types][]: Change the reporting to point to a more accurate node (#2292 @jseminck) - [
self-closing-comp][]: consider JSXMemberExpression as component too (#2572 @Belco90) - [
no-unused-prop-types][]: makemarkPropTypesAsUsedwork withTSEmptyBodyFunctionExpressionAST node (#2560 @guillaumewuip) - [
displayName][] (but really,propTypesdetection): do not crash on empty flow type spreads (#2570 @ljharb)
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)
v7.18.3
Fixed
- [
jsx-indent][]: don't check literals not within JSX (#2564 @toshi-toma)
v7.18.2
Fixed
v7.18.1
Fixed
- [
jsx-indent][]: Does not check indents for JSXText (#2542 @toshi-toma) - [
jsx-props-no-spreading][]: add support for namespaced jsx components (#2534 @jonathanpalma) - [
jsx-no-target-blank][]: allow rel to be an expression (#2544 @odinho) - [
sort-comp][]:|isn’t a valid regex flag;uandsare (@ljharb)
Changed
- [Docs] use
markdown-magicto automatically sort all rules alphabetically (#1742 @ybiquitous) - [Docs] [
jsx-props-no-spreading][]: fix typo to use correct rule (#2547 @jonggyun))
v7.18.0
Added
- [
require-default-props][]: add option to ignore functional components (#2532 @RedTn) - [
function-component-definition][]: Enforce a specific function type for function components (#2414 @Stefanwullems) - [
no-adjacent-inline-elements][]: Prevent adjacent inline elements not separated by whitespace (#1155 @SeanHayes) - [
jsx-no-script-url][]: prevent usage ofjavascript:URLs (#2419 @sergei-startsev)
Fixed
- [
jsx-pascal-case][]: false negative with namespacing (#1337 @mfyuce) - [
jsx-curly-brace-presence][]: Fixcurly-brace-presenceedge cases (#2523 @rafbgarcia) - [
prop-types][]: Does not validate missing propTypes for LogicalExpression (#2533 @toshi-toma) - [
no-unknown-property][]: allowTransparency does not exist in React >= v16.1 (#1538 @dawidvdh) - [
jsx-curly-brace-presence][]: Fix error related to tags line break (#2521 @rafbgarcia) - [
no-typos][]: Compilation error when method name is string instead of identifier (#2514 @shijistar) - [
jsx-curly-brace-presence][]: allow trailing spaces in TemplateLiteral (#2507 @doochik) - [
no-unused-prop-types], [no-unused-state]: fix false positives when using TS type assertions (#2536 @kdmadej)
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
v7.17.0
Added
- [
jsx-no-target-blank][]: addallowReferreroption (#2478 @eps1lon) - [
jsx-handler-names][]: addcheckLocalVariablesoption (#2470 @aub) - [
prop-types][]: Support Flow Type spread (#2446 @moroine) - [
jsx-props-no-spreading][]: addexplicitSpreadoption to allow explicit spread of props (#2449 @pawelnvk) - [
jsx-no-target-blank][]: warn ontarget={'_blank'}expressions (#2451 @timkraut) - [
function-component-definition]: Enforce a specific function type for function components (#2414 @Stefanwullems)
Fixed
- [
sort-prop-types][], [jsx-sort-default-props][]: disable broken autofix (#2505 @webOS101) - [
no-typos][]: improve report location (#2468 @golopot) - [
jsx-no-literals][]: trim whitespace forallowedStringscheck (#2436 @cainlevy) - [
jsx-curly-brace-presence][]: Fix filter of undefined error with whitespace inside jsx attr curlies (#2460 @dustinyoste) - [
no-render-return-value][]: should warn when used in assignment expression ([#2462][] @jichu4n) - [
jsx-curly-brace-presence][]: allow trailing spaces in literal (#2448 @doochik)
Changed
- [Deps] update
jsx-ast-utils,object.fromentries,resolve - [eslint] fix func-names and change object-shorthand to 'always' (#2483 @golopot)
- [Docs]
jsx-first-prop-new-line: Fix documentation formatting (#2489 @pjg) - [Docs] [
prop-types][]: Update 'skipUndeclared' in rule options (#2504 @cjnickel) - [Docs] [
jsx-first-prop-new-line][]: fix wrong rule name (#2500 @zgayjjf) - [eslint] enable eslint-plugin-eslint-plugin (#2469 @golopot)
- [Docs] [
jsx-props-no-multi-spaces][]: suggest using core rule instead (#2463 @golopot) - [Docs] [
jsx-first-prop-new-line][]: add rule options (#2465 @SerdarMustafa1) - [Docs] [
jsx-no-target-blank][]: Add section about overriding for trusted links (#2438 @aschriner) - [Docs] fix typo (#2453 @cainwatson)
- [Docs] [
no-unused-prop-types][]: clean up prose (#2273 @coryhouse) - [Docs] [
jsx-no-bind][]: add section about React Hooks (#2443 @kdex)
v7.16.0
Added
- [
jsx-sort-default-props][]: make rule fixable (#2429 @emroussel)
Fixed
- [
jsx-no-useless-fragment][]: usearray-includesover.includesfor back compat (@ljharb) - [
jsx-curly-brace-presence][]: allow necessary white-space literal (#2437 @uniqname) - [
jsx-curly-brace-presence][]: warns incorrectly on trailing whitespace (#2431 @BC-M) - [
no-unused-prop-types][]: false positive when nested destructuring (#2428 @golopot)
v7.15.1
Fixed
- [
jsx-curly-brace-presence][]: bail out checks when JSXElements are passed as props (#2426 @vedadeepta)
Changed
- [Docs] [
prefer-es6-class][]: Fix typos (#2425 @spencerbyw)
v7.15.0
Added
- add [
jsx-no-useless-fragment][] rule (#2261 @golopot) - [
jsx-handler-name][]: allowfalseto disableeventHandlerPrefix/eventHandlerPropPrefix(#2410 @tanmoyopenroot) - [
sort-comp][]: addstatic-variablesgrouping (#2408 @vedadeepta) - [
jsx-no-literals][]: AddallowedStringsoption (#2380 @benhollander) - [
no-multi-comp][]: Added handling forforwardRefandmemowrapping components declared in the same file (#2184 @jenil94) - [
jsx-pascal-case][]:allowAllCapsoption now allowsSCREAMING_SNAKE_CASE(#2364 @TylerR909)
Fixed
- [
jsx-indent][]: Fix false positive when a jsx element is the last statement within a do expression (with tests) (#2200 @Kenneth-KT) - [
jsx-curly-brace-presence][]: fix jsx tags in braces (#2422 @tanmoyopenroot) - [
display-name][]: Fix false positives (#2399 @BPScott) - [
jsx-curly-brace-presence][]: report unnecessary curly braces with children on next line (#2409 @vedadeepta) - [
no-unused-prop-types][]: false positive with callback (#2375 @golopot) - Fix prop-types detection collision on renamed props (#2383 @yannickcr)
- [
jsx-sort-props][]: use localeCompare rather than comparison operator (#2391 @tanmoyopenroot) - [
jsx-pascal-case][]: allow one-letter-named components (#2395 @Haegin) - [
jsx-wrap-multilines][]: fix incorrect formatting (#2392 @tanmoyopenroot) - [
require-optimization][]: fix when using arrow function in class components (#2385 @jenil94) - [
no-deprecated][]: Deprecate cWM/cWRP/cWU lifecycle methods since React 16.9.0 (#2378 @meowtec) - [
jsx-key][]: improve docs and confusing error message (#2367 @kaykayehnn) - Recognize props wrapped in flow $ReadOnly<> utility type (#2361 @lukeapage)
- [
prop-types][]: false positive with setState updator (#2359 @golopot)
Changed
- [Docs] [
no-access-state-in-setstate][]: update grammar ([#2418][] @neaumusic) - [
jsx-curly-brace-presence][], [jsx-one-expression-per-line][], [no-danger-with-children][]: addisWhiteSpacestolib/util/jsx(#2409 @vedadeepta)
v7.14.3
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
memoandforwardRefare used together (#2349 @yannickcr)
Changed
facebook/react
v16.14.0
React
- Add support for the new JSX transform. (@lunaruan in #18299)
v16.13.1
React DOM
- Fix bug in legacy mode Suspense where effect clean-up functions are not fired. This only affects users who use Suspense for data fetching in legacy mode, which is not technically supported. (@acdlite in #18238)
- Revert warning for cross-component updates that happen inside class render lifecycles (
componentWillReceiveProps,shouldComponentUpdate, and so on). (@gaearon in #18330)
v16.13.0
React
- Warn when a string ref is used in a manner that's not amenable to a future codemod (@lunaruan in #17864)
- Deprecate
React.createFactory()(@trueadm in #17878)
React DOM
- Warn when changes in
stylemay cause an unexpected collision (@sophiebits in #14181, #18002) - Warn when a function component is updated during another component's render phase (@acdlite in #17099)
- Deprecate
unstable_createPortal(@trueadm in #17880) - Fix
onMouseEnterbeing fired on disabled buttons (@AlfredoGJ in #17675) - Call
shouldComponentUpdatetwice when developing inStrictMode(@bvaughn in #17942) - Add
versionproperty to ReactDOM (@ealush in #15780) - Don't call
toString()ofdangerouslySetInnerHTML(@sebmarkbage in #17773) - Show component stacks in more warnings (@gaearon in #17922, #17586)
Concurrent Mode (Experimental)
- Warn for problematic usages of
ReactDOM.createRoot()(@trueadm in #17937) - Remove
ReactDOM.createRoot()callback params and added warnings on usage (@bvaughn in #17916) - Don't group Idle/Offscreen work with other work (@sebmarkbage in #17456)
- Adjust
SuspenseListCPU bound heuristic (@sebmarkbage in #17455) - Add missing event plugin priorities (@trueadm in #17914)
- Fix
isPendingonly being true when transitioning from inside an input event (@acdlite in #17382) - Fix
React.memocomponents dropping updates when interrupted by a higher priority update (@acdlite in #18091) - Don't warn when suspending at the wrong priority (@gaearon in #17971)
- Fix a bug with rebasing updates (@acdlite and @sebmarkbage in #17560, #17510, #17483, #17480)
v16.12.0
React DOM
React Is
v16.11.0
React DOM
- Fix
mouseenterhandlers from firing twice inside nested React containers. @yuanoook in #16928 - Remove
unstable_createRootandunstable_createSyncRootexperimental APIs. (These are available in the Experimental channel ascreateRootandcreateSyncRoot.) (@acdlite in #17088)
v16.10.2
React DOM
- Fix regression in react-native-web by restoring order of arguments in event plugin extractors (@necolas in #16978)
v16.10.1
React DOM
- Fix regression in Next.js apps by allowing Suspense mismatch during hydration to silently proceed (@sebmarkbage in #16943)
v16.10.0
React DOM
- Fix edge case where a hook update wasn't being memoized. (@sebmarkbage in #16359)
- Fix heuristic for determining when to hydrate, so we don't incorrectly hydrate during an update. (@sebmarkbage in #16739)
- Clear additional fiber fields during unmount to save memory. (@trueadm in #16807)
- Fix bug with required text fields in Firefox. (@halvves in #16578)
- Prefer
Object.isinstead of inline polyfill, when available. (@ku8ar in #16212) - Fix bug when mixing Suspense and error handling. (@acdlite in #16801)
Scheduler (Experimental)
- Improve queue performance by switching its internal data structure to a min binary heap. (@acdlite in #16245)
- Use
postMessageloop with short intervals instead of attempting to align to frame boundaries withrequestAnimationFrame. (@acdlite in #16214)
useSubscription
- Avoid tearing issue when a mutation happens and the previous update is still in progress. (@bvaughn in #16623)
v16.9.0
React
- Add
<React.Profiler>API for gathering performance measurements programmatically. (@bvaughn in #15172) - Remove
unstable_ConcurrentModein favor ofunstable_createRoot. (@acdlite in #15532)
React DOM
- Deprecate old names for the
UNSAFE_*lifecycle methods. (@bvaughn in #15186 and @threepointone in #16103) - Deprecate
javascript:URLs as a common attack surface. (@sebmarkbage in #15047) - Deprecate uncommon "module pattern" (factory) components. (@sebmarkbage in #15145)
- Add support for the
disablePictureInPictureattribute on<video>. (@eek in #15334) - Add support for
onLoadevent for<embed>. (@cherniavskii in #15614) - Add support for editing
useStatestate from DevTools. (@bvaughn in #14906) - Add support for toggling Suspense from DevTools. (@gaearon in #15232)
- Warn when
setStateis called fromuseEffect, creating a loop. (@gaearon in #15180) - Fix a memory leak. (@paulshen in #16115)
- Fix a crash inside
findDOMNodefor components wrapped in<Suspense>. (@acdlite in #15312) - Fix pending effects from being flushed too late. (@acdlite in #15650)
- Fix incorrect argument order in a warning message. (@brickspert in #15345)
- Fix hiding Suspense fallback nodes when there is an
!importantstyle. (@acdlite in #15861 and #15882) - Slightly improve hydration performance. (@bmeurer in #15998)
React DOM Server
React Test Utilities and Test Renderer
- Add
act(async () => ...)for testing asynchronous state updates. (@threepointone in #14853) - Add support for nesting
actfrom different renderers. (@threepointone in #16039 and #16042) - Warn in Strict Mode if effects are scheduled outside an
act()call. (@threepointone in #15763 and #16041) - Warn when using
actfrom the wrong renderer. (@threepointone in #15756)
ESLint Plugin: React Hooks
mozilla/webextension-polyfill
v0.9.0
Bug Fixes
- enable webextension-polyfill usage via webpack ProvidePlugin (#351)
v0.8.0
Bug Fixes
-
browser.devtools.network.onRequestFinishedis now wrapped by the polyfill and provides a promise-basedrequestAPI object (#250, fixes #249) - the promise wrappers has been updated to reject with Error instances (#293, fixes #257)
v0.7.0
Features
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.
Edited by Renovate-Bot