doc: add lint rule to enforce trailing commas

PR-URL: https://github.com/nodejs/node/pull/45471
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
Antoine du Hamel
2022-11-17 08:19:12 -05:00
committed by GitHub
parent bd462ad81b
commit c6dabe3083
45 changed files with 383 additions and 382 deletions

View File

@@ -236,7 +236,7 @@ const fs = require('node:fs');
const options = {
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
};
https.createServer(options, (req, res) => {
@@ -253,7 +253,7 @@ const fs = require('node:fs');
const options = {
pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
passphrase: 'sample'
passphrase: 'sample',
};
https.createServer(options, (req, res) => {
@@ -380,7 +380,7 @@ const options = {
hostname: 'encrypted.google.com',
port: 443,
path: '/',
method: 'GET'
method: 'GET',
};
const req = https.request(options, (res) => {
@@ -407,7 +407,7 @@ const options = {
path: '/',
method: 'GET',
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
};
options.agent = new https.Agent(options);
@@ -426,7 +426,7 @@ const options = {
method: 'GET',
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
agent: false
agent: false,
};
const req = https.request(options, (res) => {