Skip to content

Commit 3c95d72

Browse files
committed
Prettier y lint configurados y arreglados
1 parent 294a009 commit 3c95d72

File tree

10 files changed

+36
-37
lines changed

10 files changed

+36
-37
lines changed

.eslintrc.json

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"plugin:@angular-eslint/template/process-inline-templates"
2424
],
2525
"plugins": [
26-
"@typescript-eslint",
2726
"@angular-eslint",
27+
"@typescript-eslint",
2828
"eslint-plugin-no-null",
2929
"eslint-plugin-unicorn",
3030
"eslint-plugin-rxjs"
@@ -150,13 +150,6 @@
150150
"error",
151151
"multi-line"
152152
],
153-
"indent": [
154-
"error",
155-
4,
156-
{
157-
"SwitchCase": 1
158-
}
159-
],
160153
"default-case": "off",
161154
"eol-last": "off",
162155
"guard-for-in": "off",
-8.89 MB
Binary file not shown.

demo/app/authors/authors.service.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ export class Author extends Resource {
1111
created_at: string;
1212
updated_at: string;
1313
} = {
14-
name: 'default name',
15-
date_of_birth: '',
16-
date_of_death: '',
17-
created_at: '',
18-
updated_at: ''
19-
};
14+
name: 'default name',
15+
date_of_birth: '',
16+
date_of_death: '',
17+
created_at: '',
18+
updated_at: ''
19+
};
2020

2121
public relationships: {
2222
books: DocumentCollection<Book>;
2323
photos: DocumentCollection<Photo>;
2424
} = {
25-
books: new DocumentCollection<Book>(),
26-
photos: new DocumentCollection<Photo>()
27-
};
25+
books: new DocumentCollection<Book>(),
26+
photos: new DocumentCollection<Photo>()
27+
};
2828
}
2929

3030
@Injectable()

demo/app/books/books.service.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ export class Book extends Resource {
1010
created_at: string;
1111
updated_at: string;
1212
} = {
13-
date_published: '',
14-
title: '',
15-
created_at: '',
16-
updated_at: ''
17-
};
13+
date_published: '',
14+
title: '',
15+
created_at: '',
16+
updated_at: ''
17+
};
1818

1919
public relationships: {
2020
author: DocumentResource<Author>;
2121
photos: DocumentCollection<Photo>;
2222
} = {
23-
author: new DocumentResource<Author>(),
24-
photos: new DocumentCollection<Photo>()
25-
};
23+
author: new DocumentResource<Author>(),
24+
photos: new DocumentCollection<Photo>()
25+
};
2626
}
2727

2828
@Injectable()

demo/app/photos/photos.service.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export class Photo extends Resource {
1515
created_at: string;
1616
updated_at: string;
1717
} = {
18-
title: '',
19-
uri: '',
20-
imageable_id: '',
21-
created_at: '',
22-
updated_at: ''
23-
};
18+
title: '',
19+
uri: '',
20+
imageable_id: '',
21+
created_at: '',
22+
updated_at: ''
23+
};
2424
}

demo/app/systems/systems.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ export class System extends Resource {
1010
books: DocumentCollection<Book>;
1111
photos: DocumentCollection<Photo>;
1212
} = {
13-
books: new DocumentCollection<Book>(),
14-
photos: new DocumentCollection<Photo>()
15-
};
13+
books: new DocumentCollection<Book>(),
14+
photos: new DocumentCollection<Photo>()
15+
};
1616
}
1717

1818
@Injectable()

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
"eslint-plugin-prefer-arrow": "1.2.3",
128128
"eslint-plugin-rxjs": "5.0.2",
129129
"eslint-plugin-unicorn": "51.0.1",
130+
"eslint-config-prettier": "9.0.0",
130131
"fake-indexeddb": "4.0.2",
131132
"faker": "5.5.3",
132133
"fs-extra": "11.2.0",

projects/ngx-jsonapi-lib/src/lib/decorators/autoregister.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @deprecated since version 3.0.0
33
*/
44
export function Autoregister() {
5-
return(target): any => {
5+
return (target): any => {
66
/**/
7-
}
7+
};
88
}

projects/ngx-jsonapi-lib/src/lib/interfaces/links.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export interface ILinks {
44
related?: {
55
href: string;
66
meta: object;
7-
}
7+
};
88
}

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5615,6 +5615,11 @@ escodegen@^2.0.0:
56155615
optionalDependencies:
56165616
source-map "~0.6.1"
56175617

5618+
eslint-config-prettier@9.0.0:
5619+
version "9.0.0"
5620+
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz#eb25485946dd0c66cd216a46232dc05451518d1f"
5621+
integrity sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==
5622+
56185623
eslint-etc@^5.1.0:
56195624
version "5.2.1"
56205625
resolved "https://registry.yarnpkg.com/eslint-etc/-/eslint-etc-5.2.1.tgz#43e2554a347677ebb6386c915f374918f2efcb87"

0 commit comments

Comments
 (0)