2018-02-04 19:38:18 +00:00
|
|
|
'use strict';
|
|
|
|
|
2019-04-04 03:36:41 +00:00
|
|
|
/* eslint-env node */
|
|
|
|
|
2018-02-04 19:38:18 +00:00
|
|
|
const Module = require('module');
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
const NodePlugin = require('./tools/node_modules/eslint-plugin-node-core');
|
|
|
|
NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');
|
|
|
|
|
2019-05-24 17:16:16 +00:00
|
|
|
// The Module._findPath() monkeypatching is to make it so that ESLint will work
|
|
|
|
// if invoked by a globally-installed ESLint or ESLint installed elsewhere
|
|
|
|
// rather than the one we ship. This makes it possible for IDEs to lint files
|
|
|
|
// with our rules while people edit them.
|
2018-02-04 19:38:18 +00:00
|
|
|
const ModuleFindPath = Module._findPath;
|
|
|
|
const hacks = [
|
|
|
|
'eslint-plugin-node-core',
|
2021-11-30 00:41:31 +00:00
|
|
|
'eslint-plugin-jsdoc',
|
2018-02-04 19:38:18 +00:00
|
|
|
'eslint-plugin-markdown',
|
2020-11-29 22:27:08 +00:00
|
|
|
'@babel/eslint-parser',
|
2023-10-14 03:52:38 +00:00
|
|
|
'@babel/plugin-syntax-import-attributes',
|
2018-02-04 19:38:18 +00:00
|
|
|
];
|
|
|
|
Module._findPath = (request, paths, isMain) => {
|
|
|
|
const r = ModuleFindPath(request, paths, isMain);
|
|
|
|
if (!r && hacks.includes(request)) {
|
|
|
|
try {
|
|
|
|
return require.resolve(`./tools/node_modules/${request}`);
|
2021-05-29 15:16:02 +00:00
|
|
|
} catch {
|
2018-02-04 19:38:18 +00:00
|
|
|
return require.resolve(
|
|
|
|
`./tools/node_modules/eslint/node_modules/${request}`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return r;
|
|
|
|
};
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2022-02-20 15:22:59 +00:00
|
|
|
env: {
|
|
|
|
es2022: true,
|
|
|
|
},
|
2022-01-09 22:00:08 +00:00
|
|
|
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
|
2021-11-30 00:41:31 +00:00
|
|
|
plugins: ['jsdoc', 'markdown', 'node-core'],
|
2020-11-29 22:27:08 +00:00
|
|
|
parser: '@babel/eslint-parser',
|
|
|
|
parserOptions: {
|
2021-08-28 13:58:56 +00:00
|
|
|
babelOptions: {
|
|
|
|
plugins: [
|
2023-10-14 03:52:38 +00:00
|
|
|
Module._findPath('@babel/plugin-syntax-import-attributes'),
|
2021-08-28 13:58:56 +00:00
|
|
|
],
|
|
|
|
},
|
2020-11-29 22:27:08 +00:00
|
|
|
requireConfigFile: false,
|
|
|
|
sourceType: 'script',
|
|
|
|
},
|
2018-02-04 19:38:18 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'*.mjs',
|
|
|
|
'test/es-module/test-esm-example-loader.js',
|
2023-09-15 19:18:13 +00:00
|
|
|
'test/es-module/test-esm-type-flag.js',
|
|
|
|
'test/es-module/test-esm-type-flag-alias.js',
|
2018-02-04 19:38:18 +00:00
|
|
|
],
|
|
|
|
parserOptions: { sourceType: 'module' },
|
|
|
|
},
|
2018-07-01 09:55:49 +00:00
|
|
|
{
|
|
|
|
files: ['**/*.md'],
|
2021-02-28 18:05:42 +00:00
|
|
|
processor: 'markdown/markdown',
|
|
|
|
},
|
|
|
|
{
|
2021-02-10 14:20:37 +00:00
|
|
|
files: ['**/*.md/*.cjs', '**/*.md/*.js'],
|
|
|
|
parserOptions: {
|
|
|
|
sourceType: 'script',
|
2022-12-18 16:39:39 +00:00
|
|
|
ecmaFeatures: { impliedStrict: true },
|
2021-02-10 14:20:37 +00:00
|
|
|
},
|
2018-07-01 09:55:49 +00:00
|
|
|
rules: { strict: 'off' },
|
|
|
|
},
|
2021-02-10 14:20:37 +00:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'**/*.md/*.mjs',
|
|
|
|
'doc/api/esm.md/*.js',
|
|
|
|
'doc/api/packages.md/*.js',
|
|
|
|
],
|
|
|
|
parserOptions: { sourceType: 'module' },
|
2021-06-01 13:10:32 +00:00
|
|
|
rules: { 'no-restricted-globals': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
name: '__filename',
|
|
|
|
message: 'Use import.meta.url instead',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: '__dirname',
|
|
|
|
message: 'Not available in ESM',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'exports',
|
|
|
|
message: 'Not available in ESM',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'module',
|
|
|
|
message: 'Not available in ESM',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'require',
|
|
|
|
message: 'Use import instead',
|
|
|
|
},
|
2021-06-15 17:09:29 +00:00
|
|
|
{
|
|
|
|
name: 'Buffer',
|
2022-12-18 16:39:39 +00:00
|
|
|
message: 'Import Buffer instead of using the global',
|
2021-06-15 17:09:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'process',
|
2022-12-18 16:39:39 +00:00
|
|
|
message: 'Import process instead of using the global',
|
2021-06-15 17:09:29 +00:00
|
|
|
},
|
2021-06-01 13:10:32 +00:00
|
|
|
] },
|
2021-02-10 14:20:37 +00:00
|
|
|
},
|
2023-09-15 19:18:13 +00:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'lib/internal/modules/**/*.js',
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'curly': 'error',
|
|
|
|
},
|
|
|
|
},
|
2023-07-29 13:22:16 +00:00
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'lib/internal/test_runner/**/*.js',
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'node-core/set-proto-to-null-in-object': 'error',
|
|
|
|
},
|
|
|
|
},
|
2018-02-04 19:38:18 +00:00
|
|
|
],
|
|
|
|
rules: {
|
2018-03-02 23:25:57 +00:00
|
|
|
// ESLint built-in rules
|
2020-05-28 14:03:53 +00:00
|
|
|
// https://eslint.org/docs/rules/
|
2018-03-02 23:25:57 +00:00
|
|
|
'accessor-pairs': 'error',
|
|
|
|
'array-callback-return': 'error',
|
2022-11-12 15:13:05 +00:00
|
|
|
'arrow-parens': 'error',
|
|
|
|
'arrow-spacing': 'error',
|
2019-05-08 18:45:10 +00:00
|
|
|
'block-scoped-var': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'block-spacing': 'error',
|
|
|
|
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
2018-12-03 16:15:45 +00:00
|
|
|
'capitalized-comments': ['error', 'always', {
|
|
|
|
line: {
|
2019-03-22 02:45:25 +00:00
|
|
|
// Ignore all lines that have less characters than 20 and all lines that
|
2018-12-03 16:15:45 +00:00
|
|
|
// start with something that looks like a variable name or code.
|
2022-11-12 14:48:52 +00:00
|
|
|
ignorePattern: '.{0,20}$|[a-z]+ ?[0-9A-Z_.(/=:[#-]|std|http|ssh|ftp',
|
2018-12-03 16:15:45 +00:00
|
|
|
ignoreInlineComments: true,
|
2019-01-27 16:58:16 +00:00
|
|
|
ignoreConsecutiveComments: true,
|
2018-12-03 16:15:45 +00:00
|
|
|
},
|
|
|
|
block: {
|
2019-01-27 16:58:16 +00:00
|
|
|
ignorePattern: '.*',
|
|
|
|
},
|
2018-12-03 16:15:45 +00:00
|
|
|
}],
|
2022-12-18 16:39:39 +00:00
|
|
|
'comma-dangle': ['error', 'always-multiline'],
|
2018-03-02 23:25:57 +00:00
|
|
|
'comma-spacing': 'error',
|
|
|
|
'comma-style': 'error',
|
|
|
|
'computed-property-spacing': 'error',
|
2020-02-28 23:34:59 +00:00
|
|
|
'default-case-last': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'dot-location': ['error', 'property'],
|
|
|
|
'dot-notation': 'error',
|
|
|
|
'eol-last': 'error',
|
2018-03-05 23:51:38 +00:00
|
|
|
'eqeqeq': ['error', 'smart'],
|
2018-03-02 23:25:57 +00:00
|
|
|
'func-call-spacing': 'error',
|
|
|
|
'func-name-matching': 'error',
|
|
|
|
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
|
2018-03-05 23:51:38 +00:00
|
|
|
'indent': ['error', 2, {
|
2018-03-02 23:25:57 +00:00
|
|
|
ArrayExpression: 'first',
|
|
|
|
CallExpression: { arguments: 'first' },
|
|
|
|
FunctionDeclaration: { parameters: 'first' },
|
|
|
|
FunctionExpression: { parameters: 'first' },
|
|
|
|
MemberExpression: 'off',
|
|
|
|
ObjectExpression: 'first',
|
|
|
|
SwitchCase: 1,
|
|
|
|
}],
|
2022-11-12 15:13:05 +00:00
|
|
|
'key-spacing': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'keyword-spacing': 'error',
|
2022-11-12 15:13:05 +00:00
|
|
|
'linebreak-style': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'max-len': ['error', {
|
2022-01-21 15:28:07 +00:00
|
|
|
code: 120,
|
2018-03-02 23:25:57 +00:00
|
|
|
ignorePattern: '^// Flags:',
|
|
|
|
ignoreRegExpLiterals: true,
|
2021-04-05 14:19:42 +00:00
|
|
|
ignoreTemplateLiterals: true,
|
2018-03-02 23:25:57 +00:00
|
|
|
ignoreUrls: true,
|
|
|
|
tabWidth: 2,
|
|
|
|
}],
|
|
|
|
'new-parens': 'error',
|
|
|
|
'no-confusing-arrow': 'error',
|
2022-01-09 19:38:04 +00:00
|
|
|
'no-constant-condition': ['error', { checkLoops: false }],
|
2019-11-22 19:23:42 +00:00
|
|
|
'no-constructor-return': 'error',
|
2018-07-08 04:32:23 +00:00
|
|
|
'no-duplicate-imports': 'error',
|
2022-11-12 15:13:05 +00:00
|
|
|
'no-else-return': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-extra-parens': ['error', 'functions'],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-lonely-if': 'error',
|
|
|
|
'no-mixed-requires': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
|
|
|
|
'no-new-require': 'error',
|
|
|
|
'no-path-concat': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-proto': 'error',
|
2019-05-12 00:58:50 +00:00
|
|
|
'no-redeclare': ['error', { 'builtinGlobals': false }],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-restricted-modules': ['error', 'sys'],
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-restricted-properties': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
object: 'assert',
|
|
|
|
property: 'deepEqual',
|
2018-09-14 23:05:11 +00:00
|
|
|
message: 'Use `assert.deepStrictEqual()`.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
object: 'assert',
|
|
|
|
property: 'notDeepEqual',
|
2018-09-14 23:05:11 +00:00
|
|
|
message: 'Use `assert.notDeepStrictEqual()`.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
object: 'assert',
|
|
|
|
property: 'equal',
|
2018-09-14 23:05:11 +00:00
|
|
|
message: 'Use `assert.strictEqual()` rather than `assert.equal()`.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
object: 'assert',
|
|
|
|
property: 'notEqual',
|
2018-09-14 23:05:11 +00:00
|
|
|
message: 'Use `assert.notStrictEqual()` rather than `assert.notEqual()`.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
property: '__defineGetter__',
|
|
|
|
message: '__defineGetter__ is deprecated.',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
property: '__defineSetter__',
|
|
|
|
message: '__defineSetter__ is deprecated.',
|
2019-01-27 16:58:16 +00:00
|
|
|
},
|
2018-02-04 19:38:18 +00:00
|
|
|
],
|
2019-03-10 14:37:51 +00:00
|
|
|
// If this list is modified, please copy changes that should apply to ./lib
|
|
|
|
// as well to lib/.eslintrc.yaml.
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-restricted-syntax': [
|
|
|
|
'error',
|
|
|
|
{
|
2018-06-15 03:43:49 +00:00
|
|
|
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
|
2018-09-14 23:05:11 +00:00
|
|
|
message: '`setTimeout()` must be invoked with at least two arguments.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
2018-06-15 03:43:49 +00:00
|
|
|
selector: "CallExpression[callee.name='setInterval'][arguments.length<2]",
|
2018-09-14 23:05:11 +00:00
|
|
|
message: '`setInterval()` must be invoked with at least two arguments.',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
selector: 'ThrowStatement > CallExpression[callee.name=/Error$/]',
|
2018-09-14 23:05:11 +00:00
|
|
|
message: 'Use `new` keyword when throwing an `Error`.',
|
2019-01-27 16:58:16 +00:00
|
|
|
},
|
2020-01-06 03:49:27 +00:00
|
|
|
{
|
|
|
|
selector: "CallExpression[callee.name='isNaN']",
|
|
|
|
message: 'Use Number.isNaN() instead of the global isNaN() function.',
|
|
|
|
},
|
2022-12-16 19:55:42 +00:00
|
|
|
{
|
|
|
|
// TODO(@panva): move this to no-restricted-properties
|
|
|
|
// when https://github.com/eslint/eslint/issues/16412 is fixed
|
|
|
|
selector: "Identifier[name='webcrypto']",
|
|
|
|
message: 'Use `globalThis.crypto`.',
|
|
|
|
},
|
2018-02-04 19:38:18 +00:00
|
|
|
],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-self-compare': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-tabs': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-template-curly-in-string': 'error',
|
|
|
|
'no-throw-literal': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'no-trailing-spaces': 'error',
|
2018-04-11 01:47:27 +00:00
|
|
|
'no-undef': ['error', { typeof: true }],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-undef-init': 'error',
|
2020-11-24 13:11:20 +00:00
|
|
|
'no-unused-expressions': ['error', { allowShortCircuit: true }],
|
2018-11-04 17:42:27 +00:00
|
|
|
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-use-before-define': ['error', {
|
|
|
|
classes: true,
|
|
|
|
functions: false,
|
|
|
|
variables: false,
|
|
|
|
}],
|
|
|
|
'no-useless-call': 'error',
|
|
|
|
'no-useless-concat': 'error',
|
2018-12-15 03:22:40 +00:00
|
|
|
'no-useless-constructor': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-useless-return': 'error',
|
2022-04-02 04:18:40 +00:00
|
|
|
'no-var': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'no-void': 'error',
|
2018-02-17 02:49:26 +00:00
|
|
|
'no-whitespace-before-property': 'error',
|
2021-01-23 19:47:25 +00:00
|
|
|
'object-curly-newline': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'object-curly-spacing': ['error', 'always'],
|
2018-02-17 02:51:11 +00:00
|
|
|
'one-var': ['error', { initialized: 'never' }],
|
2018-02-04 19:38:18 +00:00
|
|
|
'one-var-declaration-per-line': 'error',
|
|
|
|
'operator-linebreak': ['error', 'after'],
|
2019-11-28 06:57:10 +00:00
|
|
|
'padding-line-between-statements': [
|
|
|
|
'error',
|
|
|
|
{ blankLine: 'always', prev: 'function', next: 'function' },
|
|
|
|
],
|
2018-03-02 23:25:57 +00:00
|
|
|
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
|
2021-12-21 18:10:28 +00:00
|
|
|
'prefer-object-has-own': 'error',
|
2018-03-05 23:51:38 +00:00
|
|
|
'quotes': ['error', 'single', { avoidEscape: true }],
|
|
|
|
'quote-props': ['error', 'consistent'],
|
2018-03-02 23:25:57 +00:00
|
|
|
'rest-spread-spacing': 'error',
|
2018-03-05 23:51:38 +00:00
|
|
|
'semi': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'semi-spacing': 'error',
|
|
|
|
'space-before-blocks': ['error', 'always'],
|
|
|
|
'space-before-function-paren': ['error', {
|
|
|
|
anonymous: 'never',
|
|
|
|
named: 'never',
|
|
|
|
asyncArrow: 'always',
|
|
|
|
}],
|
2022-11-12 15:13:05 +00:00
|
|
|
'space-in-parens': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
'space-infix-ops': 'error',
|
|
|
|
'space-unary-ops': 'error',
|
2018-03-25 14:27:38 +00:00
|
|
|
'spaced-comment': ['error', 'always', {
|
|
|
|
'block': { 'balanced': true },
|
2019-01-27 16:58:16 +00:00
|
|
|
'exceptions': ['-'],
|
2018-03-25 14:27:38 +00:00
|
|
|
}],
|
2018-03-05 23:51:38 +00:00
|
|
|
'strict': ['error', 'global'],
|
2018-02-04 19:38:18 +00:00
|
|
|
'symbol-description': 'error',
|
|
|
|
'template-curly-spacing': 'error',
|
2018-03-02 23:25:57 +00:00
|
|
|
'unicode-bom': 'error',
|
2021-03-26 06:17:23 +00:00
|
|
|
'valid-typeof': ['error', { requireStringLiterals: true }],
|
2018-02-04 19:38:18 +00:00
|
|
|
|
2022-01-09 22:00:08 +00:00
|
|
|
// ESLint recommended rules that we disable
|
|
|
|
'no-inner-declarations': 'off',
|
|
|
|
|
|
|
|
// JSDoc recommended rules that we disable
|
2021-12-02 07:41:26 +00:00
|
|
|
'jsdoc/require-jsdoc': 'off',
|
|
|
|
'jsdoc/require-param-description': 'off',
|
|
|
|
'jsdoc/newline-after-description': 'off',
|
|
|
|
'jsdoc/require-returns-description': 'off',
|
|
|
|
'jsdoc/valid-types': 'off',
|
2023-06-04 05:40:48 +00:00
|
|
|
'jsdoc/no-defaults': 'off',
|
2021-12-02 07:41:26 +00:00
|
|
|
'jsdoc/no-undefined-types': 'off',
|
|
|
|
'jsdoc/require-param': 'off',
|
|
|
|
'jsdoc/check-tag-names': 'off',
|
|
|
|
'jsdoc/require-returns': 'off',
|
2021-11-30 00:41:31 +00:00
|
|
|
|
2018-03-02 23:25:57 +00:00
|
|
|
// Custom rules from eslint-plugin-node-core
|
2018-02-04 19:38:18 +00:00
|
|
|
'node-core/no-unescaped-regexp-dot': 'error',
|
2018-07-08 04:32:23 +00:00
|
|
|
'node-core/no-duplicate-requires': 'error',
|
2023-01-10 05:38:36 +00:00
|
|
|
'node-core/prefer-proto': 'error',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
globals: {
|
2022-04-04 08:36:54 +00:00
|
|
|
ByteLengthQueuingStrategy: 'readable',
|
|
|
|
CompressionStream: 'readable',
|
|
|
|
CountQueuingStrategy: 'readable',
|
2022-07-23 13:39:08 +00:00
|
|
|
CustomEvent: 'readable',
|
2022-02-22 22:25:59 +00:00
|
|
|
crypto: 'readable',
|
2022-02-14 16:14:49 +00:00
|
|
|
Crypto: 'readable',
|
|
|
|
CryptoKey: 'readable',
|
2022-04-04 08:36:54 +00:00
|
|
|
DecompressionStream: 'readable',
|
2022-02-18 01:38:39 +00:00
|
|
|
fetch: 'readable',
|
2022-02-18 15:46:32 +00:00
|
|
|
FormData: 'readable',
|
2023-07-04 22:55:34 +00:00
|
|
|
navigator: 'readable',
|
2022-04-04 08:36:54 +00:00
|
|
|
ReadableStream: 'readable',
|
|
|
|
ReadableStreamDefaultReader: 'readable',
|
|
|
|
ReadableStreamBYOBReader: 'readable',
|
|
|
|
ReadableStreamBYOBRequest: 'readable',
|
|
|
|
ReadableByteStreamController: 'readable',
|
|
|
|
ReadableStreamDefaultController: 'readable',
|
2022-02-18 01:38:39 +00:00
|
|
|
Response: 'readable',
|
2022-04-04 08:36:54 +00:00
|
|
|
TextDecoderStream: 'readable',
|
|
|
|
TextEncoderStream: 'readable',
|
|
|
|
TransformStream: 'readable',
|
|
|
|
TransformStreamDefaultController: 'readable',
|
2022-05-02 16:46:31 +00:00
|
|
|
ShadowRealm: 'readable',
|
2022-02-14 16:14:49 +00:00
|
|
|
SubtleCrypto: 'readable',
|
2022-04-04 08:36:54 +00:00
|
|
|
WritableStream: 'readable',
|
|
|
|
WritableStreamDefaultWriter: 'readable',
|
|
|
|
WritableStreamDefaultController: 'readable',
|
2023-09-28 13:01:30 +00:00
|
|
|
WebSocket: 'readable',
|
2018-02-04 19:38:18 +00:00
|
|
|
},
|
|
|
|
};
|