Skip to content

Commit

Permalink
[ESLint] Ban variable name d
Browse files Browse the repository at this point in the history
  • Loading branch information
rikurauhala committed Aug 1, 2024
1 parent b04c4db commit 5144ded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"cypress/no-assigning-return-values": "off",
"cypress/unsafe-to-chain-command": "off",
"default-param-last": "off",
"id-denylist": ["error", "c", "e", "err", "t"],
"id-denylist": ["error", "c", "d", "e", "err", "t"],
"import/extensions": ["error", "never"],
"import/order": [
"error",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const CoursePopulation = () => {
const targetProp = separate ? 'semestercode' : 'yearcode'
const data = separate ? semesters.semesters : semesters.years
const dataValues = Object.values(data)
const findDateByCode = code => dataValues.find(d => d[targetProp] === code)
const findDateByCode = code => dataValues.find(data => data[targetProp] === code)

return {
dateFrom: findDateByCode(Number(from)).startdate,
Expand Down

0 comments on commit 5144ded

Please sign in to comment.