Merge pull request #228 from miqh/fix/197

Resolve violations of eslint-comments/no-use lint
This commit is contained in:
Robert 2020-09-23 15:20:37 +01:00 committed by GitHub
commit f2e557e77f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

@ -44,7 +44,6 @@
"@typescript-eslint/prefer-regexp-exec": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"eslint-comments/no-use": "off",
"func-style": "off",
"github/no-then": "off",
"import/no-extraneous-dependencies": "off",

2
lib/codeql.js generated
View file

@ -407,6 +407,8 @@ function getExtraOptionsFromEnv(path) {
*
* - the special terminal step name '*' in `options` matches all path steps
* - throws an exception if this conversion is impossible.
*
* Exported for testing.
*/
function getExtraOptions(options, path, pathInfo) {
var _a, _b, _c;

File diff suppressed because one or more lines are too long

View file

@ -620,8 +620,10 @@ function getExtraOptionsFromEnv(path: string[]) {
*
* - the special terminal step name '*' in `options` matches all path steps
* - throws an exception if this conversion is impossible.
*
* Exported for testing.
*/
export /* exported for testing */ function getExtraOptions(
export function getExtraOptions(
options: any,
path: string[],
pathInfo: string[]