Eslint prevent duplicate import (#2516)
- eslint: prevent duplicate import
This commit is contained in:
@ -74,6 +74,7 @@ module.exports = {
|
||||
pathGroupsExcludedImportTypes: ['@nestjs/**'],
|
||||
},
|
||||
],
|
||||
'import/no-duplicates': ["error", {"considerQueryString": true}],
|
||||
'unused-imports/no-unused-imports': 'warn',
|
||||
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "no-type-imports" }],
|
||||
},
|
||||
|
||||
@ -1,7 +1,12 @@
|
||||
import { Resolver, Query, Args, Mutation } from '@nestjs/graphql';
|
||||
import {
|
||||
Resolver,
|
||||
Query,
|
||||
Args,
|
||||
Mutation,
|
||||
InputType,
|
||||
Field,
|
||||
} from '@nestjs/graphql';
|
||||
import { UseGuards } from '@nestjs/common';
|
||||
import { InputType } from '@nestjs/graphql';
|
||||
import { Field } from '@nestjs/graphql';
|
||||
|
||||
import { Prisma, Workspace } from '@prisma/client';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user