Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ import nodeCore from './tools/eslint/eslint-plugin-node-core.js';
const { globalIgnores } = await importEslintTool('eslint/config');
const { default: js } = await importEslintTool('@eslint/js');
const { default: babelEslintParser } = await importEslintTool('@babel/eslint-parser');
const babelPluginProposalExplicitResourceManagement =
resolveEslintTool('@babel/plugin-proposal-explicit-resource-management');
const babelPluginSyntaxImportAttributes = resolveEslintTool('@babel/plugin-syntax-import-attributes');
const babelPluginSyntaxImportSource = resolveEslintTool('@babel/plugin-syntax-import-source');
const { default: jsdoc } = await importEslintTool('eslint-plugin-jsdoc');
const { default: markdown } = await importEslintTool('eslint-plugin-markdown');
const { default: markdown } = await importEslintTool('@eslint/markdown');
const { default: stylisticJs } = await importEslintTool('@stylistic/eslint-plugin');

nodeCore.RULES_DIR = fileURLToPath(new URL('./tools/eslint-rules', import.meta.url));
Expand Down Expand Up @@ -106,7 +104,6 @@ export default [
babelOptions: {
parserOpts: { createImportExpressions: true },
plugins: [
babelPluginProposalExplicitResourceManagement,
babelPluginSyntaxImportAttributes,
babelPluginSyntaxImportSource,
],
Expand Down Expand Up @@ -277,6 +274,8 @@ export default [
wrapIndent: ' ',
}],
'jsdoc/check-alignment': 'error',
'jsdoc/reject-any-type': 'off',
'jsdoc/reject-function-type': 'off',

// Stylistic rules.
'@stylistic/js/arrow-parens': 'error',
Expand All @@ -298,6 +297,7 @@ export default [
MemberExpression: 'off',
ObjectExpression: 'first',
SwitchCase: 1,
assignmentOperator: 'off',
}],
'@stylistic/js/key-spacing': 'error',
'@stylistic/js/keyword-spacing': 'error',
Expand Down Expand Up @@ -326,7 +326,7 @@ export default [
'error',
{ blankLine: 'always', prev: 'function', next: 'function' },
],
'@stylistic/js/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'@stylistic/js/quotes': ['error', 'single', { avoidEscape: true, allowTemplateLiterals: 'always' }],
'@stylistic/js/quote-props': ['error', 'consistent'],
'@stylistic/js/rest-spread-spacing': 'error',
'@stylistic/js/semi': 'error',
Expand Down
4 changes: 2 additions & 2 deletions lib/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ function lazyLoadRimraf() {
/**
* Asynchronously removes a directory.
* @param {string | Buffer | URL} path
* @param {{}} [options]
* @param {object} [options]
* @param {(err?: Error) => any} callback
* @returns {void}
*/
Expand Down Expand Up @@ -1148,7 +1148,7 @@ function rmdir(path, options, callback) {
/**
* Synchronously removes a directory.
* @param {string | Buffer | URL} path
* @param {{}} [options]
* @param {object} [options]
* @returns {void}
*/
function rmdirSync(path, options) {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/quic/quic.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ class QuicSession {
#onstream = undefined;
/** @type {OnDatagramCallback|undefined} */
#ondatagram = undefined;
/** @type {{}} */
/** @type {object} */
#sessionticket = undefined;

static {
Expand Down Expand Up @@ -1846,7 +1846,7 @@ class QuicEndpoint {

/**
* Initiates a session with a remote endpoint.
* @param {{}} address
* @param {object} address
* @param {SessionOptions} [options]
* @returns {QuicSession}
*/
Expand Down
3 changes: 1 addition & 2 deletions lib/internal/webstreams/adapters.js
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,7 @@ function newStreamDuplexFromReadableWritablePair(pair = kEmptyObject, options =

/**
* @typedef {import('./queuingstrategies').QueuingStrategy} QueuingStrategy
* @typedef {{}} StreamBase
* @param {StreamBase} streamBase
* @param {object} streamBase
* @param {QueuingStrategy} strategy
* @returns {WritableStream}
*/
Expand Down
2 changes: 1 addition & 1 deletion test/common/heap.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function getHeapSnapshotOptionTests() {
}

/**
* Similar to @see {validateByRetainingPathFromNodes} but creates the snapshot from scratch.
* Similar to {@link validateByRetainingPathFromNodes} but creates the snapshot from scratch.
* @returns {object[]}
*/
function validateByRetainingPath(...args) {
Expand Down
Loading
Loading