mirror of
https://github.com/nodejs/node.git
synced 2025-08-16 06:08:50 +02:00
tools: capitalize sentences
This adds the `capitalized-comments` eslint rule to verify that actual sentences use capital letters as starting letters. It ignores special words and all lines below 62 characters. PR-URL: https://github.com/nodejs/node/pull/24808 Reviewed-By: Sam Ruby <rubys@intertwingly.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
This commit is contained in:
parent
cc8250fab8
commit
1f85ea979c
155 changed files with 256 additions and 244 deletions
|
@ -29,13 +29,13 @@ assert.strictEqual(
|
|||
async_hooks.executionAsyncId()
|
||||
);
|
||||
|
||||
// create first custom event 'alcazares' with triggerAsyncId derived
|
||||
// Create first custom event 'alcazares' with triggerAsyncId derived
|
||||
// from async_hooks executionAsyncId
|
||||
const alcaTriggerId = async_hooks.executionAsyncId();
|
||||
const alcaEvent = new AsyncResource('alcazares', alcaTriggerId);
|
||||
const alcazaresActivities = hooks.activitiesOfTypes([ 'alcazares' ]);
|
||||
|
||||
// alcazares event was constructed and thus only has an `init` call
|
||||
// Alcazares event was constructed and thus only has an `init` call
|
||||
assert.strictEqual(alcazaresActivities.length, 1);
|
||||
const alcazares = alcazaresActivities[0];
|
||||
assert.strictEqual(alcazares.type, 'alcazares');
|
||||
|
@ -83,7 +83,7 @@ function tick1() {
|
|||
checkInvocations(poblado, { init: 1, before: 1, after: 1 },
|
||||
'poblado emitted after');
|
||||
|
||||
// after we disable the hooks we shouldn't receive any events anymore
|
||||
// After we disable the hooks we shouldn't receive any events anymore
|
||||
hooks.disable();
|
||||
alcaEvent.emitDestroy();
|
||||
tick(1, common.mustCall(tick2));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue