sindresorhus/eslint-plugin-unicorn
Rule proposal: Prefer `URLSearchParams` over `node:querystring` module
Fechada
#1.701 aberto em 21 de jan. de 2022
help wantednew rule
Métricas do repositório
- Stars
- (5.022 estrelas)
- Métricas de merge de PR
- (Mesclagem média 4h 30m) (26 fundiu PRs em 30d)
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