Skip to content

Commit

Permalink
chore: use default eslint rules (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored Jul 23, 2024
1 parent faafb08 commit 2b83a9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
25 changes: 0 additions & 25 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,31 +21,6 @@ export default [
ecmaVersion: "latest",
sourceType: "module",
},

rules: {
camelcase: "off",
"consistent-return": "off",
curly: ["error", "multi-line"],
"linebreak-style": ["error", "unix"],
"max-len": ["error", 110, 2],
"new-cap": "off",
"no-cond-assign": "off",
"no-confusing-arrow": "error",
"no-console": "off",
"no-constant-condition": "off",
"no-empty": "off",
"no-fallthrough": "off",
"no-inner-declarations": "off",
"no-labels": "off",
"no-loop-func": "off",
"no-process-exit": "off",
"no-return-assign": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"no-unreachable": "off",
"no-use-before-define": "off",
strict: "off",
},
},
eslintPluginPrettierRecommended,
];
4 changes: 3 additions & 1 deletion src/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ const handleCache = async function (directory, params) {
// No errors mean that the file was previously cached
// we just need to return it
return await read(file, cacheCompression);
} catch {}
} catch {
// conitnue if cache can't be read
}

const fallback =
typeof cacheDirectory !== "string" && directory !== os.tmpdir();
Expand Down

0 comments on commit 2b83a9c

Please sign in to comment.