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 +9 -1
- package/eslint/index.js +2 -2
- package/eslint/rules/restricted-filenames.js +1 -1
- package/helper/find-missing-overrides.js +2 -2
- package/helper/get-stylelint-path.js +2 -2
- package/helper/is-npm-or-yarn.js +2 -2
- package/helper/run-process.js +3 -2
- package/helper/validate-package-overrides.js +2 -2
- package/lint.js +2 -2
- package/package.json +1 -1
- package/stylelint/index.js +1 -1
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.
|
|
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
|
|
|
@@ -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/helper/is-npm-or-yarn.js
CHANGED
|
@@ -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.
|
package/helper/run-process.js
CHANGED
|
@@ -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
package/package.json
CHANGED