Skip to content

Commit a6053c1

Browse files
committed
restore stuff
1 parent 1d53f39 commit a6053c1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

eslint.config.js renamed to eslint.config.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ export default defineConfig([{
1313
prettierConfig,
1414
eslintConfigs.configs.javascript,
1515
eslintConfigs.configs.react,
16-
]}]
17-
);
16+
],
17+
rules: {
18+
"import/no-commonjs": "off",
19+
}
20+
}]);

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* global console */
1+
/* global console, module */
22
/* eslint no-console: "off" */
33

44
const callbacks = {};
@@ -67,7 +67,7 @@ const on = (level, callback) => {
6767
}
6868
};
6969

70-
export default {
70+
module.exports = {
7171
debug: (...values) => logJSON('debug', ...values),
7272
error: (...values) => logJSON('error', ...values),
7373
info: (...values) => logJSON('info', ...values),

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.6.1",
44
"description": "Super light-weight stand-in replacement for console logging to only output JSON",
55
"main": "index.js",
6-
"type": "module",
76
"scripts": {
87
"test": "jest",
98
"lint": "eslint index.js"

0 commit comments

Comments
 (0)