Skip to content

Update linters #144

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update linters #144

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 9, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@eslint/eslintrc ^3.1.0 -> ^3.3.1 age adoption passing confidence
@eslint/js (source) ^8.57.0 -> ^8.57.1 age adoption passing confidence
@typescript-eslint/eslint-plugin (source) ^7.15.0 -> ^7.18.0 age adoption passing confidence
@typescript-eslint/parser (source) ^7.15.0 -> ^7.18.0 age adoption passing confidence
eslint (source) ^8.57.0 -> ^8.57.1 age adoption passing confidence
eslint-plugin-astro (source) ^1.2.2 -> ^1.3.1 age adoption passing confidence
eslint-plugin-react ^7.34.3 -> ^7.37.5 age adoption passing confidence
prettier (source) ^3.3.2 -> ^3.5.3 age adoption passing confidence

Release Notes

eslint/eslintrc (@​eslint/eslintrc)

v3.3.1

Compare Source

Bug Fixes

v3.3.0

Compare Source

Features

v3.2.0

Compare Source

Features
  • merge rule.meta.defaultOptions before validation (#​166) (d02f914)
eslint/eslint (@​eslint/js)

v8.57.1

Compare Source

Bug Fixes

  • a19072f fix: add logic to handle fixTypes in the lintText() method (#​18900) (Francesco Trotta)
  • 04c7188 fix: Don't lint same file multiple times (#​18899) (Francesco Trotta)
  • 87ec3c4 fix: do not throw when defining a global named __defineSetter__ (#​18898) (Francesco Trotta)
  • 60a1267 fix: Provide helpful error message for nullish configs (#​18889) (Milos Djermanovic)
  • a0dea8e fix: allow name in global ignores, fix --no-ignore for non-global (#​18875) (Milos Djermanovic)
  • 3836bb4 fix: do not crash on error in fs.walk filter (#​18886) (Milos Djermanovic)
  • 2dec349 fix: skip processor code blocks that match only universal patterns (#​18880) (Milos Djermanovic)

Documentation

Build Related

  • 35d366a build: Support updates to previous major versions (#​18870) (Milos Djermanovic)

Chores

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

v7.18.0

Compare Source

🩹 Fixes
  • eslint-plugin: [no-unnecessary-type-assertion] prevent runtime error when asserting a variable declared in default TS lib

  • eslint-plugin: [unbound-method] report on destructuring in function parameters

  • eslint-plugin: [no-duplicate-type-constituents] shouldn't report on error types

  • eslint-plugin: [strict-boolean-expressions] support branded booleans

❤️ Thank You
  • auvred
  • Oliver Salzburg
  • Vinccool96
  • Yukihiro Hasegawa

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

v7.17.0

Compare Source

🚀 Features
  • eslint-plugin: backport no-unsafe-function type, no-wrapper-object-types from v8 to v7

  • eslint-plugin: [return-await] add option to report in error-handling scenarios only, and deprecate "never"

🩹 Fixes
  • eslint-plugin: [no-floating-promises] check top-level type assertions (and more)

  • eslint-plugin: [strict-boolean-expressions] consider assertion function argument a boolean context

  • eslint-plugin: [no-unnecessary-condition] false positive on optional private field

❤️ Thank You
  • Armano
  • Josh Goldberg ✨
  • Kirk Waiblinger
  • StyleShit

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

v7.16.1

Compare Source

🩹 Fixes
  • eslint-plugin: [no-unnecessary-type-parameters] descend into all parts of mapped types in no-unnecessary-type-parameters
❤️ Thank You
  • Dan Vanderkam

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

v7.16.0

Compare Source

🚀 Features
  • rule-tester: stricter rule test validations

  • eslint-plugin: [no-unnecessary-parameter-property-assignment] add new rule

  • eslint-plugin: add support for nested namespaces to unsafe-member-access

  • eslint-plugin: [no-floating-promises] add checkThenables option

🩹 Fixes
  • deps: update dependency @​eslint-community/regexpp to v4.11.0

  • eslint-plugin: [no-floating-promises] add suggestions to tests from #​9263 checkThenables

  • website: react key error on internal pages of website

  • eslint-plugin: [restrict-template-expressions] don't report tuples if allowArray option is enabled

❤️ Thank You
  • Abraham Guo
  • auvred
  • Josh Goldberg ✨
  • Juan Sanchez
  • Vinccool96
  • YeonJuan
  • Yukihiro Hasegawa

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

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

v7.18.0

Compare Source

This was a version bump only for parser to align it with other projects, there were no code changes.

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

v7.17.0

Compare Source

This was a version bump only for parser to align it with other projects, there were no code changes.

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

v7.16.1

Compare Source

This was a version bump only for parser to align it with other projects, there were no code changes.

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

v7.16.0

Compare Source

🩹 Fixes
❤️ Thank You
  • Abraham Guo
  • auvred
  • Josh Goldberg ✨
  • Juan Sanchez
  • Vinccool96
  • YeonJuan
  • Yukihiro Hasegawa

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

ota-meshi/eslint-plugin-astro (eslint-plugin-astro)

v1.3.1

Compare Source

Patch Changes

v1.3.0

Compare Source

Minor Changes

v1.2.4

Compare Source

Patch Changes

v1.2.3

Compare Source

Patch Changes
jsx-eslint/eslint-plugin-react (eslint-plugin-react)

v7.37.5

Compare Source

Fixed
Changed

v7.37.4

Compare Source

Fixed

v7.37.3

Compare Source

Fixed
Changed
  • [Tests] [jsx-no-script-url]: Improve tests (#​3849 @​radu2147)
  • [Docs] fix broken links: [default-props-match-prop-types], [jsx-boolean-value], [jsx-curly-brace-presence], [jsx-no-bind], [no-array-index-key], [no-is-mounted], [no-render-return-value], [require-default-props] (#​3841 @​bastiendmt)

v7.37.2

Compare Source

Fixed
  • [destructuring-assignment]: fix false negative when using typeof props.a (#​3835 @​golopot)
Changed
  • [Refactor] [destructuring-assignment]: use getParentStatelessComponent (#​3835 @​golopot)

v7.37.1

Compare Source

Fixed
Changed

v7.37.0

Compare Source

Added
Changed

v7.36.1

Compare Source

Fixed

v7.36.0

Compare Source

Added
Fixed
  • [function-component-definition], [boolean-prop-naming], [jsx-first-prop-new-line], [jsx-props-no-multi-spaces], propTypes: use type args (#​3629 @​HenryBrown0)
  • JSX pragma: fail gracefully (#​3632 @​ljharb)
  • [jsx-props-no-spreading]: add explicitSpread option to schema (#​3799 @​ljharb)
Changed

v7.35.2

Compare Source

Fixed
  • [jsx-curly-brace-presence]: avoid autofixing attributes with double quotes to a double quoted attribute (#​3814 @​ljharb)

v7.35.1

Compare Source

Fixed
  • [jsx-curly-brace-presence]: do not trigger on strings containing a quote character (#​3798 @​akulsr0)

v7.35.0

Compare Source

Added
Fixed
Changed

v7.34.4

Compare Source

Fixed
prettier/prettier (prettier)

v3.5.3

Compare Source

v3.5.2

Compare Source

diff

Remove module-sync condition (#​17156 by @​fisker)

In Prettier 3.5.0, we added module-sync condition to package.json, so that require("prettier") can use ESM version, but turns out it doesn't work if CommonJS and ESM plugins both imports builtin plugins. To solve this problem, we decide simply remove the module-sync condition, so require("prettier") will still use the CommonJS version, we'll revisit until require(ESM) feature is more stable.

v3.5.1

Compare Source

diff

Fix CLI crash when cache for old version exists (#​17100 by @​sosukesuzuki)

Prettier 3.5 uses a different cache format than previous versions, Prettier 3.5.0 crashes when reading existing cache file, Prettier 3.5.1 fixed the problem.

Support dockercompose and github-actions-workflow in VSCode (#​17101 by @​remcohaszing)

Prettier now supports the dockercompose and github-actions-workflow languages in Visual Studio Code.

v3.5.0

Compare Source

diff

🔗 Release Notes

v3.4.2

Compare Source

diff

Treat U+30A0 & U+30FB in Katakana Block as CJK (#​16796 by @​tats-u)

Prettier doesn't treat U+30A0 & U+30FB as Japanese. U+30FB is commonly used in Japanese to represent the delimitation of first and last names of non-Japanese people or “and”. The following “C言語・C++・Go・Rust” means “C language & C++ & Go & Rust” in Japanese.

<!-- Input (--prose-wrap=never) -->

C言
語
・
C++
・
Go
・
Rust

<!-- Prettier 3.4.1 -->
C言語・ C++ ・ Go ・ Rust

<!-- Prettier 3.4.2 -->
C言語・C++・Go・Rust

U+30A0 can be used as the replacement of the - in non-Japanese names (e.g. “Saint-Saëns” (Charles Camille Saint-Saëns) can be represented as “サン゠サーンス” in Japanese), but substituted by ASCII hyphen (U+002D) or U+FF1D (full width hyphen) in many cases (e.g. “サン=サーンス” or “サン=サーンス”).

Fix comments print on class methods with decorators (#​16891 by @​fisker)
// Input
class A {
  @&#8203;decorator
  /** 
   * The method description
   *
  */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.1
class A {
  @&#8203;decorator
  async /**
   * The method description
   *
   */
  method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}

// Prettier 3.4.2
class A {
  @&#8203;decorator
  /**
   * The method description
   *
   */
  async method(foo: Foo, bar: Bar) {
    console.log(foo);
  }
}
Fix non-idempotent formatting (#​16899 by @​seiyab)

This bug fix is not language-specific. You may see similar change in any languages. This fixes regression in 3.4.0 so change caused by it should yield same formatting as 3.3.3.

// Input
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.1 (first)
<div>
  foo
  <span>
    longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo
  </span>, abc
</div>;

// Prettier 3.4.1 (second)
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

// Prettier 3.4.2
<div>
  foo
  <span>longlonglonglonglonglonglonglonglonglonglonglonglonglonglongl foo</span>
  , abc
</div>;

v3.4.1

Compare Source

diff

Remove unnecessary parentheses around assignment in v-on (#​16887 by @​fisker)
<!-- Input -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

<!-- Prettier 3.4.0 -->
<template>
  <button @&#8203;click="(foo += 2)">Click</button>
</template>

<!-- Prettier 3.4.1 -->
<template>
  <button @&#8203;click="foo += 2">Click</button>
</template>

v3.4.0

Compare Source

diff

🔗 Release Notes

v3.3.3

Compare Source

diff

Add parentheses for nullish coalescing in ternary (#​16391 by @​cdignam-segment)

This change adds clarity to operator precedence.

// Input
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.2
foo ? bar ?? foo : baz;
foo ?? bar ? a : b;
a ? b : foo ?? bar;

// Prettier 3.3.3
foo ? (bar ?? foo) : baz;
(foo ?? bar) ? a : b;
a ? b : (foo ?? bar);
Add parentheses for decorator expressions (#​16458 by @​y-schneider)

Prevent parentheses around member expressions or tagged template literals from being removed to follow the stricter parsing rules of TypeScript 5.5.

// Input
@&#8203;(foo`tagged template`)
class X {}

// Prettier 3.3.2
@&#8203;foo`tagged template`
class X {}

// Prettier 3.3.3
@&#8203;(foo`tagged template`)
class X {}
Support @let declaration syntax (#​16474 by @​sosukesuzuki)

Adds support for Angular v18 @let declaration syntax.

Please see the following code example. The @let declaration allows you to define local variables within the template:

@&#8203;let name = 'Frodo';

<h1>Dashboard for {{name}}</h1>
Hello, {{name}}

For more details, please refer to the excellent blog post by the Angular Team: Introducing @​let in Angular.

We also appreciate the Angular Team for kindly answering our questions to implement this feature.


Configuration

📅 Schedule: Branch creation - "after 10:30 before 18:00 every weekday except after 13:00 before 14:00" in timezone Asia/Tokyo, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the renovate label Jul 9, 2024
@renovate renovate bot force-pushed the renovate/linters branch 4 times, most recently from 555f67c to 1390cb0 Compare July 15, 2024 19:29
@renovate renovate bot force-pushed the renovate/linters branch 2 times, most recently from 42ae126 to 4933491 Compare July 22, 2024 17:43
@renovate renovate bot force-pushed the renovate/linters branch 3 times, most recently from bcbad5c to 9bf502c Compare August 3, 2024 23:02
@renovate renovate bot force-pushed the renovate/linters branch 2 times, most recently from 8db4f11 to e8fb1ee Compare September 3, 2024 21:30
@renovate renovate bot force-pushed the renovate/linters branch 4 times, most recently from 32cb130 to e2345e4 Compare September 16, 2024 16:06
@renovate renovate bot force-pushed the renovate/linters branch 2 times, most recently from 40c492b to 2a2e2a2 Compare October 1, 2024 16:27
@renovate renovate bot force-pushed the renovate/linters branch from 2a2e2a2 to 737c39a Compare October 15, 2024 08:19
@renovate renovate bot force-pushed the renovate/linters branch from 737c39a to d97cdd0 Compare October 23, 2024 01:24
@renovate renovate bot force-pushed the renovate/linters branch from d97cdd0 to cc2e0cf Compare November 6, 2024 23:11
@renovate renovate bot force-pushed the renovate/linters branch from cc2e0cf to cd3599c Compare November 15, 2024 18:42
@renovate renovate bot force-pushed the renovate/linters branch 2 times, most recently from 6236762 to d3cc4ea Compare November 26, 2024 15:27
@renovate renovate bot force-pushed the renovate/linters branch from d3cc4ea to 4f97555 Compare December 4, 2024 09:25
@renovate renovate bot force-pushed the renovate/linters branch from 4f97555 to c3b64eb Compare December 24, 2024 04:23
@renovate renovate bot force-pushed the renovate/linters branch from c3b64eb to 7efb839 Compare January 13, 2025 04:57
@renovate renovate bot force-pushed the renovate/linters branch 2 times, most recently from af2a938 to 1f282ee Compare February 13, 2025 15:11
@renovate renovate bot force-pushed the renovate/linters branch from 1f282ee to b3167e2 Compare February 21, 2025 21:40
@renovate renovate bot force-pushed the renovate/linters branch from b3167e2 to 76bfa3f Compare February 22, 2025 07:09
@renovate renovate bot force-pushed the renovate/linters branch from 76bfa3f to ba09e3f Compare March 3, 2025 02:46
@renovate renovate bot force-pushed the renovate/linters branch from ba09e3f to ba27149 Compare March 21, 2025 21:56
@renovate renovate bot force-pushed the renovate/linters branch from ba27149 to e473330 Compare April 3, 2025 23:30
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.

0 participants