cli-microsoft365
cli-microsoft365 copied to clipboard
Code for creating files, suggested by `spfx project upgrade` fails in PowerShell
Discussed in https://github.com/pnp/cli-microsoft365/discussions/3492
Originally posted by Ofer-Gal July 6, 2022 when running:
m365 spfx project upgrade --output md > "upgrade-report.md"
there are the lines in the summary
cat > ".eslintrc.js" << EOF
require('@rushstack/eslint-config/patch/modern-module-resolution');
module.exports = {
extends: ['@microsoft/eslint-config-spfx/lib/profiles/react'],
parserOptions: { tsconfigRootDir: __dirname }
};
EOF
Running in powershell it errors. what should this do?
We need to revisit file-based rules and offer an alternative when the output shell is set to PowerShell