Skip to content

Commit

Permalink
docs ~ fix updated ESLint complaints (eslint-comments/no-unused-disable)
Browse files Browse the repository at this point in the history
  • Loading branch information
rivy committed Feb 6, 2023
1 parent 8afe74a commit 11868cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions test/dist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const vNodeJSMajor = +vNodeJS[0];

const packagePath = '../package.json';

// eslint-disable-next-line security/detect-non-literal-require , security-node/detect-non-literal-require-calls
// eslint-disable-next-line security-node/detect-non-literal-require-calls
const pkg = require(packagePath);

const packageCJSPath = path.resolve(__dirname, packagePath, '..', pkg.exports['.'].require);
Expand Down Expand Up @@ -143,7 +143,6 @@ if (!process.env.npm_config_test_dist) {
test('package version has matching Git/VCS version tag', (t) => {
t.log({ version: pkg.version });

// eslint-disable-next-line security/detect-child-process
const result = require('child_process').spawnSync('git rev-list refs/tags/v' + pkg.version, {
shell: true,
encoding: 'utf-8',
Expand Down
7 changes: 2 additions & 5 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const spawn = require('cross-spawn');
const modulePath = '../build/lab/src/mod.cjs.js'; // ? change to package.main?
const packagePath = '../package.json';

// eslint-disable-next-line security/detect-non-literal-require , security-node/detect-non-literal-require-calls
// eslint-disable-next-line security-node/detect-non-literal-require-calls
const mod = require(modulePath);
// eslint-disable-next-line security/detect-non-literal-require , security-node/detect-non-literal-require-calls
// eslint-disable-next-line security-node/detect-non-literal-require-calls
const pkg = require(packagePath);

const haveDeno = commandExists.sync('deno');
Expand Down Expand Up @@ -109,7 +109,6 @@ if (!process.env.npm_config_test_dist) {
const egDirPath = 'eg';
const extensionRxs = [/.*[.]deno[.]ts$/i];

// eslint-disable-next-line security/detect-non-literal-fs-filename
const files = fs.readdirSync(egDirPath);

files
Expand Down Expand Up @@ -144,7 +143,6 @@ if (!process.env.npm_config_test_dist) {
const egDirPath = 'eg';
const extensions = ['.js', '.cjs', '.mjs'];

// eslint-disable-next-line security/detect-non-literal-fs-filename
const files = fs.readdirSync(egDirPath);

files
Expand Down Expand Up @@ -180,7 +178,6 @@ if (!process.env.npm_config_test_dist) {
const egDirPath = 'eg';
const extensions = ['.js', '.cjs', '.mjs', '.ts'];

// eslint-disable-next-line security/detect-non-literal-fs-filename
const files = fs.readdirSync(egDirPath);

files
Expand Down

0 comments on commit 11868cf

Please sign in to comment.