Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .depfu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
update_strategy: grouped
grouped_update_schedule: weekly
grouped_update_start_date: '2023-11-27'
grouped_update_time: '6:00'
grouped_out_of_spec: include
reasonably_up_to_date: true
pull_request_limit: 10
automerge_dev_strategy: minor
automerge_method: squash
engine_update_strategy: minor
auto_review_team_assign: developers
Binary file added .yarn/install-state.gz
Binary file not shown.
942 changes: 942 additions & 0 deletions .yarn/releases/yarn-4.9.2.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cacheMigrationMode: required-only

nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.9.2.cjs
62 changes: 17 additions & 45 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,48 +1,20 @@
import prettier from 'eslint-plugin-prettier';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import js from '@eslint/js';
import { FlatCompat } from '@eslint/eslintrc';
import { fixupPluginRules, fixupConfigRules } from '@eslint/compat';
import importPlugin from 'eslint-plugin-import';
import { defineConfig } from 'eslint/config';
import prettierConfig from 'eslint-plugin-prettier/recommended';
import eslintConfigs from '@dr.pogodin/eslint-configs';

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

export default [
...fixupConfigRules(compat.extends('airbnb')),
...compat.extends('prettier', 'plugin:prettier/recommended'),
{
plugins: {
prettier,
import: fixupPluginRules(importPlugin),
},

languageOptions: {
globals: {
fetch: 'readonly',
},
},

settings: {
'import/resolver': {
node: {},
exports: {},
},
},

rules: {
'react/jsx-filename-extension': 'off',
'no-underscore-dangle': 'off',
'react/forbid-prop-types': 'off',
'react/jsx-fragments': 'off',
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
export default defineConfig([{
// ignores: ['build/'],
languageOptions: {
parserOptions: {
requireConfigFile: false,
},
},
];
extends: [
prettierConfig,
eslintConfigs.configs.javascript,
eslintConfigs.configs.react,
],
rules: {
"import/no-commonjs": "off",
}
}]);
15 changes: 8 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
/* global console, module */
/* eslint no-console: "off" */

const callbacks = {};

let configuration = {
log: true,
debug: true,
info: true,
warn: true,
error: true,
info: true,
log: true,
logger: console.log,
warn: true,
};

const parseValue = (value) => {
Expand Down Expand Up @@ -67,13 +68,13 @@ const on = (level, callback) => {
};

module.exports = {
debug: (...values) => logJSON('debug', ...values),
error: (...values) => logJSON('error', ...values),
info: (...values) => logJSON('info', ...values),
log: (...values) => logJSON('log', ...values),
on,
setConfiguration: (newConfiguration) => {
configuration = { ...configuration, ...newConfiguration };
},
log: (...values) => logJSON('log', ...values),
debug: (...values) => logJSON('debug', ...values),
info: (...values) => logJSON('info', ...values),
warn: (...values) => logJSON('warn', ...values),
error: (...values) => logJSON('error', ...values),
};
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,11 @@
},
"homepage": "https://github.com/sealninja/json-console-logger",
"devDependencies": {
"eslint": "9.31.0",
"@eslint/compat": "1.3.1",
"@eslint/eslintrc": "3.3.1",
"@eslint/js": "9.31.0",
"eslint-config-airbnb": "19.0.4",
"@dr.pogodin/eslint-configs": "0.0.8",
"eslint": "9.30.1",
"eslint-config-prettier": "10.1.5",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "5.5.1",
"eslint-plugin-react": "7.37.5",
"jest": "30.0.4",
"prettier": "3.6.2"
"jest": "29.7.0",
"prettier": "3.3.3"
}
}
Loading