mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
tools: move webcrypto into no-restricted-properties
Since eslint fixed https://github.com/eslint/eslint/issues/16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto. PR-URL: https://github.com/nodejs/node/pull/53023 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
f88386561c
commit
74dff83fad
5 changed files with 5 additions and 15 deletions
|
@ -9,7 +9,6 @@ import toolsConfig from './tools/eslint.config_partial.mjs';
|
|||
import {
|
||||
noRestrictedSyntaxCommonAll,
|
||||
noRestrictedSyntaxCommonLib,
|
||||
noRestrictedSyntaxCommonTest,
|
||||
requireEslintTool,
|
||||
resolveEslintTool,
|
||||
} from './tools/eslint.config_utils.mjs';
|
||||
|
@ -191,12 +190,15 @@ export default [
|
|||
property: '__defineSetter__',
|
||||
message: '__defineSetter__ is deprecated.',
|
||||
},
|
||||
{
|
||||
property: 'webcrypto',
|
||||
message: 'Use `globalThis.crypto`.',
|
||||
},
|
||||
],
|
||||
'no-restricted-syntax': [
|
||||
'error',
|
||||
...noRestrictedSyntaxCommonAll,
|
||||
...noRestrictedSyntaxCommonLib,
|
||||
...noRestrictedSyntaxCommonTest,
|
||||
],
|
||||
'no-self-compare': 'error',
|
||||
'no-template-curly-in-string': 'error',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue