Skip to content

Commit

Permalink
fix(eslint-plugin-nestjs-tools): follow eslint plugin recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
getlarge committed Sep 13, 2024
1 parent 93c44b4 commit 45dc0a0
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
38 changes: 33 additions & 5 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"dotenv": "^16.4.5",
"eslint": "~8.57.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-plugin": "^6.2.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-max-params-no-constructor": "^0.0.4",
"eslint-plugin-simple-import-sort": "^12.0.0",
Expand Down
6 changes: 4 additions & 2 deletions packages/eslint-plugin/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"extends": ["../../.eslintrc.json"],
"extends": ["../../.eslintrc.json", "plugin:eslint-plugin/recommended"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
"rules": {
"eslint-plugin/require-meta-docs-description": "error"
}
},
{
"files": ["*.ts", "*.tsx"],
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/lib/return-class-instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const rule = ESLintUtils.RuleCreator(() => __filename)({
meta: {
type: 'problem',
docs: {
description: 'Ensure service methods return class instances',
description: 'enforce service methods return class instances',
},
schema: [],
messages: {
Expand Down

0 comments on commit 45dc0a0

Please sign in to comment.