mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
1f85ea979c
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>
20 lines
386 B
JavaScript
20 lines
386 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const fs = require('fs');
|
|
|
|
{
|
|
const s = fs.createReadStream(__filename);
|
|
|
|
s.close(common.mustCall());
|
|
s.close(common.mustCall());
|
|
}
|
|
|
|
{
|
|
const s = fs.createReadStream(__filename);
|
|
|
|
// This is a private API, but it is worth testing. close calls this
|
|
s.destroy(null, common.mustCall());
|
|
s.destroy(null, common.mustCall());
|
|
}
|