diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 437b201..263d3e9 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -6,15 +6,15 @@ extends: - plugin:github/recommended - plugin:promise/recommended - plugin:regexp/recommended - - plugin:array-func/recommended + #- plugin:array-func/recommended - plugin:optimize-regex/recommended - plugin:import/recommended - plugin:unicorn/recommended - - plugin:security/recommended - - plugin:sonarjs/recommended + #- plugin:security/recommended + #- plugin:sonarjs/recommended - plugin:ava/recommended - xo - - prettier + #- prettier plugins: - '@typescript-eslint' @@ -22,7 +22,7 @@ plugins: - github - promise - regexp - - array-func + #- array-func - optimize-regex - no-constructor-bind - import @@ -45,7 +45,7 @@ overrides: - plugin:github/typescript - plugin:import/typescript - xo-typescript - - prettier + #- prettier parserOptions: ecmaVersion: 2020 project: './**/tsconfig*.json' @@ -78,7 +78,7 @@ overrides: { selector: typeLike, format: [PascalCase] }, ] - '@typescript-eslint/restrict-template-expressions': off + '@typescript-eslint/restrict-template-expressions': 0 '@typescript-eslint/no-shadow': warn '@typescript-eslint/no-unused-vars': [ @@ -114,7 +114,7 @@ rules: */ onNonMatchingHeader: append nonMatchingTolerance: 0.7 - sonarjs/no-duplicate-string: [warn, 5] + sonarjs/no-duplicate-string: [warn, { threshold: 5 }] sonarjs/cognitive-complexity: warn eslint-comments/no-unused-disable: off import/extensions: off @@ -125,8 +125,8 @@ rules: i18n-text/no-en: off eslint-comments/no-use: off no-secrets/no-secrets: [error, { tolerance: 5 }] - no-empty-label: off - no-warning-comments: off + no-empty-label: 0 + no-warning-comments: 0 node/no-missing-import: off import/no-unresolved: off unicorn/prefer-spread: off @@ -137,3 +137,5 @@ rules: ava/no-import-test-files: off ava/no-skip-test: warn ava/no-skip-assert: warn + # broken + prettier/prettier: off diff --git a/src/index.ts b/src/index.ts index ccb38f2..504b47d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -117,14 +117,14 @@ async function ensureAllPathsExist(conn: OADAClient) { if (cError.status !== 404) { error( { error: cError }, - `ensureAllPathsExist: Tried to get ${path}, but result was something other than 200 or 404` + `ensureAllPathsExist: Tried to get ${path}, but result was something other than 200 or 404`, ); return; } info( 'ensureAllPathsExist: Path %s did not exist, doing tree put to create it', - path + path, ); await conn.put({ path, data: {}, tree }); return; @@ -132,10 +132,10 @@ async function ensureAllPathsExist(conn: OADAClient) { info( 'ensureAllPathsExist: Path %s exists already, leaving as-is', - path + path, ); - } - ) + }, + ), ); } @@ -147,7 +147,7 @@ await Promise.race( fatal({ error: cError }, `Error running unfisk for token ${token}`); throw cError as Error; } - }) + }), ); /** diff --git a/test/external.test.ts b/test/external.test.ts index 78fc037..0cb92ac 100644 --- a/test/external.test.ts +++ b/test/external.test.ts @@ -30,7 +30,7 @@ import testasn from './testasn.js'; // DO NOT include ../ because we are testing externally. const domain = config.get('oada.domain'); -const token = config.get('oada.token')[0]!; +const token = config.get('oada.token')[0]; const asnKey = 'UNFISK_TEST_ASN1'; const asnID = `resources/${asnKey}`;