Resolve violations of eslint-comments/no-use lint

Resolves #197
This commit is contained in:
Michael Huynh 2020-09-23 20:25:45 +08:00
parent 481f3ce214
commit 80b408e704
No known key found for this signature in database
GPG key ID: 760127DAE4EDD351
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[]