sindresorhus/eslint-plugin-unicorn
View on GitHubRule proposal: Prefer `URLSearchParams` over `node:querystring` module
Open
#1,701 opened on Jan 21, 2022
help wantednew rule
Description
Description
The querystring module has been officially deprecated by Node.js for some time. The replacement recommended is URLSearchParams.
An autofix to convert common operations with the querystring module (ex. querystring.stringify) to their URLSearchParams equivalent would be useful as well.
Fail
import ... from 'querystring';
require('querystring');
Pass
// anything else