Difference between `nx affected:lint --fix` and `nx format:write`
Asked Answered
L

1

16

What is the difference between nx affected:lint --fix and nx format:write?

Different articles does seem to mention that code should be formatted with nx format:write command, but it doesn't seem that it fully relies on ESLint rules.

After formatting I keep having ESLint errors.

Am I missing something?

Thanks

Lamellate answered 20/5, 2020 at 17:12 Comment(0)
M
18

so nx format:write does the code formatting using the prettier config which is in the root of the project.

nx affected:lint --fix instead fixes linting problems.

Missy answered 22/7, 2020 at 20:21 Comment(1)
only one pity problem is that these 2 commands are unable not to lint/format unstaged files. They are basically "all or nothing"Counterespionage

© 2022 - 2024 — McMap. All rights reserved.