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(deps): update eslint and prettier packages (major) #312

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 10, 2022

Mend Renovate logo banner

This PR contains the following updates:

Package Change 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.1 age adoption passing confidence
prettier (source) 2.8.8 -> 3.1.0 age adoption passing confidence

Release Notes

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.1

Compare Source

Patch Changes

v5.0.0

Compare Source

Major Changes
Minor Changes
Patch Changes
prettier/prettier (prettier)

v3.1.0

Compare Source

diff

🔗 Release Notes

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!

/* Prettier 3.0.1 */
function a(b) {
  if (b) return 1; // comment
  else return 2;
}
Add missing type definition for printer.preprocess (#​15123 by @​so1ve)
export interface Printer<T = any> {
  // ...
+ preprocess?:
+   | ((ast: T, options: ParserOptions<T>) => T | Promise<T>)
+   | undefined;
}
Add missing getVisitorKeys method type definition for Printer (#​15125 by @​auvred)
const printer: Printer = {
  print: () => [],
  getVisitorKeys(node, nonTraversableKeys) {
    return ["body"];
  },
};
Add typing to support readonly array properties of AST Node (#​15127 by @​auvred)
// Input
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");

// Prettier 3.0.0
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");
//                  ^ Argument of type '"readonlyArray"' is not assignable to parameter of type '"regularArray"'. ts(2345)

// Prettier 3.0.1
interface TestNode {
  readonlyArray: readonly string[];
}

declare const path: AstPath<TestNode>;

path.map(() => "", "readonlyArray");
Add space before unary minus followed by a function call (#​15129 by @​pamelalozano)
// Input
div {
  margin: - func();
}

// Prettier 3.0.0
div {
  margin: -func();
}

// Prettier 3.0.1
div {
  margin: - func();
}

v3.0.0

Compare Source

diff

🔗 Release Notes


Configuration

📅 Schedule: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

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

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from c634095 to b2dcae0 Compare May 20, 2022 23:04
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from b2dcae0 to 4c7d3de Compare June 3, 2022 22:53
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 4c7d3de to 538ba51 Compare June 17, 2022 21:03
@renovate renovate bot changed the title chore(deps): update eslint and prettier packages (major) chore(deps): update ESlint and Prettier packages (major) Jun 27, 2022
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 538ba51 to dc0d27b Compare June 27, 2022 15:49
@renovate renovate bot changed the title chore(deps): update ESlint and Prettier packages (major) chore(deps): update eslint and prettier packages (major) Jun 28, 2022
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 73254c8 to 2372c69 Compare July 2, 2022 03:18
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 2372c69 to b87fc7a Compare July 16, 2022 22:11
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from b87fc7a to 462a916 Compare August 1, 2022 07:04
@renovate renovate bot changed the title chore(deps): update eslint and prettier packages (major) chore(deps): update eslint and prettier packages to v8 (major) Aug 9, 2022
@renovate renovate bot changed the title chore(deps): update eslint and prettier packages to v8 (major) chore(deps): update eslint and prettier packages (major) Aug 10, 2022
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 462a916 to 92a690e Compare August 14, 2022 02:31
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 92a690e to 5654cb2 Compare August 27, 2022 01:10
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 5654cb2 to eb69c07 Compare September 12, 2022 05:50
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from eb69c07 to f1a4610 Compare September 24, 2022 02:40
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from f1a4610 to 31981dd Compare October 8, 2022 01:35
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 31981dd to e4d95c9 Compare October 21, 2022 21:45
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 249b4aa to 568eefe Compare November 6, 2022 07:18
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 568eefe to c7bf488 Compare November 18, 2022 23:37
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from c7bf488 to 83d667d Compare December 2, 2022 23:19
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 83d667d to 7ad2b3e Compare December 16, 2022 23:41
@renovate renovate bot changed the title chore(deps): update eslint and prettier packages (major) Update ESlint and Prettier packages (major) Dec 17, 2022
@renovate renovate bot changed the title Update ESlint and Prettier packages (major) chore(deps): update eslint and prettier packages (major) Dec 17, 2022
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 7ad2b3e to 1ae523b Compare December 31, 2022 07:19
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 1ae523b to 3699cf9 Compare January 15, 2023 07:42
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 3699cf9 to a696281 Compare January 29, 2023 01:48
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from a696281 to 5580044 Compare February 10, 2023 20:34
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 5580044 to 12acba9 Compare February 26, 2023 10:26
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from abaeca0 to 01db940 Compare July 5, 2023 16:24
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 54e9dba to 59766d8 Compare July 14, 2023 18:36
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from b9a7b15 to 1276a6b Compare August 3, 2023 07:58
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 10430be to b1d5620 Compare August 11, 2023 16:44
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from b1d5620 to e32bbdf Compare August 15, 2023 16:25
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 4 times, most recently from f9cf286 to a581d7c Compare September 1, 2023 06:18
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from a581d7c to d531c52 Compare September 8, 2023 23:37
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from d531c52 to 044c6a9 Compare September 22, 2023 23:05
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 38e8ca9 to 77f390a Compare October 6, 2023 22:48
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 77f390a to 4acfee1 Compare October 11, 2023 04:38
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 4acfee1 to 36612f8 Compare October 20, 2023 21:33
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 6354822 to 5ed711a Compare November 4, 2023 00:13
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch 2 times, most recently from 9bb5667 to 81e9077 Compare November 18, 2023 02:15
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from 81e9077 to df6309c Compare November 28, 2023 23:59
@renovate renovate bot force-pushed the renovate/major-eslint-and-prettier-packages branch from df6309c to 47e8bfd Compare November 29, 2023 07:19
@trygve-lie trygve-lie merged commit c178f4a into master Nov 29, 2023
6 checks passed
@trygve-lie trygve-lie deleted the renovate/major-eslint-and-prettier-packages branch November 29, 2023 07:22
Copy link

github-actions bot commented Dec 6, 2023

🎉 This PR is included in version 5.0.1 🎉

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant