Skip to content

Commit

Permalink
chore(api): add eslint plugin and rules to detect unused modules and …
Browse files Browse the repository at this point in the history
…exports
  • Loading branch information
cedricss committed Jul 8, 2024
1 parent 5e886b0 commit 3119e98
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 15 deletions.
72 changes: 58 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion packages/reva-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,33 @@
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"prettier"
"prettier",
"import"
],
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
},
"import/ignore": [
"node_modules"
]
},
"rules": {
"import/no-unused-modules": [
2,
{
"unusedExports": true
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
Expand Down Expand Up @@ -123,6 +141,8 @@
"dotenv-cli": "^7.3.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"import-sort-style-module": "^6.0.0",
"jest": "^29.7.0",
Expand Down

0 comments on commit 3119e98

Please sign in to comment.