Skip to content

Instantly share code, notes, and snippets.

@michaellopez
Last active October 25, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellopez/ae187969b64da017de295967cb0d7539 to your computer and use it in GitHub Desktop.
Save michaellopez/ae187969b64da017de295967cb0d7539 to your computer and use it in GitHub Desktop.
now: yarn lint errors
$ yarn lint
yarn run v1.19.1
$ eslint . --ext .ts,.js
.../now/packages/now-build-utils/src/debug.ts
1:63 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-build-utils/src/fs/glob.ts
48:30 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
49:23 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
55:25 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
.../now/packages/now-cli/src/util/dev/builder.ts
10:8 warning 'stripAnsi' is defined but never used @typescript-eslint/no-unused-vars
11:8 warning 'chalk' is defined but never used @typescript-eslint/no-unused-vars
.../now/packages/now-cli/src/util/index.js
73:24 warning 'debug' is assigned a value but never used @typescript-eslint/no-unused-vars
.../now/packages/now-next/src/dev-server.ts
14:16 error Require statement not part of import statement @typescript-eslint/no-var-requires
.../now/packages/now-next/src/now__bridge.ts
123:30 warning 'info' is defined but never used @typescript-eslint/no-unused-vars
.../now/packages/now-next/src/templated-launcher.ts
9:14 error Require statement not part of import statement @typescript-eslint/no-var-requires
.../now/packages/now-node/@types/zeit__ncc/index.d.ts
8:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-node/src/babel.ts
1:15 error Require statement not part of import statement @typescript-eslint/no-var-requires
2:40 error Require statement not part of import statement @typescript-eslint/no-var-requires
7:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-node/src/helpers.ts
92:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
99:56 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
196:60 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-node/src/types.ts
5:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
14:16 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
15:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-node/src/typescript.ts
132:12 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
154:5 error Unexpected var, use let or const instead no-var
160:26 error Require statement not part of import statement @typescript-eslint/no-var-requires
357:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-node-bridge/src/bridge.ts
123:30 warning 'info' is defined but never used @typescript-eslint/no-unused-vars
.../now/packages/now-python/test/fixtures/14-unicode-handler/probe.js
1:57 warning 'randomness' is defined but never used @typescript-eslint/no-unused-vars
.../now/packages/now-python/test/fixtures/15-binary-handler/probe.js
4:57 warning 'randomness' is defined but never used @typescript-eslint/no-unused-vars
.../now/packages/now-routing-utils/src/superstatic.ts
95:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
.../now/packages/now-ruby/index.ts
186:7 error Use 'as string | string[]' instead of '<string | string[]>' @typescript-eslint/consistent-type-assertions
.../now/packages/now-ruby/polyfill.ts
3:14 error Require statement not part of import statement @typescript-eslint/no-var-requires
.../now/test/benchmark.js
1:9 warning 'execSync' is assigned a value but never used @typescript-eslint/no-unused-vars
23:28 warning 'min' is defined but never used @typescript-eslint/no-unused-vars
.../now/test/lib/deployment/now-deploy.js
40:20 error Expected parentheses around arrow function argument arrow-parens
159:22 error Promise executor functions should not be async no-async-promise-executor
.../now/test/lib/deployment/test-deployment.js
123:100 error 'headers' is not defined no-undef
✖ 35 problems (11 errors, 24 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment