You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously this is not a valid thing to do, but it should cause eslint to report an error instead of throwing an exception. This is something I found with a test which verifies that my babel plugin does not blow up if a non-string is passed to require. For now I've had to add the test fixture files to xo.ignores in my package.json.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type boolean
at assertPath (path.js:39:11)
at Object.resolve (path.js:1085:7)
at isTestFile (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint-plugin-ava/rules/no-import-test-files.js:9:36)
at /usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint-plugin-ava/rules/no-import-test-files.js:26:31
at CallExpression (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint-plugin-ava/rules/no-import-test-files.js:65:5)
at listeners.(anonymous function).forEach.listener (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint/lib/util/safe-emitter.js:45:58)
at Array.forEach (<anonymous>)
at Object.emit (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint/lib/util/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint/lib/util/node-event-generator.js:251:26)
at NodeEventGenerator.applySelectors (/usr/src/npm/babel-plugin-template-html-minifier/node_modules/eslint/lib/util/node-event-generator.js:280:22)
Uh oh!
There was an error while loading. Please reload this page.
The following code causes
xo
to crash:Obviously this is not a valid thing to do, but it should cause eslint to report an error instead of throwing an exception. This is something I found with a test which verifies that my babel plugin does not blow up if a non-string is passed to
require
. For now I've had to add the test fixture files toxo.ignores
in my package.json.IssueHunt Summary
Sponsors (Total: $20.00)
Tips
The text was updated successfully, but these errors were encountered: