Skip to content

Commit 64b977d

Browse files
chore: upgrade dependencies to the latest version (#337)
* chore: update deps * chore: update deps
1 parent 21591c4 commit 64b977d

13 files changed

+3067
-2383
lines changed

package-lock.json

Lines changed: 3018 additions & 2334 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -51,46 +51,46 @@
5151
},
5252
"dependencies": {
5353
"globby": "^11.1.0",
54-
"jest-worker": "^29.5.0",
54+
"jest-worker": "^29.6.2",
5555
"micromatch": "^4.0.5",
5656
"normalize-path": "^3.0.0",
5757
"schema-utils": "^4.2.0"
5858
},
5959
"devDependencies": {
60-
"@babel/cli": "^7.22.5",
61-
"@babel/core": "^7.22.5",
62-
"@babel/preset-env": "^7.22.5",
63-
"@commitlint/cli": "^17.6.6",
64-
"@commitlint/config-conventional": "^17.6.5",
60+
"@babel/cli": "^7.22.10",
61+
"@babel/core": "^7.22.10",
62+
"@babel/preset-env": "^7.22.10",
63+
"@commitlint/cli": "^17.7.1",
64+
"@commitlint/config-conventional": "^17.7.0",
6565
"@types/file-entry-cache": "^5.0.2",
66-
"@types/fs-extra": "^9.0.13",
66+
"@types/fs-extra": "^11.0.1",
6767
"@types/micromatch": "^4.0.2",
68-
"@types/node": "^18.16.3",
68+
"@types/node": "^20.5.1",
6969
"@types/normalize-path": "^3.0.0",
7070
"@types/webpack": "^5.28.1",
7171
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
7272
"babel-eslint": "^10.1.0",
73-
"babel-jest": "^29.5.0",
73+
"babel-jest": "^29.6.2",
7474
"chokidar": "^3.5.3",
7575
"cross-env": "^7.0.3",
76-
"cspell": "^6.31.1",
76+
"cspell": "^7.0.0",
7777
"del": "^6.1.1",
7878
"del-cli": "^4.0.1",
79-
"eslint": "^8.44.0",
80-
"eslint-config-prettier": "^8.8.0",
81-
"eslint-plugin-import": "^2.27.5",
79+
"eslint": "^8.47.0",
80+
"eslint-config-prettier": "^9.0.0",
81+
"eslint-plugin-import": "^2.28.1",
8282
"file-loader": "^6.2.0",
83-
"fs-extra": "^10.1.0",
83+
"fs-extra": "^11.1.1",
8484
"husky": "^8.0.3",
85-
"jest": "^29.5.0",
86-
"lint-staged": "^13.2.3",
85+
"jest": "^29.6.2",
86+
"lint-staged": "^14.0.0",
8787
"npm-run-all": "^4.1.5",
88-
"postcss-scss": "^4.0.6",
89-
"prettier": "^2.8.8",
88+
"postcss-scss": "^4.0.7",
89+
"prettier": "^3.0.2",
9090
"standard-version": "^9.5.0",
91-
"stylelint": "^15.9.0",
91+
"stylelint": "^15.10.3",
9292
"typescript": "^5.1.6",
93-
"webpack": "^5.88.1"
93+
"webpack": "^5.88.2"
9494
},
9595
"keywords": [
9696
"stylelint",

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class StylelintWebpackPlugin {
5757
// execute the linter on the build
5858
if (!this.options.lintDirtyModulesOnly) {
5959
compiler.hooks.run.tapPromise(this.key, (c) =>
60-
this.run(c, options, wanted, exclude)
60+
this.run(c, options, wanted, exclude),
6161
);
6262
}
6363

@@ -109,7 +109,7 @@ class StylelintWebpackPlugin {
109109
({ stylelint, lint, isPathIgnored, report, threads } = linter(
110110
this.key,
111111
options,
112-
compilation
112+
compilation,
113113
));
114114
} catch (e) {
115115
compilation.errors.push(e);
@@ -125,7 +125,7 @@ class StylelintWebpackPlugin {
125125
? Array.from(compiler.modifiedFiles).filter(
126126
(file) =>
127127
isMatch(file, wanted, { dot: true }) &&
128-
!isMatch(file, exclude, { dot: true })
128+
!isMatch(file, exclude, { dot: true }),
129129
)
130130
: globby.sync(wanted, { dot: true, ignore: exclude })
131131
).map(async (file) => {
@@ -134,7 +134,7 @@ class StylelintWebpackPlugin {
134134
} catch (e) {
135135
return file;
136136
}
137-
})
137+
}),
138138
)
139139
).filter((file) => file !== false);
140140

src/linter.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function linter(key, options, compilation) {
5252
try {
5353
({ stylelint, isPathIgnored, lintFiles, cleanup, threads } = getStylelint(
5454
key,
55-
options
55+
options,
5656
));
5757
} catch (e) {
5858
throw new StylelintError(e.message);
@@ -78,15 +78,15 @@ function linter(key, options, compilation) {
7878
// @ts-ignore
7979
compilation.errors.push(new StylelintError(e.message));
8080
return [];
81-
})
81+
}),
8282
);
8383
}
8484

8585
async function report() {
8686
// Filter out ignored files.
8787
let results = removeIgnoredWarnings(
8888
// Get the current results, resetting the rawResults to empty
89-
await flatten(rawResults.splice(0, rawResults.length))
89+
await flatten(rawResults.splice(0, rawResults.length)),
9090
);
9191

9292
await cleanup();
@@ -118,7 +118,7 @@ function linter(key, options, compilation) {
118118
const { errors, warnings } = formatResults(
119119
formatter,
120120
parseResults(options, results),
121-
returnValue
121+
returnValue,
122122
);
123123

124124
return {
@@ -211,7 +211,7 @@ function parseResults(options, results) {
211211

212212
results.forEach((file) => {
213213
const fileErrors = file.warnings.filter(
214-
(message) => options.emitError && message.severity === 'error'
214+
(message) => options.emitError && message.severity === 'error',
215215
);
216216

217217
if (fileErrors.length > 0) {
@@ -222,7 +222,7 @@ function parseResults(options, results) {
222222
}
223223

224224
const fileWarnings = file.warnings.filter(
225-
(message) => options.emitWarning && message.severity === 'warning'
225+
(message) => options.emitWarning && message.severity === 'warning',
226226
);
227227

228228
if (fileWarnings.length > 0) {

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function arrify(value) {
5353
*/
5454
function parseFiles(files, context) {
5555
return arrify(files).map((/** @type {string} */ file) =>
56-
normalizePath(resolve(context, file))
56+
normalizePath(resolve(context, file)),
5757
);
5858
}
5959

@@ -79,7 +79,7 @@ function parseFoldersToGlobs(patterns, extensions = []) {
7979
/[/\\]*?$/u,
8080
`/**${
8181
extensionsGlob ? `/*.${prefix + extensionsGlob + postfix}` : ''
82-
}`
82+
}`,
8383
);
8484
}
8585
} catch (_) {

test/multiple-instances.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('multiple instances', () => {
1212
new StylelintPlugin({ exclude: 'error.scss' }),
1313
new StylelintPlugin({ exclude: 'error.scss' }),
1414
],
15-
}
15+
},
1616
);
1717

1818
compiler.run((err, stats) => {
@@ -32,7 +32,7 @@ describe('multiple instances', () => {
3232
new StylelintPlugin({ exclude: 'good.scss' }),
3333
new StylelintPlugin({ exclude: 'error.scss' }),
3434
],
35-
}
35+
},
3636
);
3737

3838
compiler.run((err, stats) => {
@@ -52,7 +52,7 @@ describe('multiple instances', () => {
5252
new StylelintPlugin({ exclude: 'error.scss' }),
5353
new StylelintPlugin({ exclude: 'good.scss' }),
5454
],
55-
}
55+
},
5656
);
5757

5858
compiler.run((err, stats) => {

test/threads.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ describe('Threading', () => {
3838
try {
3939
const [good, bad] = await Promise.all([
4040
threaded.lintFiles(
41-
normalizePath(join(__dirname, 'fixtures/good/test.scss'))
41+
normalizePath(join(__dirname, 'fixtures/good/test.scss')),
4242
),
4343
threaded.lintFiles(
44-
normalizePath(join(__dirname, 'fixtures/error/test.scss'))
44+
normalizePath(join(__dirname, 'fixtures/error/test.scss')),
4545
),
4646
]);
4747
expect(good[0].errored).toBe(false);

test/utils.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ test('parseFiles should return relative files from context', () => {
1616
expect(
1717
parseFiles(
1818
['**/*', '../package-a/src/**/', '../package-b/src/**/'],
19-
'main/src'
20-
)
19+
'main/src',
20+
),
2121
).toEqual(
2222
expect.arrayContaining([
2323
expect.stringContaining('main/src/**/*'),
2424
expect.stringContaining('main/package-a/src/**'),
2525
expect.stringContaining('main/package-b/src/**'),
26-
])
26+
]),
2727
);
2828
});
2929

@@ -45,8 +45,8 @@ test('parseFoldersToGlobs should return globs for folders', () => {
4545
expect(
4646
parseFoldersToGlobs(
4747
[withoutSlash, withSlash, '/some/file.scss'],
48-
['scss', 'css', 'sass']
49-
)
48+
['scss', 'css', 'sass'],
49+
),
5050
).toMatchInlineSnapshot(`
5151
[
5252
"/path/to/code/**/*.{scss,css,sass}",

types/getStylelint.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export = getStylelint;
66
*/
77
declare function getStylelint(
88
key: string | undefined,
9-
{ threads, ...options }: Options
9+
{ threads, ...options }: Options,
1010
): Linter;
1111
declare namespace getStylelint {
1212
export {
@@ -45,7 +45,7 @@ type Formatter = import('stylelint').Formatter;
4545
type FormatterType = import('stylelint').FormatterType;
4646
type isPathIgnored = (
4747
stylelint: Stylelint,
48-
filePath: string
48+
filePath: string,
4949
) => Promise<boolean>;
5050
type AsyncTask = () => Promise<void>;
5151
type LintTask = (files: string | string[]) => Promise<LintResult[]>;

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ declare class StylelintWebpackPlugin {
1616
compiler: Compiler,
1717
options: Options,
1818
wanted: string[],
19-
exclude: string[]
19+
exclude: string[],
2020
): Promise<void>;
2121
startTime: number;
2222
prevTimestamps: Map<any, any>;

0 commit comments

Comments
 (0)