Skip to content

automatically reformat code #58

@pdurbin

Description

@pdurbin

As a test I just messed with some code and gave it some awful formatting:

import { ApiRepository } from '../../../core/infra/repositories/ApiRepository'; import { IAuthRepository } from '../../domain/repositories/IAuthRepository';

export class AuthRepository extends ApiRepository implements IAuthRepository {
 public async logout(): Promise<void> {
     return this.doPost('/logout', '')
         .then(() => undefined)
            .catch((error) => {
               throw error;
                    });
                      }
                           }

I was able to push it to a branch (which I plan to delete but for now you can see the commit at fbebab5).

I would love to have the feature from the frontend where code is formatted automatically. It was added somewhere around here: IQSS/dataverse-frontend@f9af164

There's some discussion here as well: IQSS/dataverse-frontend#4 (comment)

That is to say, it would be great to reformat the code automatically before it is pushed to a branch. This will keep our code formatted the same way no matter how the code is edited.

Metadata

Metadata

Assignees

Labels

Size: 10A percentage of a sprint. 7 hours.pm.GREI-d-2.7.1NIH, yr2, aim7, task1: R&D UI modules for creating datasets and supporting publishing workflowspm.GREI-d-2.7.2NIH, yr2, aim7, task2: Implement UI modules for creating datasets and publishing workflows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions