Skip to content

Commit 2b83a9c

Browse files
authored
chore: use default eslint rules (#1029)
1 parent faafb08 commit 2b83a9c

File tree

2 files changed

+3
-26
lines changed

2 files changed

+3
-26
lines changed

eslint.config.mjs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,6 @@ export default [
2121
ecmaVersion: "latest",
2222
sourceType: "module",
2323
},
24-
25-
rules: {
26-
camelcase: "off",
27-
"consistent-return": "off",
28-
curly: ["error", "multi-line"],
29-
"linebreak-style": ["error", "unix"],
30-
"max-len": ["error", 110, 2],
31-
"new-cap": "off",
32-
"no-cond-assign": "off",
33-
"no-confusing-arrow": "error",
34-
"no-console": "off",
35-
"no-constant-condition": "off",
36-
"no-empty": "off",
37-
"no-fallthrough": "off",
38-
"no-inner-declarations": "off",
39-
"no-labels": "off",
40-
"no-loop-func": "off",
41-
"no-process-exit": "off",
42-
"no-return-assign": "off",
43-
"no-shadow": "off",
44-
"no-underscore-dangle": "off",
45-
"no-unreachable": "off",
46-
"no-use-before-define": "off",
47-
strict: "off",
48-
},
4924
},
5025
eslintPluginPrettierRecommended,
5126
];

src/cache.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,9 @@ const handleCache = async function (directory, params) {
9090
// No errors mean that the file was previously cached
9191
// we just need to return it
9292
return await read(file, cacheCompression);
93-
} catch {}
93+
} catch {
94+
// conitnue if cache can't be read
95+
}
9496

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

0 commit comments

Comments
 (0)