mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user