Skip to content

Commit

Permalink
Revert changes to .eslintrc.js
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <[email protected]>
  • Loading branch information
Swiddis committed Jan 3, 2024
1 parent 4e36bd7 commit 1f8a5db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ module.exports = {
'cypress/assertion-before-screenshot': 'warn',
'cypress/no-force': 'warn',
'cypress/no-async-tests': 'error',
// default no-unused-vars doesn't handle when vars are only used in types, use extended version
// See: https://typescript-eslint.io/rules/no-unused-vars
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error'
},
overrides: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ const suggestDataSources = async (type: string): Promise<Array<{ label: string }
console.error(`Unknown connection type: ${type}`);
return [];
}
} catch (err: any) {
} catch (err) {
console.error(err.message);
return [];
}
Expand Down Expand Up @@ -175,7 +175,7 @@ const runQuery = async (
await sleep(3000);
}
return { ok: false, error: new Error(poll.error) };

Check warning on line 177 in public/components/integrations/components/setup_integration.tsx

View check run for this annotation

Codecov / codecov/patch

public/components/integrations/components/setup_integration.tsx#L177

Added line #L177 was not covered by tests
} catch (err: any) {
} catch (err) {
console.error(err);
return { ok: false, error: err };
}
Expand Down

0 comments on commit 1f8a5db

Please sign in to comment.