use strict eslint config

main
Inga 🏳‍🌈 1 year 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'], plugins: ['@typescript-eslint/eslint-plugin'],
extends: [ extends: [
'plugin:@typescript-eslint/recommended', 'eslint:recommended',
'plugin:@typescript-eslint/strict-type-checked',
'plugin:prettier/recommended', 'plugin:prettier/recommended',
], ],
root: true, root: true,
@ -19,7 +20,6 @@ module.exports = {
rules: { rules: {
'@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off'
'@typescript-eslint/no-explicit-any': 'off',
}, },
}; };

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

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

Loading…
Cancel
Save