- 1167e57: Added a rule for unnecessary array allocations
- 5bc1f41: Export
./rulesto avoid dependency oneslint
- 9299ce4: Added a rule for restricting asset imports
-
d452d2b: Added rule for types only modules. Enable it like below:
{ files: ["**/types.ts"], rules: { "@rnx-kit/type-definitions-only": "error", }, }
- ed5fe35: Fixed import statements so that the TypeScript code can be used directly
- e3883d0: Bumped
eslint-plugin-react-hooksto 5.2.0
- 1c61795: Provide a proper error message when a module tries to re-export from another module containing no named exports
- 1d73d33: Enabled
no-unneeded-ternaryas a warning in the recommended preset, and as an error in the strict preset.
- a636b26: Enabled
no-foreach-with-captured-variablesas a warning
- 23228ab: Port no-foreach-with-captured-variables from outlook
- 4f18f88: Bump
@react-native/eslint-pluginto 0.76
- 65fa41a: Handle case where exported specifier is a string literal
- ca0052f: Inline recommended
react-hooksrules so we no longer have to depend on@eslint/eslintrc
- 57013d2: Bumped
eslint-plugin-reactandeslint-plugin-react-hooksto better support ESLint 9.x
- 05c6b97: Bumped
typescript-eslintto 8.0 - d091088: Avoid dupes of
@eslint/js
- 55a4b5e: Bumped
@react-native/eslint-pluginto 0.75
- 3afb5fa: Bump minimum Node version to 16.17
- da519d3: Properly handle packages that are missing a default entry in their exports map
- 576f29a: Migrate to
typescript-eslint
-
1eb8c14: Bumped
@typescript-eslint/eslint-pluginto v7. This brings the following breaking changes:- Update Node.js engine requirement to ^18.18.0 || >=20.0.0. This means we are dropping support for Node 16, 19, and Node 18 versions prior to 18.18.0. Note that this is the same requirement that ESLint v9 will impose.
- Update the ESLint peer dependency requirement to ^8.56.0.
For more details, check their blog post: https://typescript-eslint.io/blog/announcing-typescript-eslint-v7/
- 2ba27400: ESLint 8.23+ and its new config system is now required — read more about ESLint's new config system, flat config, here: https://eslint.org/blog/2022/08/new-config-system-part-2/
- 9842205d: Exclude
eslint-plugin-reactifreactis not installed
- 5da23646: Prepare
no-export-allfor ESLint v9 - d51cee8a: Add linter rules to ensure
PlatformColor()andDynamicColorIOS()are used correctly
- a442ffd4: Cache access to
NODE_ENV
- d67d59d2: Use
context.filenameif available (starting with ESLint v8.40)
-
950fcf0a: Bumped typescript-eslint to v6.
typescript-eslint v6 contains breaking changes! The most notable ones are:
- Dropped support for Node 12 and 14.
- Dropped support for ESLint v6.
For full details, see their announcement: https://typescript-eslint.io/blog/announcing-typescript-eslint-v6
- 12421fa0: no-export-all: Don't flag or autofix namespace exports
(
export * as ns) - 0ac2d516: no-export-all: add support in fixer for TS
export import =
- 44ab287f: Fixed
@rnx-kit/no-export-allautofix treatingexport declareas types
- 218e1a76: Added
no-const-enumrule
- 8da1b4dd: Added
consistent-type-importsrule
- 3ee09f6: Fix Rush workspaces not being detected when set up as a post-install step
- dec7c60: Fix no-export-all getting confused when the module id contains the
.jsextension due to how ESM works
- 5f2e378: Enable
react-hooks/recommended
- b3308e9: Remove unused
eslint-plugin-jest
- e0e19ad: Declarations should be exported as types
Tue, 30 Nov 2021 17:24:14 GMT
- Drop optional chaining to support older Node versions (4123478+tido64@users.noreply.github.com)
Fri, 26 Nov 2021 09:20:19 GMT
- Add proper support for
constenums (4123478+tido64@users.noreply.github.com)
Tue, 23 Nov 2021 07:25:36 GMT
- no-export-all: add support for namespaces (4123478+tido64@users.noreply.github.com)
Fri, 19 Nov 2021 09:22:42 GMT
- no-export-all: Fix dupes sometimes showing up in fixed code (4123478+tido64@users.noreply.github.com)
Tue, 09 Nov 2021 19:26:57 GMT
- Handle
projectfield sometimes returning an array of strings, and add support for enums. (4123478+tido64@users.noreply.github.com)
Tue, 09 Nov 2021 08:21:42 GMT
- Prefer parsing
.d.tsover.jsso we don't lose type information (4123478+tido64@users.noreply.github.com)
Fri, 05 Nov 2021 19:24:49 GMT
- Fix no-export-all failing to parse files that are outside the TypeScript project (4123478+tido64@users.noreply.github.com)
Thu, 04 Nov 2021 17:54:44 GMT
- Adds
moduleto the list of main fields to consider, and options for setting max depth and enabling debug output. (4123478+tido64@users.noreply.github.com)
Wed, 03 Nov 2021 18:15:39 GMT
- Implemented fixer for
no-export-all(4123478+tido64@users.noreply.github.com)
Fri, 29 Oct 2021 12:14:31 GMT
- Enable
ignoreRestSiblingsto allow prop omission (4123478+tido64@users.noreply.github.com)
Fri, 29 Oct 2021 10:31:10 GMT
- Re-enable no-unused-vars. It looks like optional chaining is no longer causing false positives. (4123478+tido64@users.noreply.github.com)
Fri, 29 Oct 2021 08:51:30 GMT
- @rnx-kit/eslint-plugin recommended ESLint rules for React devs (4123478+tido64@users.noreply.github.com)