Skip to content

Commit

Permalink
Merge pull request #1282 from lpsinger/eslint-object-shorthand
Browse files Browse the repository at this point in the history
Enable eslint object-shorthand rule
  • Loading branch information
dakota002 authored Aug 24, 2023
2 parents f6e982d + 90fae03 commit 72f8ed0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const links: LinksFunction = () => [
...(cssBundleHref ? [{ rel: 'stylesheet', href: cssBundleHref }] : []),
...Object.entries(favicons).map(([size, href]) => ({
rel: 'icon',
href: href,
href,
sizes: `${size}x${size}`,
})),
]
Expand Down
2 changes: 1 addition & 1 deletion app/routes/circulars/circulars.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const getDynamoDBAutoIncrement = memoizee(
counterTableName,
counterTableKey: { tableName: 'circulars' },
counterTableAttributeName: 'circularId',
tableName: tableName,
tableName,
tableAttributeName: 'circularId',
initialValue: 1,
dangerously,
Expand Down
2 changes: 1 addition & 1 deletion app/routes/user.email.edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function action({ request }: DataFunctionArgs) {
name: name.toString(),
recipient: recipient.toString(),
created: 0,
topics: topics,
topics,
uuid: uuid?.toString(),
sub: user.sub,
}
Expand Down
8 changes: 4 additions & 4 deletions app/routes/user.endorsements/endorsements.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class EndorsementsServer {
await db.circular_endorsements.update({
Key: {
requestorSub: this.#sub,
endorserSub: endorserSub,
endorserSub,
},
UpdateExpression:
'set #status = :status, endorserEmail = :endorserEmail, requestorEmail = :requestorEmail, created = :created, note = :note',
Expand Down Expand Up @@ -187,7 +187,7 @@ export class EndorsementsServer {

const requestorEmail: string = (
await db.circular_endorsements.get({
requestorSub: requestorSub,
requestorSub,
endorserSub: this.#sub,
})
)?.requestorEmail
Expand All @@ -199,7 +199,7 @@ export class EndorsementsServer {

await db.circular_endorsements.update({
Key: {
requestorSub: requestorSub,
requestorSub,
endorserSub: this.#sub,
},
UpdateExpression: 'set #status = :status',
Expand Down Expand Up @@ -277,7 +277,7 @@ export class EndorsementsServer {
const param = {
Key: {
requestorSub: this.#sub,
endorserSub: endorserSub,
endorserSub,
},
TableName: tableName,
ConditionExpression: '#status = :pendingStatus',
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,14 @@
"prettier"
],
"rules": {
"no-implicit-coercion": [
"error"
],
"no-implicit-coercion": "error",
"no-restricted-globals": [
"error",
"event",
"name",
"origin"
],
"object-shorthand": "error",
"prefer-const": "error"
},
"overrides": [
Expand Down

0 comments on commit 72f8ed0

Please sign in to comment.