linter-bundle 3.8.0 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.8.0...HEAD)
9
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.9.0...HEAD)
10
+
11
+ ## [3.9.0] - 2023-08-28
12
+
13
+ ### Changed
14
+
15
+ - [general] Use users default shell for linting sub-processes
16
+
17
+ [Show all code changes](https://github.com/jens-duttke/linter-bundle/compare/v3.8.0...v3.9.0)
10
18
 
11
19
  ## [3.8.0] - 2023-08-28
12
20
 
package/eslint/index.js CHANGED
@@ -5,8 +5,8 @@
5
5
  /* eslint-disable max-lines -- The rules can be easier managed if they are all in one file */
6
6
  /* eslint-disable n/no-process-env -- `process.env` is required to inject configuration adjustments */
7
7
 
8
- const fs = require('fs');
9
- const path = require('path');
8
+ const fs = require('node:fs');
9
+ const path = require('node:path');
10
10
 
11
11
  const ensureType = require('../helper/ensure-type');
12
12
 
@@ -2,7 +2,7 @@
2
2
  * @file ESLint rule which ensures that only files which match given glob patterns are part of your project.
3
3
  */
4
4
 
5
- const path = require('path');
5
+ const path = require('node:path');
6
6
 
7
7
  const micromatch = require('micromatch');
8
8
 
@@ -5,8 +5,8 @@
5
5
  * @see https://classic.yarnpkg.com/en/docs/selective-version-resolutions/
6
6
  */
7
7
 
8
- const fs = require('fs');
9
- const path = require('path');
8
+ const fs = require('node:fs');
9
+ const path = require('node:path');
10
10
 
11
11
  /** @typedef {{ name: string; configuredVersion: string; expectedVersion: string; }} Dependency */
12
12
 
@@ -2,8 +2,8 @@
2
2
  * @file Returns the path to the Stylelint CLI script.
3
3
  */
4
4
 
5
- const fs = require('fs');
6
- const path = require('path');
5
+ const fs = require('node:fs');
6
+ const path = require('node:path');
7
7
 
8
8
  /**
9
9
  * Returns if the project is using npm or yarn.
@@ -2,8 +2,8 @@
2
2
  * @file Check if the project is using npm or yarn by checking the existence of a `package-lock.json` or a `yarn.lock`.
3
3
  */
4
4
 
5
- const fs = require('fs');
6
- const path = require('path');
5
+ const fs = require('node:fs');
6
+ const path = require('node:path');
7
7
 
8
8
  /**
9
9
  * Returns if the project is using npm or yarn.
@@ -4,7 +4,8 @@
4
4
 
5
5
  /** @typedef {{ code: number; stdout: string; stderr: string; runtime: number; }} ProcessResult */
6
6
 
7
- const childProcess = require('child_process');
7
+ const childProcess = require('node:child_process');
8
+ const os = require('node:os');
8
9
 
9
10
  /**
10
11
  * Executes a process asynchronously.
@@ -24,7 +25,7 @@ async function runProcess (command, options) {
24
25
  /** @type {string[]} */
25
26
  const stderr = [];
26
27
 
27
- const lintingProcess = childProcess.exec(command, options);
28
+ const lintingProcess = childProcess.exec(command, { ...options, shell: os.userInfo().shell });
28
29
 
29
30
  lintingProcess.stdout?.on('data', (/** @type {string} */data) => {
30
31
  stdout.push(data);
@@ -5,8 +5,8 @@
5
5
  * @see https://classic.yarnpkg.com/en/docs/selective-version-resolutions/
6
6
  */
7
7
 
8
- const fs = require('fs');
9
- const path = require('path');
8
+ const fs = require('node:fs');
9
+ const path = require('node:path');
10
10
 
11
11
  /** @typedef {{ name: string; configuredVersion: string; expectedVersion: string; }} Dependency */
12
12
 
package/lint.js CHANGED
@@ -4,8 +4,8 @@
4
4
  * @file Entry point of the linter-bundle.
5
5
  */
6
6
 
7
- const path = require('path');
8
- const tty = require('tty');
7
+ const path = require('node:path');
8
+ const tty = require('node:tty');
9
9
 
10
10
  const micromatch = require('micromatch');
11
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linter-bundle",
3
- "version": "3.8.0",
3
+ "version": "3.9.0",
4
4
  "description": "Ready-to use bundle of linting tools, containing configurations for ESLint, stylelint and markdownlint.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -4,7 +4,7 @@
4
4
 
5
5
  /* eslint-disable max-lines -- The rules can be easier managed if they are all in one file */
6
6
 
7
- const path = require('path');
7
+ const path = require('node:path');
8
8
 
9
9
  module.exports = {
10
10
  reportNeedlessDisables: true,