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

build(deps): update linters (major) #349

Merged
merged 1 commit into from
Sep 21, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 5, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@typescript-eslint/eslint-plugin ~5.62.0 -> ~6.7.0 age adoption passing confidence
@typescript-eslint/parser ~5.62.0 -> ~6.7.0 age adoption passing confidence
eslint-config-prettier ~8.10.0 -> ~9.0.0 age adoption passing confidence
eslint-plugin-prettier ~4.2.1 -> ~5.0.0 age adoption passing confidence
eslint-plugin-unicorn ~47.0.0 -> ~48.0.0 age adoption passing confidence
prettier (source) ~2.8.3 -> ~3.0.0 age adoption passing confidence

Release Notes

typescript-eslint/typescript-eslint (@​typescript-eslint/eslint-plugin)

v6.7.0

Compare Source

Bug Fixes
  • eslint-plugin: [no-restricted-imports] disallow side effect imports when allowTypeImports is enabled (#​7560) (4908905)
Features
  • eslint-plugin: [await-thenable] added suggestion fixer (#​7437) (b284370)

You can read about our versioning strategy and releases on our website.

v6.6.0

Compare Source

Bug Fixes
  • eslint-plugin: [key-spacing] consider properties with parens and comments (#​7525) (7012279)

You can read about our versioning strategy and releases on our website.

v6.5.0

Compare Source

Bug Fixes
  • eslint-plugin: [consistent-type-assertions] wrap object return value with parentheses (#​6885) (23ac499)

You can read about our versioning strategy and releases on our website.

6.4.1 (2023-08-21)

Bug Fixes
  • eslint-plugin: [no-unnecessary-condition] false positives with branded types (#​7466) (b52658f), closes #​7293

You can read about our versioning strategy and releases on our website.

v6.4.1

Compare Source

Bug Fixes
  • eslint-plugin: [no-unnecessary-condition] false positives with branded types (#​7466) (b52658f), closes #​7293

You can read about our versioning strategy and releases on our website.

v6.4.0

Compare Source

Bug Fixes
  • eslint-plugin: [non-nullable-type-assertion-style] consider operator precedence when fixing (#​7289) (bad37a2)
  • eslint-plugin: [strict-boolean-expressions] replace dangerous fixer with suggestions (#​7394) (ad8401a)

You can read about our versioning strategy and releases on our website.

v6.3.0

Compare Source

Bug Fixes
  • eslint-plugin: [no-extra-parens] keep parens around call expression arguments when type arguments contain parens (#​7375) (38e5e4e)
  • eslint-plugin: [no-restricted-imports] allow inline type qualifiers when allowTypeImports enabled (#​7379) (cc9a46d)
Features
  • eslint-plugin: [prefer-nullish-coalescing] allow ignorePrimitives option to be true (#​7331) (dfcafae)
Reverts

You can read about our versioning strategy and releases on our website.

6.2.1 (2023-07-31)

Bug Fixes
  • eslint-plugin: [no-inferrable-types] apply also for parameter properties (#​7288) (67f93b1)
  • scope-manager: correct decorators(.length) check in ClassVisitor for methods (#​7334) (abbb6c2)

You can read about our versioning strategy and releases on our website.

v6.2.1

Compare Source

Bug Fixes
  • eslint-plugin: [no-inferrable-types] apply also for parameter properties (#​7288) (67f93b1)
  • scope-manager: correct decorators(.length) check in ClassVisitor for methods (#​7334) (abbb6c2)

You can read about our versioning strategy and releases on our website.

v6.2.0

Compare Source

Bug Fixes
  • eslint-plugin: [member-ordering] account for repeated names (#​6864) (d207b59)
  • eslint-plugin: [no-unsafe-enum-comparison] exempt bit shift operators (#​7074) (b3e0e75)
  • eslint-plugin: [prefer-nullish-coalescing] handle case when type of left side is null or undefined (#​7225) (b62affe)
  • eslint-plugin: use a default export for the rules type (#​7266) (af77a1d)
Features
  • eslint-plugin: [class-methods-use-this] add extension rule (#​6457) (18ea3b1)
  • eslint-plugin: sync getFunctionHeadLoc implementation with upstream (#​7260) (f813147)

You can read about our versioning strategy and releases on our website.

v6.1.0

Compare Source

Bug Fixes
  • eslint-plugin: [comma-dangle] fixed crash from undefined predicate.ignore (#​7223) (d368164)
  • eslint-plugin: [no-floating-promises] false negative calling .then with second argument undefined (#​6881) (606a52c), closes #​6850
  • eslint-plugin: [no-floating-promises] finally should be transparent to unhandled promises (#​7092) (2a4421c)
  • eslint-plugin: [no-unnecessary-type-constraint] correctly fix in cts/mts files (#​6795) (1404796)
  • eslint-plugin: [no-unused-vars] check if any variable definition is exported (#​6873) (587ac30), closes #​6188
  • eslint-plugin: fix schemas across several rules and add schema tests (#​6947) (dd31bed)
  • eslint-plugin: include the rules types in the package (#​7215) (a3da11d)
Features
  • typescript-estree: add EXPERIMENTAL_useProjectService option to use TypeScript project service (#​6754) (6d3d162)

You can read about our versioning strategy and releases on our website.

v6.0.0

Compare Source

Bug Fixes
  • bumped ts-api-utils to 0.0.39 (#​6497) (217c710)
  • correct handling of additionalProperties in object schemas (#​6939) (489c7a5)
  • correct lint error after merge (277fdb5)
  • eslint-plugin: [explicit-module-boundary-types] remove shouldTrackReferences option from schema (#​5399) (6d32734)
  • eslint-plugin: allow parser@^6.0.0 (#​6630) (92908bd)
  • eslint-plugin: remove valid-typeof disable in eslint-recommended (#​5381) (b82df5e)
  • fix illegal decorator check (#​6723) (c456f8c)
  • rename typeParameters to typeArguments where needed (#​5384) (08d757b)
  • replace tsutils with ts-api-tools (#​6428) (79327b4)
  • type-utils: treat intrinsic types as if they are from lib and never match error types (#​6869) (ecb57de)
  • typescript-estree: account for namespace nesting in AST conversion (#​6272) (09e3877)
  • update exports field in package.json files (#​6550) (53776c2)
chore
Features
BREAKING CHANGES
  • eslint-plugin: Adds an additional class of checks to the rule
  • drop support for ESLint v6
  • drops support for node v17
  • Bumps the minimum supported range and removes handling for old versions
  • drops support for node v12

You can read about our versioning strategy and releases on our website.

typescript-eslint/typescript-eslint (@​typescript-eslint/parser)

v6.7.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.6.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.5.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

6.4.1 (2023-08-21)

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.4.1

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.4.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.3.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

6.2.1 (2023-07-31)

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.2.1

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.2.0

Compare Source

Note: Version bump only for package @​typescript-eslint/parser

You can read about our versioning strategy and releases on our website.

v6.1.0

Compare Source

Features
  • typescript-estree: add EXPERIMENTAL_useProjectService option to use TypeScript project service (#​6754) (6d3d162)

You can read about our versioning strategy and releases on our website.

v6.0.0

Compare Source

Bug Fixes
chore
Features
BREAKING CHANGES
  • drop support for ESLint v6
  • drops support for node v17
  • drops support for node v12

You can read about our versioning strategy and releases on our website.

prettier/eslint-config-prettier (eslint-config-prettier)

v9.0.0

Compare Source

  • Added: The CLI helper tool now works with eslint.config.js (flat config). Just like ESLint itself, the CLI tool automatically first tries eslint.config.js and then eslintrc, and you can force which one to use by setting the [ESLINT_USE_FLAT_CONFIG] environment variable. Note that the config of eslint-config-prettier has always been compatible with eslint.config.js (flat config) – it was just the CLI tool that needed updating. On top of that, the docs have been updated to mention how to use both eslint.config.js (flat config) and eslintrc, and the tests now test both config systems.
  • Changed: [unicode-bom] is no longer turned off. Prettier preserves the BOM if you have one, and does not add one if missing. It was wrong of eslint-config-prettier to disable that rule. If you get ESLint errors after upgrading, either add "unicode-bom": "off" to your config to disable it again, or run ESLint with --fix to fix all files according to the rule (add or remove BOM). Thanks to Nicolas Stepien (@​nstepien)!
prettier/eslint-plugin-prettier (eslint-plugin-prettier)

v5.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes
sindresorhus/eslint-plugin-unicorn (eslint-plugin-unicorn)

v48.0.1

Compare Source

  • no-empty-file: Fix directive check for TypeScript parser (#​2180) 1bb9ce8

v48.0.0

Compare Source

Improvements
  • Deprecate no-unsafe-regex rule (#​2135) 7b473aa
  • prefer-top-level-await: Ignore promises inside Promise.{all,allSettled,any,race}() (#​2139) d3f6b60
  • no-process-exit: Ignore when using node:worker_threads module (#​2136) 2907805
  • prefer-array-some: Ignore filter calls with literal argument (#​2097) 7a32edb
  • prefer-modern-math-api: Check cases that Math.hypot() should be preferred (#​2080) 9bbc948
  • explicit-length-check: Ignore .length || number (#​1977) b9b8794
Fixes
prettier/prettier (prettier)

v3.0.3

Compare Source

diff

Add preferUnplugged: true to package.json (#​15169 by @​fisker and @​so1ve)

Prettier v3 uses dynamic imports, user will need to unplug Prettier when Yarn's PnP mode is enabled, add preferUnplugged: true to package.json, so Yarn will install Prettier as unplug by default.

Support shared config that forbids require() (#​15233 by @​fisker)

If an external shared config package is used, and the package exports don't have require or default export.

In Prettier 3.0.2 Prettier fails when attempt to require() the package, and throws an error.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in <packageName>/package.json
Allow argument of require() to break (#​15256 by @​fisker)
// Input
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);

// Prettier 3.0.2
const plugin = require(global.STANDALONE
  ? path.join(__dirname, "../standalone.js")
  : path.join(__dirname, ".."));

// Prettier 3.0.3
const plugin = require(
  global.STANDALONE
    ? path.join(__dirname, "../standalone.js")
    : path.join(__dirname, "..")
);
Do not print trailing commas in arrow function type parameter lists in ts code blocks (#​15286 by @​sosukesuzuki)
<!-- Input -->
```ts
const foo = <T>() => {}
```

<!-- Prettier 3.0.2 -->
```ts
const foo = <T,>() => {}
```

<!-- Prettier 3.0.3 -->
```ts
const foo = <T>() => {}
```
Support TypeScript 5.2 using / await using declaration (#​15321 by @​sosukesuzuki)

Support for the upcoming Explicit Resource Management feature in ECMAScript. using / await using declaration

{
   using foo = new Foo();
   await using bar = new Bar();
}

v3.0.2

Compare Source

diff

Break after = of assignment if RHS is poorly breakable AwaitExpression or YieldExpression (#​15204 by @​seiyab)
// Input
const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData);

// Prettier 3.0.1
const { section, rubric, authors, tags } = await utils.upsertCommonData(
  mainData,
);

// Prettier 3.0.2
const { section, rubric, authors, tags } =
  await utils.upsertCommonData(mainData);
Do not add trailing comma for grouped scss comments (#​15217 by @​auvred)
/* Input */
$foo: (
	'property': (),
	// comment 1
	// comment 2
)

/* Prettier 3.0.1 */
$foo: (
  "property": (),
  // comment 1
  // comment 2,
);

/* Prettier 3.0.2 */
$foo: (
  "property": (),
  // comment 1
  // comment 2
);
Print declare and export keywords for nested namespace (#​15249 by @​sosukesuzuki)
// Input
declare namespace abc1.def {}
export namespace abc2.def {}

// Prettier 3.0.1
namespace abc1.def {}
namespace abc2.def {}

// Prettier 3.0.2
declare namespace abc1.def {}
export namespace abc2.def {}

v3.0.1

Compare Source

diff

Fix cursor positioning for a special case (#​14812 by @​fisker)
// <|> is the cursor position

/* Input */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>  } from "fs"

/* Prettier 3.0.0 */
// All messages are represented in JSON.
// So, the prettier.py <|>controls a subprocess which spawns "node {this_file}".
import {} from "fs"

/* Prettier 3.0.1 */
// All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|>} from "fs"
Fix plugins/estree.d.ts to make it a module (#​15018 by @​kingyue737)

Add export {} in plugins/estree.d.ts to fix the "File is not a module" error

Add parenthesis around leading multiline comment in return statement (#​15037 by @​auvred)
// Input
function fn() {
  return (
    /**
     * @&#8203;type {...}
     */ expresssion
  )
}

// Prettier 3.0.0
function fn() {
  return /**
   * @&#8203;type {...}
   */ expresssion;
}

// Prettier 3.0.1
function fn() {
  return (
    /**
     * @&#8203;type {...}
     */ expresssion
  );
}
Add support for Vue "Generic Components" (#​15066 by @​auvred)

https://blog.vuejs.org/posts/vue-3-3#generic-components

<!-- Input -->
<script setup lang="ts" generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"></script>

<!-- Prettier 3.0.0 -->
<script
  setup
  lang="ts"
  generic="T extends Type1 & Type2 & (Type3 | Type4), U extends string | number | boolean"
></script>

<!-- Prettier 3.0.1 -->
<script
  setup
  lang="ts"
  generic="
    T extends Type1 & Type2 & (Type3 | Type4),
    U extends string | number | boolean
  "
></script>
Fix comments print in IfStatement (#​15076 by @​fisker)
function a(b) {
  if (b) return 1; // comment
  else return 2;
}

/* Prettier 3.0.0 */
Error: Comment "comment" was not printed. Please report this error!

/* Prett

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

 **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://togithub.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/wopian/preferred-locale).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xNDQuMiIsInVwZGF0ZWRJblZlciI6IjM2LjgzLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=-->

@renovate renovate bot added the dependencies label Jul 5, 2023
@renovate renovate bot assigned wopian Jul 5, 2023
@renovate renovate bot requested a review from wopian July 5, 2023 13:35
@github-actions
Copy link

github-actions bot commented Jul 5, 2023

yarn.lock changes

Summary

Status Count
ADDED 17
UPDATED 14
REMOVED 3
Click to toggle table visibility
Name Status Previous Current
@eslint-community/regexpp UPDATED 4.8.0 4.8.1
@pkgr/utils ADDED - 2.4.2
@typescript-eslint/eslint-plugin UPDATED 5.62.0 6.7.0
@typescript-eslint/parser UPDATED 5.62.0 6.7.0
@typescript-eslint/scope-manager UPDATED 5.62.0 6.7.0
@typescript-eslint/type-utils UPDATED 5.62.0 6.7.0
@typescript-eslint/types UPDATED 5.62.0 6.7.0
@typescript-eslint/typescript-estree UPDATED 5.62.0 6.7.0
@typescript-eslint/utils UPDATED 5.62.0 6.7.0
@typescript-eslint/visitor-keys UPDATED 5.62.0 6.7.0
big-integer ADDED - 1.6.51
bplist-parser ADDED - 0.2.0
bundle-name ADDED - 3.0.0
default-browser ADDED - 4.0.0
default-browser-id ADDED - 3.0.0
define-lazy-prop ADDED - 3.0.0
eslint-config-prettier UPDATED 8.10.0 9.0.0
eslint-plugin-prettier UPDATED 4.2.1 5.0.0
eslint-plugin-unicorn UPDATED 47.0.0 48.0.1
is-docker ADDED - 3.0.0
is-inside-container ADDED - 1.0.0
is-wsl ADDED - 2.2.0
natural-compare-lite REMOVED 1.4.0 -
open ADDED - 9.1.0
picocolors ADDED - 1.0.0
prettier UPDATED 2.8.8 3.0.3
run-applescript ADDED - 5.0.0
safe-regex REMOVED 2.1.1 -
synckit ADDED - 0.8.5
titleize ADDED - 3.0.0
ts-api-utils ADDED - 1.0.3
tslib UPDATED 1.14.1 2.6.2
tsutils REMOVED 3.21.0 -
untildify ADDED - 4.0.0

@renovate renovate bot force-pushed the renovate/major-linters branch from aaaac1f to 7723285 Compare July 6, 2023 00:11
@renovate renovate bot changed the title build(deps): update devdependency prettier to ~3.0.0 build(deps): update linters (major) Jul 10, 2023
@renovate renovate bot force-pushed the renovate/major-linters branch 7 times, most recently from a0e4528 to 19d9b0c Compare July 17, 2023 18:58
@renovate renovate bot force-pushed the renovate/major-linters branch 3 times, most recently from 636fdc5 to 6afb2f1 Compare July 24, 2023 18:48
@renovate renovate bot force-pushed the renovate/major-linters branch 3 times, most recently from 9385d73 to d7aa129 Compare July 31, 2023 18:46
@renovate renovate bot force-pushed the renovate/major-linters branch 2 times, most recently from 27ebb4f to 306b1d1 Compare August 7, 2023 19:57
@renovate renovate bot force-pushed the renovate/major-linters branch 6 times, most recently from 8140fe4 to 5218977 Compare August 17, 2023 22:39
@renovate renovate bot force-pushed the renovate/major-linters branch 3 times, most recently from 36dc528 to 0f369d7 Compare August 24, 2023 17:23
@renovate renovate bot force-pushed the renovate/major-linters branch 4 times, most recently from f9a9aab to e616f39 Compare August 29, 2023 09:15
@renovate renovate bot force-pushed the renovate/major-linters branch 4 times, most recently from ec5e5df to 261fd53 Compare September 9, 2023 01:08
@renovate renovate bot force-pushed the renovate/major-linters branch 2 times, most recently from 618d6c5 to f56fbcf Compare September 11, 2023 23:49
@wopian wopian merged commit 6df523e into develop Sep 21, 2023
3 checks passed
@wopian wopian deleted the renovate/major-linters branch September 21, 2023 19:27
@wopian
Copy link
Owner

wopian commented Sep 21, 2023

🎉 This PR is included in version 2.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant