Find a file
RenovateBot dc24fe82a8
All checks were successful
Stage / build (push) Successful in 8s
Stage / rsync (push) Successful in 5s
Update dependency @eslint/js to v9.13.0 (#231)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@eslint/js](https://eslint.org) ([source](https://github.com/eslint/eslint/tree/HEAD/packages/js)) | devDependencies | minor | [`9.10.0` -> `9.13.0`](https://renovatebot.com/diffs/npm/@eslint%2fjs/9.10.0/9.13.0) |

---

### Release Notes

<details>
<summary>eslint/eslint (@&#8203;eslint/js)</summary>

### [`v9.13.0`](https://github.com/eslint/eslint/releases/tag/v9.13.0)

[Compare Source](https://github.com/eslint/eslint/compare/v9.12.0...v9.13.0)

#### Features

-   [`381c32b`](381c32b697) feat: Allow languages to provide `defaultLanguageOptions` ([#&#8203;19003](https://github.com/eslint/eslint/issues/19003)) (Milos Djermanovic)
-   [`bf723bd`](bf723bd0f9) feat: Improve eslintrc warning message ([#&#8203;19023](https://github.com/eslint/eslint/issues/19023)) (Milos Djermanovic)
-   [`1def4cd`](1def4cdfab) feat: drop support for jiti v1.21 ([#&#8203;18996](https://github.com/eslint/eslint/issues/18996)) (Francesco Trotta)
-   [`f879be2`](f879be240c) feat: export `ESLint.defaultConfig` ([#&#8203;18983](https://github.com/eslint/eslint/issues/18983)) (Nitin Kumar)

#### Bug Fixes

-   [`78836d4`](78836d40eb) fix: update the `complexity` rule type ([#&#8203;19027](https://github.com/eslint/eslint/issues/19027)) (Nitin Kumar)
-   [`064c8b6`](064c8b612e) fix: update rule types ([#&#8203;18925](https://github.com/eslint/eslint/issues/18925)) (Nitin Kumar)

#### Documentation

-   [`abdbfa8`](abdbfa8390) docs: mark `LintMessage#nodeType` as deprecated ([#&#8203;19019](https://github.com/eslint/eslint/issues/19019)) (Nitin Kumar)
-   [`19e68d3`](19e68d3f3a) docs: update deprecated rules type definitions ([#&#8203;19018](https://github.com/eslint/eslint/issues/19018)) (Nitin Kumar)
-   [`7dd402d`](7dd402d332) docs: Update examples of passing multiple values to a CLI option ([#&#8203;19006](https://github.com/eslint/eslint/issues/19006)) (Milos Djermanovic)
-   [`5dcbc51`](5dcbc519b7) docs: Add example with side-effect imports to no-restricted-imports ([#&#8203;18997](https://github.com/eslint/eslint/issues/18997)) (Milos Djermanovic)
-   [`1ee87ca`](1ee87ca1c5) docs: Update README (GitHub Actions Bot)
-   [`2c3dbdc`](2c3dbdc231) docs: Use prerendered sponsors for README ([#&#8203;18988](https://github.com/eslint/eslint/issues/18988)) (Milos Djermanovic)

#### Chores

-   [`68d2d9d`](68d2d9dfd6) chore: upgrade to `@eslint/js@9.13.0` and `@eslint/core@^0.7.0` ([#&#8203;19034](https://github.com/eslint/eslint/issues/19034)) (Francesco Trotta)
-   [`2211f0a`](2211f0aeb3) chore: package.json update for [@&#8203;eslint/js](https://github.com/eslint/js) release (Jenkins)
-   [`c7abaef`](c7abaef533) perf: using Node.js compile cache ([#&#8203;19012](https://github.com/eslint/eslint/issues/19012)) (唯然)
-   [`1d7c077`](1d7c077145) chore: add pkg.type "commonjs" ([#&#8203;19011](https://github.com/eslint/eslint/issues/19011)) (唯然)
-   [`468e3bd`](468e3bdadf) test: fix `ESLint` tests ([#&#8203;19021](https://github.com/eslint/eslint/issues/19021)) (Francesco Trotta)
-   [`ed4635f`](ed4635fa0e) ci: upgrade knip@5.32.0 ([#&#8203;18992](https://github.com/eslint/eslint/issues/18992)) (Milos Djermanovic)
-   [`efad767`](efad767321) chore: remove unused ignore dependency ([#&#8203;18993](https://github.com/eslint/eslint/issues/18993)) (Amaresh  S M)

### [`v9.12.0`](https://github.com/eslint/eslint/releases/tag/v9.12.0)

[Compare Source](https://github.com/eslint/eslint/compare/v9.11.1...v9.12.0)

#### Features

-   [`5a6a053`](5a6a05321c) feat: update to `jiti` v2 ([#&#8203;18954](https://github.com/eslint/eslint/issues/18954)) (Arya Emami)
-   [`17a07fb`](17a07fb548) feat: Hooks for test cases (RuleTester) ([#&#8203;18771](https://github.com/eslint/eslint/issues/18771)) (Anna Bocharova)
-   [`2ff0e51`](2ff0e51ced) feat: Implement alternate config lookup ([#&#8203;18742](https://github.com/eslint/eslint/issues/18742)) (Nicholas C. Zakas)
-   [`2d17453`](2d174532ae) feat: Implement modified cyclomatic complexity ([#&#8203;18896](https://github.com/eslint/eslint/issues/18896)) (Dmitry Pashkevich)

#### Bug Fixes

-   [`ea380ca`](ea380cac6f) fix: Upgrade retry to avoid EMFILE errors ([#&#8203;18986](https://github.com/eslint/eslint/issues/18986)) (Nicholas C. Zakas)
-   [`fdd6319`](fdd631964a) fix: Issues with type definitions ([#&#8203;18940](https://github.com/eslint/eslint/issues/18940)) (Arya Emami)

#### Documentation

-   [`ecbd522`](ecbd52291d) docs: Mention code explorer ([#&#8203;18978](https://github.com/eslint/eslint/issues/18978)) (Nicholas C. Zakas)
-   [`7ea4ecc`](7ea4ecc6e3) docs: Clarifying the Use of Meta Objects ([#&#8203;18697](https://github.com/eslint/eslint/issues/18697)) (Amaresh  S M)
-   [`d3e4b2e`](d3e4b2ea4a) docs: Clarify how to exclude `.js` files ([#&#8203;18976](https://github.com/eslint/eslint/issues/18976)) (Milos Djermanovic)
-   [`57232ff`](57232ff3d5) docs: Mention plugin-kit in language docs ([#&#8203;18973](https://github.com/eslint/eslint/issues/18973)) (Nicholas C. Zakas)
-   [`b80ed00`](b80ed007ce) docs: Update README (GitHub Actions Bot)
-   [`cb69ab3`](cb69ab374c) docs: Update README (GitHub Actions Bot)
-   [`7fb0d95`](7fb0d957c1) docs: Update README (GitHub Actions Bot)
-   [`493348a`](493348a9a5) docs: Update README (GitHub Actions Bot)
-   [`87a582c`](87a582c8b5) docs: fix typo in `id-match` rule ([#&#8203;18944](https://github.com/eslint/eslint/issues/18944)) (Jay)

#### Chores

-   [`555aafd`](555aafd06f) chore: upgrade to `@eslint/js@9.12.0` ([#&#8203;18987](https://github.com/eslint/eslint/issues/18987)) (Francesco Trotta)
-   [`873ae60`](873ae608c1) chore: package.json update for [@&#8203;eslint/js](https://github.com/eslint/js) release (Jenkins)
-   [`d0a5414`](d0a5414c30) refactor: replace strip-ansi with native module ([#&#8203;18982](https://github.com/eslint/eslint/issues/18982)) (Cristopher)
-   [`b827029`](b8270299ab) chore: Enable JSON5 linting ([#&#8203;18979](https://github.com/eslint/eslint/issues/18979)) (Milos Djermanovic)
-   [`8f55ca2`](8f55ca22d9) chore: Upgrade espree, eslint-visitor-keys, eslint-scope ([#&#8203;18962](https://github.com/eslint/eslint/issues/18962)) (Nicholas C. Zakas)
-   [`c1a2725`](c1a2725e9c) chore: update dependency mocha to ^10.7.3 ([#&#8203;18945](https://github.com/eslint/eslint/issues/18945)) (Milos Djermanovic)

### [`v9.11.1`](https://github.com/eslint/eslint/releases/tag/v9.11.1)

[Compare Source](https://github.com/eslint/eslint/compare/v9.11.0...v9.11.1)

#### Bug Fixes

-   [`20fd916`](20fd91689f) fix: add `@eslint/core`, `@types/estree`, & `@types/json-schema` deps ([#&#8203;18938](https://github.com/eslint/eslint/issues/18938)) (Nitin Kumar)
-   [`2738322`](27383226b8) fix: add missing types for `require-atomic-updates` rule ([#&#8203;18937](https://github.com/eslint/eslint/issues/18937)) (Kristóf Poduszló)
-   [`d71ff30`](d71ff3068c) fix: add missing types for `object-shorthand` rule ([#&#8203;18935](https://github.com/eslint/eslint/issues/18935)) (Kristóf Poduszló)
-   [`561cadc`](561cadc543) fix: add missing types for `no-unsafe-negation` rule ([#&#8203;18932](https://github.com/eslint/eslint/issues/18932)) (Kristóf Poduszló)
-   [`8843656`](8843656f9b) fix: add missing types for `no-underscore-dangle` rule ([#&#8203;18931](https://github.com/eslint/eslint/issues/18931)) (Kristóf Poduszló)
-   [`92cde5c`](92cde5c6da) fix: add missing types for `no-shadow` rule ([#&#8203;18930](https://github.com/eslint/eslint/issues/18930)) (Kristóf Poduszló)
-   [`b3cbe11`](b3cbe11a92) fix: add missing types for `no-sequences` rule ([#&#8203;18929](https://github.com/eslint/eslint/issues/18929)) (Kristóf Poduszló)
-   [`976f77f`](976f77f7f6) fix: add missing types for `no-unused-expressions` rule ([#&#8203;18933](https://github.com/eslint/eslint/issues/18933)) (Kristóf Poduszló)

#### Documentation

-   [`3eff709`](3eff709637) docs: replace deprecated `Linter.FlatConfig` type with `Linter.Config` ([#&#8203;18941](https://github.com/eslint/eslint/issues/18941)) (Carlos Meira)

#### Chores

-   [`df4a859`](df4a859b4c) chore: upgrade [@&#8203;eslint/js](https://github.com/eslint/js)[@&#8203;9](https://github.com/9).11.1 ([#&#8203;18943](https://github.com/eslint/eslint/issues/18943)) (Milos Djermanovic)
-   [`36d8095`](36d8095308) chore: package.json update for [@&#8203;eslint/js](https://github.com/eslint/js) release (Jenkins)

### [`v9.11.0`](https://github.com/eslint/eslint/releases/tag/v9.11.0)

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

#### Features

-   [`ec30c73`](ec30c7349e) feat: add "eslint/universal" to export `Linter` ([#&#8203;18883](https://github.com/eslint/eslint/issues/18883)) (唯然)
-   [`c591da6`](c591da68d4) feat: Add language to types ([#&#8203;18917](https://github.com/eslint/eslint/issues/18917)) (Nicholas C. Zakas)
-   [`492eb8f`](492eb8f34e) feat: limit the name given to `ImportSpecifier` in `id-length` ([#&#8203;18861](https://github.com/eslint/eslint/issues/18861)) (Tanuj Kanti)
-   [`19c6856`](19c685608d) feat: Add `no-useless-constructor` suggestion ([#&#8203;18799](https://github.com/eslint/eslint/issues/18799)) (Jordan Thomson)
-   [`a48f8c2`](a48f8c29b5) feat: add type `FormatterFunction`, update `LoadedFormatter` ([#&#8203;18872](https://github.com/eslint/eslint/issues/18872)) (Francesco Trotta)

#### Bug Fixes

-   [`5e5f39b`](5e5f39b825) fix: add missing types for `no-restricted-exports` rule ([#&#8203;18914](https://github.com/eslint/eslint/issues/18914)) (Kristóf Poduszló)
-   [`8f630eb`](8f630eb579) fix: add missing types for `no-param-reassign` options ([#&#8203;18906](https://github.com/eslint/eslint/issues/18906)) (Kristóf Poduszló)
-   [`d715781`](d71578124f) fix: add missing types for `no-extra-boolean-cast` options ([#&#8203;18902](https://github.com/eslint/eslint/issues/18902)) (Kristóf Poduszló)
-   [`2de5742`](2de5742682) fix: add missing types for `no-misleading-character-class` options ([#&#8203;18905](https://github.com/eslint/eslint/issues/18905)) (Kristóf Poduszló)
-   [`c153084`](c153084250) fix: add missing types for `no-implicit-coercion` options ([#&#8203;18903](https://github.com/eslint/eslint/issues/18903)) (Kristóf Poduszló)
-   [`fa11b2e`](fa11b2ede6) fix: add missing types for `no-empty-function` options ([#&#8203;18901](https://github.com/eslint/eslint/issues/18901)) (Kristóf Poduszló)
-   [`a0deed1`](a0deed122a) fix: add missing types for `camelcase` options ([#&#8203;18897](https://github.com/eslint/eslint/issues/18897)) (Kristóf Poduszló)

#### Documentation

-   [`e4e5709`](e4e5709522) docs: correct `prefer-object-has-own` type definition comment ([#&#8203;18924](https://github.com/eslint/eslint/issues/18924)) (Nitin Kumar)
-   [`91cbd18`](91cbd18c70) docs: add unicode abbreviations in no-irregular-whitespace rule ([#&#8203;18894](https://github.com/eslint/eslint/issues/18894)) (Alix Royere)
-   [`59cfc0f`](59cfc0f1b3) docs: clarify `resultsMeta` in `LoadedFormatter` type ([#&#8203;18881](https://github.com/eslint/eslint/issues/18881)) (Milos Djermanovic)
-   [`adcc50d`](adcc50dbf1) docs: Update README (GitHub Actions Bot)
-   [`4edac1a`](4edac1a325) docs: Update README (GitHub Actions Bot)

#### Build Related

-   [`959d360`](959d360be5) build: Support updates to previous major versions ([#&#8203;18871](https://github.com/eslint/eslint/issues/18871)) (Milos Djermanovic)

#### Chores

-   [`ca21a64`](ca21a64ed0) chore: upgrade [@&#8203;eslint/js](https://github.com/eslint/js)[@&#8203;9](https://github.com/9).11.0 ([#&#8203;18927](https://github.com/eslint/eslint/issues/18927)) (Milos Djermanovic)
-   [`a10f90a`](a10f90af35) chore: package.json update for [@&#8203;eslint/js](https://github.com/eslint/js) release (Jenkins)
-   [`e4e02cc`](e4e02cc693) refactor: Extract processor logic into ProcessorService ([#&#8203;18818](https://github.com/eslint/eslint/issues/18818)) (Nicholas C. Zakas)
-   [`6d4484d`](6d4484d9c1) chore: updates for v8.57.1 release (Jenkins)
-   [`71f37c5`](71f37c5bf0) refactor: use optional chaining when validating config rules ([#&#8203;18893](https://github.com/eslint/eslint/issues/18893)) (lucasrmendonca)
-   [`2c2805f`](2c2805f8ee) chore: Add PR note to all templates ([#&#8203;18892](https://github.com/eslint/eslint/issues/18892)) (Nicholas C. Zakas)
-   [`7b852ce`](7b852ce59e) refactor: use `Directive` class from `@eslint/plugin-kit` ([#&#8203;18884](https://github.com/eslint/eslint/issues/18884)) (Milos Djermanovic)
-   [`d594ddd`](d594ddd2cc) chore: update dependency [@&#8203;eslint/core](https://github.com/eslint/core) to ^0.6.0 ([#&#8203;18863](https://github.com/eslint/eslint/issues/18863)) (renovate\[bot])
-   [`78b2421`](78b2421e28) chore: Update change.yml ([#&#8203;18882](https://github.com/eslint/eslint/issues/18882)) (Nicholas C. Zakas)
-   [`a416f0a`](a416f0a270) chore: enable `$ExpectType` comments in .ts files ([#&#8203;18869](https://github.com/eslint/eslint/issues/18869)) (Francesco Trotta)

</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: #231
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:32:41 +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 @eslint/js to v9.13.0 (#231) 2024-10-21 17:32:41 +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