Skip to content

Commit

Permalink
docs ~ fix ESLint complaints in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Jan 26, 2021
1 parent 5411de2 commit c9873b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eg/show-xdg-paths-detailed.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
/* eslint-env es6, node */
'use strict';

const xdg = require('../src/lib');

/* eslint-disable no-console , security/detect-object-injection, security-node/detect-crlf */

console.log('xdg.name:', xdg.name);
console.log({ xdg });

Object.keys(xdg).forEach((key) => {
console.log(key, '=', xdg[key]());
});

/* eslint-enable no-console , security/detect-object-injection, security-node/detect-crlf */
5 changes: 5 additions & 0 deletions eg/show-xdg-paths.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/* eslint-env es6, node */
'use strict';

const xdg = require('../src/lib');

/* eslint-disable no-console , security/detect-object-injection, security-node/detect-crlf */

Object.keys(xdg).forEach((key) => {
console.log(key, '=', xdg[key]());
});

/* eslint-enable no-console , security/detect-object-injection, security-node/detect-crlf */

0 comments on commit c9873b5

Please sign in to comment.