Skip to content

Commit

Permalink
Drop rules that are already defaults
Browse files Browse the repository at this point in the history
or that don't currently cause errors
  • Loading branch information
fregante committed Jan 31, 2019
1 parent 15681c0 commit 6b3200a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,11 @@
"tsx"
],
"rules": {
"import/no-unresolved": "off",
"import/no-unassigned-import": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"vars": "all",
"varsIgnorePattern": "^React$",
"args": "after-used",
"ignoreRestSiblings": true,
"argsIgnorePattern": "^_$",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_$"
"varsIgnorePattern": "^React$"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
Expand Down
2 changes: 1 addition & 1 deletion source/features/ci-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function init() {

// Append to title (aware of forks and private repos)
appendBefore('.pagehead h1', '.fork-flag', await request);
} catch (_) {
} catch (error) {
// Network failure or no CI status found.
// Don’t try again
request = false;
Expand Down
2 changes: 1 addition & 1 deletion source/features/embed-gist-inline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function embedGist(link) {
files
);
}
} catch (_) {
} catch (error) {
info.remove(' (embed failed)');
}
}
Expand Down

0 comments on commit 6b3200a

Please sign in to comment.