Skip to content

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

Description

@waldekmastykarz

Discussed in #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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions