Skip to content

Commit

Permalink
Bump typescript from 4.7.4 to 4.8.2 (#6306)
Browse files Browse the repository at this point in the history
* Bump typescript from 4.7.4 to 4.8.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.7.4...v4.8.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix type errors

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Co-authored-by: Richard Hallows <jeddy3@users.noreply.github.com>
  • Loading branch information
3 people committed Sep 3, 2022
1 parent 72c63ea commit 0632f55
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
2 changes: 1 addition & 1 deletion lib/resolveConfig.js
Expand Up @@ -13,7 +13,7 @@ const path = require('path');
* | 'config'
* | 'configBasedir'
* | 'configFile'
* >} [options] - The options to use when creating the Stylelint instance.
* >} options - The options to use when creating the Stylelint instance.
* @returns {Promise<import('stylelint').Config | undefined>}
*/
module.exports = async function resolveConfig(
Expand Down
11 changes: 2 additions & 9 deletions lib/rules/no-eol-whitespace/index.js
Expand Up @@ -34,17 +34,10 @@ function fixString(str) {
/**
* @param {number} lastEOLIndex
* @param {string} string
* @param {{ ignoreEmptyLines?: boolean, isRootFirst?: boolean }} [options]
* @param {{ ignoreEmptyLines: boolean, isRootFirst: boolean }} options
* @returns {number}
*/
function findErrorStartIndex(
lastEOLIndex,
string,
{ ignoreEmptyLines, isRootFirst } = {
ignoreEmptyLines: false,
isRootFirst: false,
},
) {
function findErrorStartIndex(lastEOLIndex, string, { ignoreEmptyLines, isRootFirst }) {
const eolWhitespaceIndex = lastEOLIndex - 1;

// If the character before newline is not whitespace, ignore
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -189,7 +189,7 @@
"postcss-scss": "^4.0.4",
"remark-cli": "^11.0.0",
"sugarss": "^4.0.1",
"typescript": "^4.7.4"
"typescript": "^4.8.2"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
Expand Down

0 comments on commit 0632f55

Please sign in to comment.