Skip to content

Commit

Permalink
Use stricter ESLint config
Browse files Browse the repository at this point in the history
  • Loading branch information
lydell committed Aug 19, 2023
1 parent 19bff28 commit 57746ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
rules: {
...require("@typescript-eslint/eslint-plugin").configs["eslint-recommended"]
.overrides[0].rules,
...require("@typescript-eslint/eslint-plugin").configs.recommended.rules,
...require("@typescript-eslint/eslint-plugin").configs.strict.rules,
"@typescript-eslint/no-var-requires": "off",
"arrow-body-style": "error",
curly: "error",
Expand All @@ -35,9 +35,9 @@ module.exports = {
},
rules: {
...require("@typescript-eslint/eslint-plugin").configs[
"recommended-type-checked"
"strict-type-checked"
].rules,
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/strict-boolean-expressions": [
"error",
Expand Down
1 change: 0 additions & 1 deletion run-pty.js
Original file line number Diff line number Diff line change
Expand Up @@ -2340,7 +2340,6 @@ const run = () => {
}
};

// @ts-ignore
if (require.main === module) {
run();
}
Expand Down

0 comments on commit 57746ba

Please sign in to comment.