Skip to content

Commit

Permalink
feat: fix unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danieloprado committed Jun 3, 2024
1 parent 081d5f0 commit d28e5ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions configs/default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
const { fixupPluginRules } = require('@eslint/compat');
const pluginImport = require('eslint-plugin-import');
const pluginPrettier = require('eslint-plugin-prettier');
const pluginUnusedImports = require('eslint-plugin-unused-imports');

/** @type import('eslint').Linter.FlatConfig */
module.exports = {
Expand All @@ -8,8 +10,9 @@ module.exports = {
'import/internal-regex': '(^@eduzz|react|^@nestjs|^~)'
},
plugins: {
prettier: pluginPrettier,
import: pluginImport
'prettier': pluginPrettier,
'import': pluginImport,
'unused-imports': pluginUnusedImports
},
languageOptions: {
parserOptions: {
Expand Down Expand Up @@ -89,6 +92,7 @@ module.exports = {
{ pattern: '@/**', group: 'internal', position: 'after' }
]
}
]
],
'unused-imports/no-unused-imports': 'error'
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@eduzz/eslint-config",
"private": false,
"version": "2.1.0",
"version": "2.1.1",
"keywords": [
"eduzz",
"eslint"
Expand Down

0 comments on commit d28e5ed

Please sign in to comment.