Skip to content

Commit

Permalink
Modify rule in eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mapeveri committed Jan 17, 2024
1 parent eaca44f commit 069869e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ module.exports = {
rules: {
'no-undef': ['error', { typeof: true }],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{
varsIgnorePattern: '^_',
argsIgnorePattern: '^_',
},
],
'no-use-before-define': 'error',

quotes: [2, 'single', { avoidEscape: true }],
Expand Down
2 changes: 1 addition & 1 deletion src/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ async function bootstrap() {
await rabbitMq.listen();
}

bootstrap();
void bootstrap();
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import FindCountriesQuery from './findCountriesQuery';
export default class FindCountriesQueryHandler implements IQueryHandler<FindCountriesQuery> {
constructor(@Inject(COUNTRY_REPOSITORY) private readonly countryRepository: CountryRepository) {}

/* eslint-disable @typescript-eslint/no-unused-vars */
async execute(query: FindCountriesQuery): Promise<QueryResponse> {
async execute(_query: FindCountriesQuery): Promise<QueryResponse> {
const countries = await this.countryRepository.findAll();
return FindCountriesResponse.fromCountries(countries);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ async function bootstrap() {
});
}

bootstrap();
void bootstrap();

0 comments on commit 069869e

Please sign in to comment.