Skip to content

Commit 9eccd92

Browse files
committed
Eslint configurado
1 parent 5be3939 commit 9eccd92

File tree

7 files changed

+54
-50
lines changed

7 files changed

+54
-50
lines changed

.eslintrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"ignorePatterns": [
44
"projects/**/*",
55
"e2e/**/*",
6+
"dist/**/*",
67
"setup-jest.ts"
78
],
89
"overrides": [
@@ -19,11 +20,11 @@
1920
"createDefaultProgram": true
2021
},
2122
"extends": [
22-
"plugin:@angular-eslint/ng-cli-compat",
23-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
2423
"plugin:@angular-eslint/template/process-inline-templates"
2524
],
2625
"plugins": [
26+
"@typescript-eslint",
27+
"@angular-eslint",
2728
"eslint-plugin-no-null",
2829
"eslint-plugin-unicorn",
2930
"eslint-plugin-rxjs"

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.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { DocumentCollection } from 'ngx-jsonapi';
44
import { System, SystemsService } from './systems.service';
55

66
@Component({
7+
// eslint-disable-next-line @angular-eslint/component-selector
78
selector: 'bc-systems',
89
templateUrl: './systems.component.html',
910
styles: []

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: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -112,44 +112,46 @@
112112
"@angular/platform-browser-dynamic": "17.3.7",
113113
"@angular/platform-server": "17.3.7",
114114
"@angular/router": "17.3.7",
115-
"typescript": "5.4.5",
116-
"zone.js": "0.14.3",
117-
"jest": "29.7.0",
118-
"jest-environment-jsdom": "29.7.0",
119-
"jest-preset-angular": "13.1.2",
120-
"ts-jest": "29.1.1",
121-
"ts-node": "10.9.2",
122115
"@types/jest": "29.5.12",
123116
"@types/node": "20.11.30",
124-
"prettier": "3.2.5",
117+
"@typescript-eslint/eslint-plugin": "8.37.0",
118+
"@typescript-eslint/parser": "8.37.0",
119+
"codelyzer": "6.0.2",
120+
"coveralls": "3.1.1",
121+
"cpy-cli": "4.2.0",
122+
"deep-freeze": "0.0.1",
125123
"eslint": "8.57.0",
126124
"eslint-plugin-import": "2.29.1",
127125
"eslint-plugin-jsdoc": "46.9.0",
128126
"eslint-plugin-no-null": "1.0.2",
129127
"eslint-plugin-prefer-arrow": "1.2.3",
130128
"eslint-plugin-rxjs": "5.0.2",
131129
"eslint-plugin-unicorn": "51.0.1",
130+
"fake-indexeddb": "4.0.2",
131+
"faker": "5.5.3",
132+
"fs-extra": "11.2.0",
133+
"gh-pages": "6.0.0",
134+
"glob": "10.3.10",
135+
"jest": "29.7.0",
136+
"jest-environment-jsdom": "29.7.0",
137+
"jest-preset-angular": "13.1.2",
132138
"lint-staged": "15.2.0",
139+
"module-alias": "2.2.3",
140+
"ncp": "2.0.0",
133141
"ng-packagr": "20.1.0",
134-
"codelyzer": "6.0.2",
135-
"protractor": "7.0.0",
136142
"nyc": "15.1.0",
137-
"coveralls": "3.1.1",
138-
"cpy-cli": "4.2.0",
139-
"ncp": "2.0.0",
143+
"ora": "7.0.1",
144+
"prettier": "3.2.5",
145+
"protractor": "7.0.0",
140146
"rimraf": "5.0.5",
141147
"rollup": "4.16.4",
148+
"rxjs-tslint-rules": "4.7.2",
142149
"sorcery": "0.11.0",
150+
"ts-jest": "29.1.1",
143151
"ts-mockito": "2.6.1",
144-
"module-alias": "2.2.3",
145-
"deep-freeze": "0.0.1",
146-
"fake-indexeddb": "4.0.2",
147-
"faker": "5.5.3",
148-
"fs-extra": "11.2.0",
149-
"gh-pages": "6.0.0",
150-
"glob": "10.3.10",
151-
"ora": "7.0.1",
152-
"rxjs-tslint-rules": "4.7.2"
152+
"ts-node": "10.9.2",
153+
"typescript": "5.4.5",
154+
"zone.js": "0.14.3"
153155
},
154156
"dependencies": {
155157
"dexie": "4.0.7",

0 commit comments

Comments
 (0)