@nkzw/eslint-plugin-fbtee 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -328,17 +328,13 @@ const Greeting = () => (
328
328
  ```tsx
329
329
  <fbt desc="Feed item">
330
330
  <fbt:list items={users} name="userList" />{' '}
331
- <fbt:plural
332
- count={users.length}
333
- many="are"
334
- name="number of players"
335
- showCount="no"
336
- >
337
- is
338
- </fbt:plural>{' '}
339
- playing on
340
- <fbt:param name="mapName">{game.mapName}</fbt:param>
341
- </fbt>
331
+ won the game against
332
+ <fbt:plural count={bots} many="bots" name="numberOfBots" showCount="ifMany">
333
+ a bot
334
+ </fbt:plural> on the map
335
+ <fbt:param name="mapName">{game.mapName}</fbt:param>.
336
+ </fbt:plural>
337
+ // Example Output: "Alice, Bob and Charlie won the game against 2 bots on the map Forest Battle."
342
338
  ```
343
339
 
344
340
  _Note: `<fbt>` is auto-imported for you by the `@nkzw/babel-preset-fbtee` plugin._
@@ -681,7 +677,7 @@ The open-source version of `fbt`, however, became unmaintained, difficult to set
681
677
 
682
678
  **fbtee** remains compatible with `fbt` and migration is straightforward.
683
679
 
684
- ## Migration from `fbt`:
680
+ ## Migration from `fbt`
685
681
 
686
682
  **fbtee** is compatible with `fbt`. If you are already using `fbt`, migrating to fbtee is straightforward:
687
683
 
package/lib/index.cjs CHANGED
@@ -21,11 +21,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  }) : target, mod));
22
22
 
23
23
  //#endregion
24
- const __typescript_eslint_utils = __toESM(require("@typescript-eslint/utils"));
24
+ let __typescript_eslint_utils = require("@typescript-eslint/utils");
25
+ __typescript_eslint_utils = __toESM(__typescript_eslint_utils);
25
26
 
26
27
  //#region package.json
27
28
  var name = "@nkzw/eslint-plugin-fbtee";
28
- var version = "1.3.2";
29
+ var version = "1.5.0";
29
30
  var description = "";
30
31
  var keywords = [];
31
32
  var repository = {
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ import { ESLintUtils } from "@typescript-eslint/utils";
2
2
 
3
3
  //#region package.json
4
4
  var name = "@nkzw/eslint-plugin-fbtee";
5
- var version = "1.3.2";
5
+ var version = "1.5.0";
6
6
  var description = "";
7
7
  var keywords = [];
8
8
  var repository = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkzw/eslint-plugin-fbtee",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "repository": {