1 | # @fluidframework/eslint-config-fluid Changelog
|
2 |
|
3 | ## [5.4.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v5.4.0)
|
4 |
|
5 | ### New no-unchecked-record-access rule
|
6 |
|
7 | Enabled new no-unchecked-record-access rule to enforce safe property access on index signature types.
|
8 |
|
9 | ### Disabled rules
|
10 |
|
11 | The following rules have been disabled in all configs because they conflict with formatter settings:
|
12 |
|
13 | - [@typescript-eslint/brace-style](https://typescript-eslint.io/rules/brace-style)
|
14 | - [unicorn/number-literal-case](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/number-literal-case.md)
|
15 |
|
16 | The following rules have been disabled for test code:
|
17 |
|
18 | - [unicorn/prefer-module](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/prefer-module.md)
|
19 |
|
20 | The following rules have been disabled due to frequency of false-positives reported:
|
21 |
|
22 | - [unicorn/no-useless-spread](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v48.0.1/docs/rules/no-useless-spread.md)
|
23 |
|
24 | ### @typescript-eslint/explicit-function-return-type changes
|
25 |
|
26 | The [allowExpressions](https://typescript-eslint.io/rules/explicit-function-return-type/#allowexpressions) option for
|
27 | the @typescript-eslint/explicit-function-return-type rule has been set to `true`.
|
28 |
|
29 | ### @typescript-eslint/no-explicit-any changes
|
30 |
|
31 | The [ignoreRestArgs](https://typescript-eslint.io/rules/no-explicit-any#ignorerestargs) option for
|
32 | the @typescript-eslint/no-explicit-any rule has been set to `true`.
|
33 |
|
34 | ### import/no-internal-modules changes
|
35 |
|
36 | All imports from @fluid-experimental packages are now permitted.
|
37 |
|
38 | ## [5.3.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v5.3.0)
|
39 |
|
40 | The import/order rule is enabled with the following settings:
|
41 |
|
42 | ```json
|
43 | [
|
44 | "error",
|
45 | {
|
46 | "newlines-between": "always",
|
47 | "alphabetize": {
|
48 | "order": "asc",
|
49 | "caseInsensitive": false
|
50 | }
|
51 | }
|
52 | ]
|
53 | ```
|
54 |
|
55 | ### eslint-import-resolver-typescript preferred over node
|
56 |
|
57 | Lint configurations previously specified both the `node` and `typescript` [resolvers](https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#resolvers), with the `node` resolver taking precedence.
|
58 |
|
59 | The precedence has been reversed in this release: [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) is now the preferred resolver.
|
60 |
|
61 | This may result in lint rules dependent on imported _types_ (rather than values) to correctly apply, e.g. `import/no-deprecated`.
|
62 |
|
63 | ### allow-ff-test-exports condition enabled
|
64 |
|
65 | The typescript import resolver now enables the "allow-ff-test-exports" condition, which adds support for linting files which reference FluidFramework test-only exports,
|
66 | such as id-compressor and merge-tree.
|
67 |
|
68 | ## [5.2.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v5.2.0)
|
69 |
|
70 | The import/order rule is now disabled in all configs.
|
71 |
|
72 | ## [5.1.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v5.1.0)
|
73 |
|
74 | Enables new API trimming rules.
|
75 |
|
76 | ## [5.0.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v5.0.0)
|
77 |
|
78 | Adds eslint-plugin-fluid to eslint-config-fluid. This new dependency adds new Fluid-specific rules.
|
79 |
|
80 | ## [4.0.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v4.0.0)
|
81 |
|
82 | Deprecates this package's `minimal` configuration.
|
83 | Consumers of that configuration will need to update their imports to refer to the renamed module: `minimal-deprecated.js`.
|
84 |
|
85 | ## [3.0.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v3.0.0)
|
86 |
|
87 | ### Update eslint-related dependencies
|
88 |
|
89 | eslint has been updated to version ~8.49.0. eslint plugins have also been updated to the latest version.
|
90 |
|
91 | ### Update prettier
|
92 |
|
93 | prettier has been updated to version ~3.0.3.
|
94 |
|
95 | ### Update #16699 typescript-eslint
|
96 |
|
97 | typescript-eslint has been updated to version ~6.7.2.
|
98 |
|
99 | ## [2.1.0](https://github.com/microsoft/FluidFramework/releases/tag/eslint-config-fluid_v2.1.0)
|
100 |
|
101 | ### Enable the import-no-deprecated rule
|
102 |
|
103 | The [import/no-deprecated](https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-deprecated.md) rule
|
104 | is now enabled for all configs except test files.
|