wikimedia / eslint-plugin-no-jquery

Control allowance of certain jQuery functions, and suggest or autofix alternatives.
MIT License
32 stars 8 forks source link

Implement a fixer for no-extend rule #313

Closed edg2s closed 4 months ago

edg2s commented 5 months ago

Replaces $.extend with Object.assign if the first argument is not literal true.

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (2166431) to head (9c8cb9c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #313 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 103 103 Lines 608 611 +3 ========================================= + Hits 608 611 +3 ``` | [Files](https://app.codecov.io/gh/wikimedia/eslint-plugin-no-jquery/pull/313?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wikimedia) | Coverage Δ | | |---|---|---| | [src/rules/no-extend.js](https://app.codecov.io/gh/wikimedia/eslint-plugin-no-jquery/pull/313?src=pr&el=tree&filepath=src%2Frules%2Fno-extend.js&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wikimedia#diff-c3JjL3J1bGVzL25vLWV4dGVuZC5qcw==) | `100.00% <100.00%> (ø)` | |