Permalink
5 lines (5 sloc)
145 Bytes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This brings us in line with the rest of the linting rules we are wanting to use on the npm cli repos. There were several hundred over-length lines and instead of editing them all by hand I piped the failing file through `prettier` and back through `eslint` just to save some time and energy. This means there may be some quirks in the linting those files have, but we can fix those if we see them and they bother us. Other than that there were about 50 lines that are legitimately over-length, all are now explicitly overridden. Many are tests that could be snapshots. PR-URL: #3995 Credit: @wraithgar Close: #3995 Reviewed-by: @lukekarrys
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (require.main === module) { | |
| require('./lib/cli.js')(process) | |
| } else { | |
| throw new Error('The programmatic API was removed in npm v8.0.0') | |
| } |