Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update dependencies to the latest version #352

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"indentifies",
"stylelintignore",
"notcss",
"stylelintcache"
"stylelintcache",
"eslintcache",
"autocrlf"
],

"ignorePaths": [
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ jobs:
node-version: [18.x, 20.x, 21.x]
stylelint-version: [13.x, 14.x, 15.x, 16.x]
webpack-version: [latest]
exclude:
- stylelint-version: 16.x
node-version: 18.x
ricardogobbosouza marked this conversation as resolved.
Show resolved Hide resolved

runs-on: ${{ matrix.os }}

Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
logs
*.log
npm-debug.log*
yarn-debug.log*
.cspellcache
.eslintcache

Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged
6 changes: 0 additions & 6 deletions husky.config.js

This file was deleted.

4,558 changes: 2,553 additions & 2,005 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
"pretest": "npm run lint",
"test": "npm run test:coverage",
"prepare": "husky install && npm run build",
"prepare": "husky && npm run build",
"release": "standard-version"
},
"files": [
Expand All @@ -57,40 +57,40 @@
"schema-utils": "^4.2.0"
},
"devDependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/preset-env": "^7.24.0",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.2",
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/preset-env": "^7.24.5",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@types/file-entry-cache": "^5.0.4",
"@types/fs-extra": "^11.0.4",
"@types/micromatch": "^4.0.6",
"@types/node": "^20.11.25",
"@types/micromatch": "^4.0.7",
"@types/node": "^20.12.8",
"@types/normalize-path": "^3.0.2",
"@types/webpack": "^5.28.5",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^29.7.0",
"chokidar": "^3.6.0",
"cross-env": "^7.0.3",
"cspell": "^8.6.0",
"cspell": "^8.7.0",
"del": "^7.1.0",
"del-cli": "^5.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"file-loader": "^6.2.0",
"fs-extra": "^11.2.0",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"postcss-scss": "^4.0.9",
"prettier": "^3.2.5",
"standard-version": "^9.5.0",
"stylelint": "^16.2.1",
"typescript": "^5.4.2",
"webpack": "^5.90.3"
"stylelint": "^16.5.0",
"typescript": "^5.4.5",
"webpack": "^5.91.0"
},
"keywords": [
"stylelint",
Expand Down
1 change: 1 addition & 0 deletions src/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function linter(key, options, compilation) {
const save = (name, content) =>
/** @type {Promise<void>} */ (
new Promise((finish, bail) => {
if (!compiler.outputFileSystem) return;
const { mkdir, writeFile } = compiler.outputFileSystem;
// ensure directory exists
// @ts-ignore - the types for `outputFileSystem` are missing the 3 arg overload
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"strict": true,
"useUnknownInCatchVariables": false,
"types": ["node"],
"resolveJsonModule": true,
"resolveJsonModule": true
},
"include": ["./src/**/*"],
"include": ["./src/**/*"]
}
2 changes: 1 addition & 1 deletion types/getStylelint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type Linter = {
type Stylelint = {
lint: (options: LinterOptions) => Promise<LinterResult>;
formatters: {
[k: string]: import('stylelint').Formatter;
[k: string]: Formatter;
};
};
type LintResult = import('stylelint').LintResult;
Expand Down
2 changes: 1 addition & 1 deletion types/linter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ type Report = {
generateReportAsset?: GenerateReport;
};
type LintResultMap = {
[files: string]: import('stylelint').LintResult;
[files: string]: LintResult;
};
import StylelintError = require('./StylelintError');
Loading