Open milanholemans opened 1 year ago
This is a tricky one. eslint is often modified to specific needs of the developer (team). Our suggestion stems from the first version when eslint was introduced in SPFx and where you had no .eslintrc.js
file at all. Beyond that, we haven't been comparing the contents to avoid overwriting personal changes. One thing that we could do though is to compare the contents and if they're exactly like the original contents shipped with the previous version, we'd suggest upgrade, otherwise we wouldn't. This approach would apply to all files that can (and reasonably would) be changed by developers.
I understand that, however developers can ignore this step if they want.
The issue here is that currently my project has no .eslintrc.js
file, and when I upgrade it, the command suggests me to add the file content of v1.15.0
. But like everyone knows, the eslint rules there are terrible because you cannot easily turn them on/off.
So in my specific case I had to lookup another v1.16.1
project and copy/paste that .eslintrc.json
file.
Understood. We've got two challenges that we need to address:
Description
While upgrading an SPFx project
v1.13.1
to the latest versionv1.16.1
I noticed that the command suggests to put outdated content in the.eslintrc.js
file.File content suggested by the command (this is the file content from
v1.15.0
):How the content should look like (file content from any version later than
v1.15.0
):Steps to reproduce
Pick any project with an SPFx version that is older than
v1.15.0
and upgrade it to the latest versionv1.16.1
.Expected results
I'm not going to paste it again because it will bloat the issue, but we expect the large content variant that's used from version
v1.15.2
onward.Actual results
Diagnostics
No response
CLI for Microsoft 365 version
v6.4.0
nodejs version
v16.18.1
Operating system (environment)
Windows
Shell
PowerShell
cli doctor
No response
Additional Info
No response