Skip to content

react-scripts@next.a671462c no-unused-args #5014

Closed
@javadoug

Description

@javadoug

react-scripts@next.a671462c build fails on CI=true because eslint rules no-unused-args.

This used to pass. I'm hoping it will still pass.

// production build and env var is set CI=true
function doStuffWithSomeArgs(argNotUsed, argUsed) {
    return argUsed + 1
}
Failed to compile.
warning 'argNotUsed' is defined but never used no-unused-vars

Environment

OS: macOS High Sierra 10.13.6
Node: 10.8.0
Yarn: 1.9.4
npm: 6.2.0
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: Not Found

Steps to Reproduce

build a file that has an unused arg before a used arg

// production build and env var is set CI=true
function doStuffWithSomeArgs(argNotUsed, argUsed) {
    return argUsed + 1
}

build with CI=true environment variable set

### Expected Behavior

should compile without warnings

### Actual Behavior

Failed to compile.
warning 'argNotUsed' is defined but never used no-unused-vars

### Reproducible Demo

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions