No description
Find a file
Renovate Bot 5649bb83d7
All checks were successful
Stage / build (push) Successful in 9s
Stage / rsync (push) Successful in 6s
Update dependency @typescript-eslint/eslint-plugin to v8.10.0 (#230)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin) ([source](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin)) | devDependencies | minor | [`8.2.0` -> `8.10.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/8.2.0/8.10.0) |

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint (@&#8203;typescript-eslint/eslint-plugin)</summary>

### [`v8.10.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#8100-2024-10-17)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.9.0...v8.10.0)

##### 🚀 Features

-   support TypeScript 5.6 ([#&#8203;9972](https://github.com/typescript-eslint/typescript-eslint/pull/9972))

##### ❤️  Thank You

-   Josh Goldberg 

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.9.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#890-2024-10-14)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.8.1...v8.9.0)

##### 🩹 Fixes

-   **eslint-plugin:** \[no-unnecessary-type-parameters] cannot assume variables are either type or value

-   **scope-manager:** \[no-use-before-define] do not treat nested namespace aliases as variable references

-   **eslint-plugin:** \[return-await] sync the behavior with await-thenable

-   **eslint-plugin:** \[prefer-literal-enum-member] report a different error message when `allowBitwiseExpressions` is enabled

-   **eslint-plugin:** \[no-loop-func] sync from upstream base rule

-   **eslint-plugin:** \[no-unused-vars] never report the naming of an enum member

-   **eslint-plugin:** correct use-at-your-own-risk type definitions

-   **eslint-plugin:** handle unions in await...for

##### ❤️  Thank You

-   Abraham Guo
-   Anna Bocharova
-   Arya Emami
-   auvred
-   Joshua Chen
-   Kirk Waiblinger
-   Lotfi Meklati
-   mdm317
-   Ronen Amiel
-   Sukka
-   YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.8.1`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#881-2024-10-07)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.8.0...v8.8.1)

##### 🩹 Fixes

-   **eslint-plugin:** stop warning on [@&#8203;ts-nocheck](https://github.com/ts-nocheck) comments which aren't at the beginning of the file

##### ❤️  Thank You

-   Brad Zacher
-   Ronen Amiel
-   WhitePiano

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.8.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#880-2024-09-30)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.7.0...v8.8.0)

##### 🚀 Features

-   **eslint-plugin:** \[no-unnecessary-condition] add checkTypePredicates

-   **eslint-plugin:** \[return-await] check for-await loop iteree

##### 🩹 Fixes

-   remove `export type *` in d.ts to support TS<5.0

-   **eslint-plugin:** \[no-unnecessary-template-expression] should underline template syntax with squiggly lines

-   **type-utils:** check for type parameters on `isBuiltinSymbolLikeRecurser()`

-   **eslint-plugin:** \[no-deprecated] max callstack exceeded when class implements itself

-   **eslint-plugin:** \[no-misused-promises] check contextual type

-   **eslint-plugin:** \[prefer-literal-enum-member] allow nested bitwise operations

##### ❤️  Thank You

-   auvred
-   Josh Goldberg 
-   Kirk Waiblinger
-   Ronen Amiel
-   Tarun Chauhan
-   YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.7.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#870-2024-09-23)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.6.0...v8.7.0)

##### 🚀 Features

-   **eslint-plugin:** \[no-unsafe-call] check calls of Function

-   **eslint-plugin:** \[consistent-type-exports] check `export *` exports to see if all exported members are types

##### 🩹 Fixes

-   **eslint-plugin:** properly coerce all types to string in `getStaticMemberAccessValue`

-   **eslint-plugin:** \[no-deprecated] report on imported deprecated variables

-   **eslint-plugin:** \[no-confusing-non-null-assertion] check !in and !instanceof

##### ❤️  Thank You

-   Abraham Guo
-   auvred
-   Brian Donovan
-   Kirk Waiblinger

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.6.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#860-2024-09-16)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.5.0...v8.6.0)

##### 🚀 Features

-   add `allow` option for `restrict-template-expressions`

-   **type-utils:** isNullableType add Void logic

-   **eslint-plugin:** \[no-unnecessary-condition] check switch cases

-   **eslint-plugin:** \[no-misused-promises] check array predicate return

##### 🩹 Fixes

-   **eslint-plugin:** \[no-deprecated] don't report recursive types in destructuring assignment twice

-   **eslint-plugin:** \[no-deprecated] report on deprecated variables used in destructuring assignment

-   **eslint-plugin:** \[no-deprecated] report on deprecated properties with function-like types

-   **eslint-plugin:** \[no-unnecessary-condition] properly reflect multiple negations in message

##### ❤️  Thank You

-   Abraham Guo
-   auvred
-   Josh Goldberg 
-   Kim Sang Du
-   YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.5.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#850-2024-09-09)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.4.0...v8.5.0)

##### 🚀 Features

-   **eslint-plugin:** \[no-duplicate-type-constituents] prevent unnecessary \`

-   **eslint-plugin:** \[no-unsafe-argument] differentiate error types

##### 🩹 Fixes

-   **eslint-plugin:** \[no-unnecessary-type-assertion] fix TSNonNullExpression fixer

-   **eslint-plugin:** \[no-misused-promises] handle static method

-   **eslint-plugin:** \[no-unnecessary-type-parameters] fix AST quick path scope analysis

-   **eslint-plugin:** \[consistent-type-assertions] access parser services lazily

##### ❤️  Thank You

-   [`f44da95`](https://github.com/typescript-eslint/typescript-eslint/commit/f44da958e)
-   Josh Goldberg 
-   Kirk Waiblinger
-   YeonJuan

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.4.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#840-2024-09-02)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.3.0...v8.4.0)

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

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

### [`v8.3.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#830-2024-08-26)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v8.2.0...v8.3.0)

##### 🚀 Features

-   **eslint-plugin:** \[no-deprecation] add rule

##### 🩹 Fixes

-   **eslint-plugin:** \[no-unnecessary-template-expression] add missing parentheses in autofix

-   **eslint-plugin:** \[no-unnecessary-type-parameters] check mapped alias type arguments

-   **utils:** add `TSDeclareFunction` to `functionTypeTypes`

-   **ast-spec:** use `Expression` in argument of `ThrowStatement`

##### ❤️  Thank You

-   Abraham Guo
-   Daichi Kamiyama
-   Josh Goldberg 
-   Kim Sang Du
-   Sukka
-   Vida Xie

You can read about our [versioning strategy](https://main--typescript-eslint.netlify.app/users/versioning) and [releases](https://main--typescript-eslint.netlify.app/users/releases) on our website.

</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 becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

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

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC44MC4wIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6ImRldmVsb3AiLCJsYWJlbHMiOlsidHlwZS9kZXBlbmRlbmNpZXMiXX0=-->

Reviewed-on: #230
Reviewed-by: Vylpes <ethan@vylpes.com>
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
2024-10-21 17:31:51 +01:00
.forgejo/workflows Update forgejo actions workflow to rsync to the server on push to master/develop (#207) 2024-08-02 17:44:43 +01:00
.gitea Add Gitea templates 2023-02-24 17:33:39 +00:00
.github Create FUNDING.yml 2021-05-10 21:50:20 +01:00
.gitlab Update default.md 2021-01-15 18:15:14 +00:00
docs Remove macOS build support (#224) 2024-09-07 16:12:27 +01:00
src Update pkg version to 2.3 2024-08-07 17:12:10 +01:00
tests Add the post author to the return result (#208) 2024-08-02 17:47:47 +01:00
.gitignore Add binary building (#151) 2024-03-01 19:51:12 +00:00
.gitlab-ci.yml Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
.npmignore Add binary building (#151) 2024-03-01 19:51:12 +00:00
CODE_OF_CONDUCT.md hotfix/2.0.3 (#41) 2022-12-18 15:27:03 +00:00
CONTRIBUTING.md Fix documentation code breaks (#58) 2023-04-28 17:31:34 +01:00
eslint.config.mjs Update eslint (#198) 2024-07-26 18:21:28 +01:00
jest.config.cjs Setup Jest (#57) 2023-04-22 13:20:30 +01:00
jest.setup.js Setup Jest (#57) 2023-04-22 13:20:30 +01:00
LICENSE Update licence copyright to 2023 (#59) 2023-04-28 17:31:55 +01:00
package.json Update jest dependencies to their latest versions (#228) 2024-10-19 20:32:48 +01:00
readme.md Add the post author to the return result (#208) 2024-08-02 17:47:47 +01:00
renovate.json Add type/dependency label to renovate config (#197) 2024-07-26 18:19:44 +01:00
tsconfig.json Setup Jest (#57) 2023-04-22 13:20:30 +01:00
yarn.lock Update dependency @typescript-eslint/eslint-plugin to v8.10.0 (#230) 2024-10-21 17:31:51 +01:00

random-bunny

Get a random image url from a subreddit of your choosing.

Install

npm install --save random-bunny

or if you're using yarn

yarn add random-bunny

Binary

The project can be downloaded as a binary for your system via the GitHub Releases or Gitea Releases page.

Usage

import randomBunny from "random-bunny";

// ... In an async function
const result = await randomBunny('rabbits', 'hot');
console.log(result);

API

randomBunny()

Returns a json string for a random post. Accepts 3 arguments: subreddit, sortby ('new', 'hot', 'top'), and limit (1-100, default 100)

The json string which gets returned consists of:

  • archived
  • author
  • downs
  • hidden
  • permalink
  • subreddit
  • subredditSubscribers
  • title
  • ups
  • url

sortBy will default to 'hot' if not given or invalid

CLI

Random bunny can also be used as a CLI. This is accessible via the executable (see git releases) or via src/cli.ts

For more details, see the documentation.

Notes

License

MIT © Vylpes