diff --git a/.eslintrc.js b/.eslintrc.js index 8351d1b973..3c4e5a23b7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -59,6 +59,11 @@ module.exports = { "SwitchCase": 1, }], "no-unused-vars": "off", + "space-before-function-paren": ["error", { + "anonymous": "always", + "named": "never", + "asyncArrow": "always", + }], "unused-imports/no-unused-imports": "error", "unused-imports/no-unused-vars": [ "warn", { @@ -117,6 +122,12 @@ module.exports = { "@typescript-eslint/ban-ts-comment": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-unused-vars": "off", + "space-before-function-paren": "off", + "@typescript-eslint/space-before-function-paren": ["error", { + "anonymous": "always", + "named": "never", + "asyncArrow": "always", + }], "unused-imports/no-unused-imports-ts": process.env.PROD === "true" ? "error" : "warn", "unused-imports/no-unused-vars-ts": [ "warn", { @@ -188,6 +199,12 @@ module.exports = { "@typescript-eslint/no-empty-function": "off", "react/display-name": "off", "@typescript-eslint/no-unused-vars": "off", + "space-before-function-paren": "off", + "@typescript-eslint/space-before-function-paren": ["error", { + "anonymous": "always", + "named": "never", + "asyncArrow": "always", + }], "unused-imports/no-unused-imports-ts": process.env.PROD === "true" ? "error" : "warn", "unused-imports/no-unused-vars-ts": [ "warn", { diff --git a/src/common/utils/buildUrl.ts b/src/common/utils/buildUrl.ts index 20e6e7e861..03909917eb 100644 --- a/src/common/utils/buildUrl.ts +++ b/src/common/utils/buildUrl.ts @@ -45,7 +45,7 @@ export function buildURL
(path: str export function buildURLPositional
(path: string | any) {
const builder = buildURL(path);
- return function(params?: P, query?: Q, fragment?: string): string {
+ return function (params?: P, query?: Q, fragment?: string): string {
return builder({ params, query, fragment });
};
}
diff --git a/src/renderer/components/+user-management/+service-accounts/details.tsx b/src/renderer/components/+user-management/+service-accounts/details.tsx
index ee19079c40..ce1352f705 100644
--- a/src/renderer/components/+user-management/+service-accounts/details.tsx
+++ b/src/renderer/components/+user-management/+service-accounts/details.tsx
@@ -59,7 +59,7 @@ export class ServiceAccountsDetails extends React.Component