[ESLint] Add "no-unused-imports" plugin (#426)

This commit is contained in:
schroda
2023-10-27 21:19:45 +02:00
committed by GitHub
parent 76d1ba835c
commit c8f02b3b8c
3 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
module.exports = {
extends: ['airbnb', 'airbnb-typescript', 'prettier'],
plugins: ['@typescript-eslint', 'no-relative-import-paths', 'prettier', 'header'],
plugins: ['unused-imports', '@typescript-eslint', 'no-relative-import-paths', 'prettier', 'header'],
parserOptions: {
project: ['./tsconfig.json', './tsconfig.node.json', './tools/scripts/tsconfig.json'],
},
@@ -8,6 +8,8 @@ module.exports = {
{
files: ['*'],
rules: {
'unused-imports/no-unused-imports': 'error',
'header/header': [
'error',
'block', // comment type