cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

Code for creating files, suggested by `spfx project upgrade` fails in PowerShell

Open waldekmastykarz opened this issue 3 years ago • 0 comments

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

waldekmastykarz avatar Jul 07 '22 10:07 waldekmastykarz