Skip to content

Commit

Permalink
🐞fix(node): now prefer to use global URL and URLSearchParams
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Jiang committed May 14, 2024
1 parent 577d826 commit 3654bed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/configs/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ const nodeRules: TypedFlatConfigItem['rules'] = {
'node/no-new-require': 'error',
'node/no-path-concat': 'error',
'node/prefer-global/buffer': ['error', 'never'],
'node/prefer-global/console': ['error', 'always'],
'node/prefer-global/process': ['error', 'never'],
'node/prefer-global/url-search-params': ['error', 'never'],
'node/prefer-global/url': ['error', 'never'],
'node/prefer-global/url-search-params': ['error', 'always'],
'node/prefer-global/url': ['error', 'always'],
'node/process-exit-as-throw': 'error',
}

Expand Down

0 comments on commit 3654bed

Please sign in to comment.