Skip to content

Commit

Permalink
fix(eslint): eslint rule no-unused-vars invalid (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackHole1 committed Sep 3, 2021
1 parent c7e49ad commit 7d71753
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .eslint.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ const eslintCommon = {
"@typescript-eslint/quotes": ["error", "double"],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
args: "after-used",
argsIgnorePattern: "^_",
},
],
},
overrides: [
{
Expand Down
2 changes: 1 addition & 1 deletion web/flat-web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { react } = require("../../.eslint.common.js")
const { react } = require("../../.eslint.common.js");

module.exports = {
...react,
Expand Down
2 changes: 1 addition & 1 deletion web/flat-web/src/tasks/init-service-works.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const registerServiceWork = (): void => {
if (navigator.serviceWorker && navigator.serviceWorker.register) {
navigator.serviceWorker
.register("/worker.js")
.then(registration => {
.then(_registration => {
console.log("registration finish");
})
.catch(error => {
Expand Down

0 comments on commit 7d71753

Please sign in to comment.