Skip to content

Commit

Permalink
fix: πŸ› prevent redundant renaming by adding no-useless-rename
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-guzman committed Apr 13, 2024
1 parent c9c2705 commit 077347f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/__snapshots__/factory.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ exports[`jimmyDotCodes > should create default configuration 1`] = `
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-with": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
Expand Down
1 change: 1 addition & 0 deletions src/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ exports[`should create default configuration 1`] = `
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-with": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
Expand Down
1 change: 1 addition & 0 deletions src/rules/__snapshots__/base.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ exports[`should create base rules 1`] = `
"no-useless-backreference": "error",
"no-useless-catch": "error",
"no-useless-escape": "error",
"no-useless-rename": "error",
"no-with": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
Expand Down
1 change: 1 addition & 0 deletions src/rules/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const baseRules = {
"curly": ["error", "multi-or-nest", "consistent"],
"arrow-body-style": ["error", "always"],
"object-shorthand": "error",
"no-useless-rename": "error",
"prefer-arrow-callback": "error",
"no-console": "warn",
} satisfies Rules;

0 comments on commit 077347f

Please sign in to comment.