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 js-linter #4479

Merged
merged 1 commit into from
Feb 17, 2024
Merged

chore(deps): update js-linter #4479

merged 1 commit into from
Feb 17, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@babel/eslint-parser (source) 7.23.3 -> 7.23.10 age adoption passing confidence
@rushstack/eslint-patch (source) 1.7.0 -> 1.7.2 age adoption passing confidence
eslint-plugin-vue (source) 9.20.1 -> 9.21.1 age adoption passing confidence
prettier (source) 3.2.2 -> 3.2.5 age adoption passing confidence

Release Notes

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

v7.23.10

Compare Source

🐛 Bug Fix

v7.23.9

Compare Source

🐛 Bug Fix
  • babel-helper-transform-fixture-test-runner, babel-plugin-transform-function-name, babel-plugin-transform-modules-systemjs, babel-preset-env
  • babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators
  • babel-plugin-proposal-decorators, babel-plugin-transform-async-generator-functions, babel-plugin-transform-runtime, babel-preset-env
  • babel-traverse
  • Other
🏠 Internal
🏃‍♀️ Performance
🔬 Output optimization
  • babel-helper-create-class-features-plugin, babel-plugin-proposal-decorators, babel-plugin-proposal-destructuring-private, babel-plugin-proposal-pipeline-operator, babel-plugin-transform-class-properties, babel-plugin-transform-class-static-block, babel-plugin-transform-new-target, babel-plugin-transform-parameters, babel-plugin-transform-private-methods, babel-preset-env
  • babel-helpers, babel-plugin-proposal-explicit-resource-management, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime
microsoft/rushstack (@​rushstack/eslint-patch)

v1.7.2

Compare Source

Thu, 25 Jan 2024 23:03:57 GMT

Patches
  • Some minor documentation updates

v1.7.1

Compare Source

Wed, 24 Jan 2024 07:38:34 GMT

Patches
  • Update documentation
vuejs/eslint-plugin-vue (eslint-plugin-vue)

v9.21.1

Compare Source

🐛 Bug Fixes

  • #​2388 Fixed error in render functions in vue/no-unused-emit-declarations rule.
  • #​2386 Fixed false positives/negatives for multiple defineModel calls in vue/define-macros-order rule.

Full Changelog: vuejs/eslint-plugin-vue@v9.21.0...v9.21.1

v9.21.0

Compare Source

✨ Enhancements

⚙️ Updates

Full Changelog: vuejs/eslint-plugin-vue@v9.20.1...v9.21.0

prettier/prettier (prettier)

v3.2.5

Compare Source

diff

Support Angular inline styles as single template literal (#​15968 by @​sosukesuzuki)

Angular v17 supports single string inline styles.

// Input
@​Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.4
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.5
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `
    h1 {
      color: blue;
    }
  `,
})
export class AppComponent {}
Unexpected embedded formatting for Angular template (#​15969 by @​JounQin)

Computed template should not be considered as Angular component template

// Input
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.4
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{ hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.5
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}
Use "json" parser for tsconfig.json by default (#​16012 by @​sosukesuzuki)

In v2.3.0, we introduced "jsonc" parser which adds trialing comma by default.

When adding a new parser we also define how it will be used based on the linguist-languages data.

tsconfig.json is a special file used by TypeScript, it uses .json file extension, but it actually uses the JSON with Comments syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing .json file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the "jsonc" parser for your tsconfig.json files, add the following to your .pretterrc file

{
  "overrides": [
    {
      "files": ["tsconfig.json", "jsconfig.json"],
      "options": {
        "parser": "jsonc"
      }
    }
  ]
}

v3.2.4

Compare Source

diff

Fix incorrect parser inference (#​15947 by @​fisker)

Files like .eslintrc.json were incorrectly formatted as JSONC files.

// Input
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "jsonc" }

// Prettier 3.2.4
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "json" }

v3.2.3

Compare Source

diff

Throw errors for invalid code (#​15881 by @​fisker, @​Josh-Cena, @​auvred)
// Input
1++;

// Prettier 3.2.2
1++;

// Prettier 3.2.3
SyntaxError: Invalid left-hand side expression in unary operation (1:1)
> 1 | 1++;
    | ^
// Input
try {} catch (error = 1){}

// Prettier 3.2.2
try {
} catch (error) {}

// Prettier 3.2.3
SyntaxError: Catch clause variable cannot have an initializer. (1:23)
> 1 | try {} catch (error = 1){}
    |                       ^
Fix parser inference (#​15927 by @​fisker)
// Prettier 3.2.2
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }

// Prettier 3.2.3
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }

Configuration

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

🚦 Automerge: Enabled.

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 added the renovate label Jan 17, 2024
@renovate renovate bot enabled auto-merge January 17, 2024 04:21
Copy link
Contributor Author

renovate bot commented Jan 17, 2024

Branch automerge failure

This PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.2.3 chore(deps): update dependency prettier to v3.2.4 Jan 17, 2024
@renovate renovate bot force-pushed the renovate/js-linter branch 2 times, most recently from 8eca502 to bdbd1dc Compare January 24, 2024 08:07
@renovate renovate bot changed the title chore(deps): update dependency prettier to v3.2.4 chore(deps): update js-linter Jan 24, 2024
@renovate renovate bot force-pushed the renovate/js-linter branch 6 times, most recently from b05dd11 to 3d19b57 Compare January 28, 2024 21:22
Copy link
Contributor

@BacLuc BacLuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This incorrectly parses our jsconfig.json files with jsonc and adds trailing commas.
This seems to be intended: prettier/prettier#15945 (comment)

@renovate renovate bot force-pushed the renovate/js-linter branch 12 times, most recently from 60e1d39 to 120250f Compare February 5, 2024 23:26
@renovate renovate bot force-pushed the renovate/js-linter branch 3 times, most recently from 62d2c06 to a42e991 Compare February 15, 2024 19:27
@renovate renovate bot added this pull request to the merge queue Feb 17, 2024
@BacLuc
Copy link
Contributor

BacLuc commented Feb 17, 2024

This incorrectly parses our jsconfig.json files with jsonc and adds trailing commas. This seems to be intended: prettier/prettier#15945 (comment)

The issue seems to be resolved

Merged via the queue into devel with commit a731391 Feb 17, 2024
55 checks passed
@renovate renovate bot deleted the renovate/js-linter branch February 17, 2024 17:24
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.

None yet

1 participant