Find a file
RenovateBot f132d62409
All checks were successful
continuous-integration/drone/push Build is passing
Update dependency @typescript-eslint/eslint-plugin to v6.12.0 (#107)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) | devDependencies | minor | [`6.8.0` -> `6.12.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/6.8.0/6.12.0) |

---

### Release Notes

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

### [`v6.12.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6120-2023-11-20)

[Compare Source](https://github.com/typescript-eslint/typescript-eslint/compare/v6.11.0...v6.12.0)

##### Bug Fixes

-   **eslint-plugin:** \[class-methods-use-this] detect a problematic case for private/protected members if `ignoreClassesThatImplementAnInterface` is set ([#&#8203;7705](https://github.com/typescript-eslint/typescript-eslint/issues/7705)) ([155aa1f](155aa1f533))
-   **eslint-plugin:** \[no-unnecessary-condition] fix false positive with computed member access and branded key type ([#&#8203;7706](https://github.com/typescript-eslint/typescript-eslint/issues/7706)) ([f151b26](f151b26d21))
-   **eslint-plugin:** \[switch-exhaustiveness-check] enum members with new line or single quotes are not being fixed correctly ([#&#8203;7806](https://github.com/typescript-eslint/typescript-eslint/issues/7806)) ([a034d0a](a034d0a385)), closes [#&#8203;7768](https://github.com/typescript-eslint/typescript-eslint/issues/7768)

##### Features

-   \[member-ordering] add accessor support for member-ordering ([#&#8203;7927](https://github.com/typescript-eslint/typescript-eslint/issues/7927)) ([3c8312d](3c8312d1e1))
-   **eslint-plugin:** \[switch-exhaustiveness-check] add requireDefaultForNonUnion option ([#&#8203;7880](https://github.com/typescript-eslint/typescript-eslint/issues/7880)) ([4cfcd45](4cfcd451ef))

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.

### [`v6.11.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6110-2023-11-13)

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

##### Bug Fixes

-   **eslint-plugin:** \[explicit-function-return-type] support JSX attributes in `allowTypedFunctionExpressions` ([#&#8203;7553](https://github.com/typescript-eslint/typescript-eslint/issues/7553)) ([be2777c](be2777c533))
-   **eslint-plugin:** \[no-unnecessary-qualifier] handle nested namespace id ([#&#8203;7883](https://github.com/typescript-eslint/typescript-eslint/issues/7883)) ([a668f5b](a668f5b10e))

##### Features

-   add `no-unsafe-unary-minus` rule ([#&#8203;7390](https://github.com/typescript-eslint/typescript-eslint/issues/7390)) ([c4709c2](c4709c2861))
-   add types for flat config files ([#&#8203;7273](https://github.com/typescript-eslint/typescript-eslint/issues/7273)) ([66cd0c0](66cd0c0535))
-   allow typescript@5.3.0-RC as devDependency ([#&#8203;7821](https://github.com/typescript-eslint/typescript-eslint/issues/7821)) ([b6c40b4](b6c40b42b6))
-   **eslint-plugin:** no-unsafe-enum-comparison handles switch cases ([#&#8203;7898](https://github.com/typescript-eslint/typescript-eslint/issues/7898)) ([72cb9e4](72cb9e4ed3))
-   **utils:** add ESLint `CodePath` selector types ([#&#8203;7551](https://github.com/typescript-eslint/typescript-eslint/issues/7551)) ([99a026f](99a026fe41))

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.

### [`v6.10.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6100-2023-11-06)

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

##### Bug Fixes

-   **eslint-plugin:** \[no-unused-vars] handle logical assignment ([#&#8203;7854](https://github.com/typescript-eslint/typescript-eslint/issues/7854)) ([11e57c5](11e57c5937))
-   **eslint-plugin:** \[require-await] add support for "await using" ([#&#8203;7866](https://github.com/typescript-eslint/typescript-eslint/issues/7866)) ([855abea](855abea2d7))

##### Features

-   **eslint-plugin:** \[ban-ts-comments] suggest ts-expect-error over ts-ignore ([#&#8203;7849](https://github.com/typescript-eslint/typescript-eslint/issues/7849)) ([5e73a48](5e73a4810a))

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.

#### [6.9.1](https://github.com/typescript-eslint/typescript-eslint/compare/v6.9.0...v6.9.1) (2023-10-30)

##### Bug Fixes

-   **eslint-plugin:** \[naming-convention] allow PascalCase for imports ([#&#8203;7841](https://github.com/typescript-eslint/typescript-eslint/issues/7841)) ([7ad86ee](7ad86eead7))
-   **eslint-plugin:** \[no-unused-expressions] handle TSInstantiationExpression expression ([#&#8203;7831](https://github.com/typescript-eslint/typescript-eslint/issues/7831)) ([31988e0](31988e0d2e))

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.

### [`v6.9.1`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#691-2023-10-30)

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

##### Bug Fixes

-   **eslint-plugin:** \[naming-convention] allow PascalCase for imports ([#&#8203;7841](https://github.com/typescript-eslint/typescript-eslint/issues/7841)) ([7ad86ee](7ad86eead7))
-   **eslint-plugin:** \[no-unused-expressions] handle TSInstantiationExpression expression ([#&#8203;7831](https://github.com/typescript-eslint/typescript-eslint/issues/7831)) ([31988e0](31988e0d2e))

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.

### [`v6.9.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#690-2023-10-23)

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

##### Bug Fixes

-   **eslint-plugin:** \[no-confusing-void-expression] handle unfixable cases ([#&#8203;7674](https://github.com/typescript-eslint/typescript-eslint/issues/7674)) ([7e52f27](7e52f276ed))
-   **eslint-plugin:** \[no-unsafe-return] allow returning anything if explicitly returning any ([#&#8203;7708](https://github.com/typescript-eslint/typescript-eslint/issues/7708)) ([c6124b2](c6124b2c93))

##### Features

-   **eslint-plugin:** \[max-params] don't count `this: void` parameter ([#&#8203;7696](https://github.com/typescript-eslint/typescript-eslint/issues/7696)) ([6398d3f](6398d3fd0a)), closes [#&#8203;7538](https://github.com/typescript-eslint/typescript-eslint/issues/7538)
-   **eslint-plugin:** \[naming-convention] add support for default and namespace imports ([#&#8203;7269](https://github.com/typescript-eslint/typescript-eslint/issues/7269)) ([bb15aae](bb15aae877))
-   **eslint-plugin:** \[no-restricted-imports] support import = require ([#&#8203;7709](https://github.com/typescript-eslint/typescript-eslint/issues/7709)) ([4c8edcf](4c8edcfb7d))
-   **eslint-plugin:** \[no-unsafe-enum-comparison] add switch suggestion ([#&#8203;7691](https://github.com/typescript-eslint/typescript-eslint/issues/7691)) ([53d5263](53d5263cee)), closes [#&#8203;7643](https://github.com/typescript-eslint/typescript-eslint/issues/7643)
-   **eslint-plugin:** \[prefer-readonly] private fields support ([#&#8203;7686](https://github.com/typescript-eslint/typescript-eslint/issues/7686)) ([0e875bf](0e875bf77a))

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:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjAiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjAiLCJ0YXJnZXRCcmFuY2giOiJkZXZlbG9wIn0=-->

Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/random-bunny/pulls/107
Reviewed-by: Vylpes <ethan@vylpes.com>
Co-authored-by: Renovate Bot <renovate@vylpes.com>
Co-committed-by: Renovate Bot <renovate@vylpes.com>
2023-11-27 17:51:37 +00: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
src feature/71-basic-cli (#104) 2023-10-27 15:53:12 +01:00
tests feature/71-basic-cli (#104) 2023-10-27 15:53:12 +01:00
.drone.yml Add push event to .drone.yml 2023-04-29 14:43:47 +01:00
.eslintignore Setup Jest (#57) 2023-04-22 13:20:30 +01:00
.eslintrc Setup Jest (#57) 2023-04-22 13:20:30 +01:00
.gitignore Add error codes and error messages to failed results (#89) 2023-09-15 15:18:57 +01:00
.gitlab-ci.yml Add aslant to gitlab project ci 2021-01-13 21:08:47 +00:00
.npmignore Setup Jest (#57) 2023-04-22 13:20:30 +01:00
app.ts Update project to allow for ESM modules 2023-02-27 18:33:32 +00:00
CODE_OF_CONDUCT.md Update documentation with up to date information 2022-08-18 17:45:05 +01:00
CONTRIBUTING.md Fix documentation code breaks (#58) 2023-04-28 17:31:34 +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 Merge branch 'master' into develop 2023-11-10 18:56:35 +00:00
readme.md Updatr documentation to remove maxTries variable 2023-02-22 18:19:47 +00:00
renovate.json Update 'renovate.json' 2022-12-28 18:43:41 +00:00
tsconfig.json Setup Jest (#57) 2023-04-22 13:20:30 +01:00
yarn.lock Update dependency @typescript-eslint/eslint-plugin to v6.12.0 (#107) 2023-11-27 17:51:37 +00: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

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 2 arguments: subreddit, and sortby ('new', 'hot', 'top')

The json string which gets returned consists of:

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

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

Notes

License

MIT © Vylpes