Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
aboodman committed Dec 2, 2023
1 parent f9a8584 commit 0686a0d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
26 changes: 16 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json",
"project": "./tsconfig.json"
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "next", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"next",
"prettier"
],
"rules": {
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/naming-convention": [
Expand All @@ -29,17 +34,18 @@
"error",
{
"VariableDeclarator": {
"object": true,
},
"object": true
}
},
{
"enforceForRenamedProperties": false,
},
"enforceForRenamedProperties": false
}
],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}]
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
]
},
"plugins": [
"react", "@typescript-eslint"
]
"plugins": ["react", "@typescript-eslint"]
}
4 changes: 2 additions & 2 deletions .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
cache: "npm"
- name: npm install
run: npm install
- run: npm run check-format
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: 'npm'
cache: "npm"
- name: npm install
run: npm install
- run: npm run build
22 changes: 11 additions & 11 deletions frontend/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,8 @@ const App = ({ rep, undoManager }: AppProps) => {

const handleUpdateIssues = useCallback(
async (issueUpdates: Array<IssueUpdate>) => {
const uChanges: Array<IssueUpdateWithID> =
issueUpdates.map<IssueUpdateWithID>((issueUpdate) => {
const uChanges: Array<IssueUpdateWithID> = issueUpdates.map<IssueUpdateWithID>(
(issueUpdate) => {
const undoChanges = pickBy(
issueUpdate.issue,
(_, key) => key in issueUpdate.issueChanges
Expand All @@ -450,7 +450,8 @@ const App = ({ rep, undoManager }: AppProps) => {
};
}
return rv;
});
}
);
await undoManager.add({
execute: () =>
rep.mutate.updateIssues(
Expand Down Expand Up @@ -480,14 +481,13 @@ const App = ({ rep, undoManager }: AppProps) => {
},
[setDetailIssueID]
);
const handleCloseMenu = useCallback(
() => setMenuVisible(false),
[setMenuVisible]
);
const handleToggleMenu = useCallback(
() => setMenuVisible(!menuVisible),
[setMenuVisible, menuVisible]
);
const handleCloseMenu = useCallback(() => setMenuVisible(false), [
setMenuVisible,
]);
const handleToggleMenu = useCallback(() => setMenuVisible(!menuVisible), [
setMenuVisible,
menuVisible,
]);

const handlers = {
undo: () => undoManager.undo(),
Expand Down

0 comments on commit 0686a0d

Please sign in to comment.