You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a lot of areas, which to choose comes down to personal preference and what people are comfortable with:
255
+
- If you want to lookup everything for a level, Python-style works better
256
+
- If you want to look up the level for a lint, ESLint-style works better
257
+
- Python-style is more succinct
258
+
- Python-style has fewer jagged edges
259
+
260
+
We ended up favoring more of the ESLint-style because:
261
+
- ESLint-style offers more syntax choices for lint config (inline tables,
262
+
standard tables, dotted keys). In general, the TOML experience for deeply
263
+
nested inline structures is not great.
264
+
- Right now, the only other lint field beside `level` is `priority`. In the future we may add lint configuration. While we shouldn't exclusively design for this possibility, all things being equal, we shouldn't make that potential future's experience worse
265
+
- ESLInt-style makes it easier to visually highlight groups and the lints related to those groups
266
+
- The cargo team has seen support issues that partially arise from a user
267
+
losing track of which `dependencies` table they are in because the list of
268
+
dependencies is large enough to have the header far enough away (or off
269
+
screen). This can similarly happen with Python-style as the context of the
270
+
level is in the table header. See [EmbarkStudios's lint list as an example of where this could happen](https://github.com/EmbarkStudios/rust-ecosystem/blob/81d62539a57add13f4b0f1c503e267b6de358f70/lints.toml)
271
+
- If we add support for packages to override some of the lints inherited from
272
+
the workspace, it is easier for users to map out this relationship with
0 commit comments