use strict eslint config

main
Inga 🏳‍🌈 7 months ago
parent e3efb6bb23
commit 1c3ef056b2
  1. 6
      .eslintrc.js
  2. 2
      src/app.module.ts
  3. 2
      src/main.ts

@ -7,7 +7,8 @@ module.exports = {
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:prettier/recommended',
],
root: true,
@ -19,7 +20,6 @@ module.exports = {
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off'
},
};

@ -7,4 +7,6 @@ import { AppService } from './app.service';
controllers: [AppController],
providers: [AppService],
})
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
export class AppModule {}

@ -5,4 +5,4 @@ async function bootstrap() {
const app = await NestFactory.create(AppModule);
await app.listen(3000);
}
bootstrap();
void bootstrap();

Loading…
Cancel
Save