mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05: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:
1 parent
fac1f1bcd6
commit
009adc7e21
45 files changed
+382
-381
No files matched your search
+5
-5
@@ -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) => {
|
||||
@@ -375,7 +375,7 @@ const options = {
|
||||
hostname: 'encrypted.google.com',
|
||||
port: 443,
|
||||
path: '/',
|
||||
method: 'GET'
|
||||
method: 'GET',
|
||||
};
|
||||
|
||||
const req = https.request(options, (res) => {
|
||||
@@ -402,7 +402,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);
|
||||
|
||||
@@ -421,7 +421,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