Skip to content

Commit

Permalink
Some inconsequential config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannmoinet committed Jun 20, 2024
1 parent 0842ff8 commit 5976dc3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist
node_modules
packages/**/dist
packages/**/node_modules
packages/tests/**/fixtures
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ module.exports = {
env: {
jest: true,
},
globals: {
fail: 'readonly',
},
rules: {
'global-require': 'off',
'import/no-dynamic-require': 'off',
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import c from 'chalk';

import type { LogLevel } from './types';

export type Logger = (text: any, type?: LogLevel) => void;

const log = (text: any, level: LogLevel, type: LogLevel = 'debug', name?: string) => {
let color = c;
// eslint-disable-next-line no-console
Expand Down Expand Up @@ -33,8 +35,6 @@ const log = (text: any, level: LogLevel, type: LogLevel = 'debug', name?: string
}
};

export type Logger = (text: any, type?: LogLevel) => void;

export const getLogger =
(level: LogLevel = 'warn', name?: string): Logger =>
(text: any, type: LogLevel = 'debug') =>
Expand Down
1 change: 1 addition & 0 deletions packages/tests/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
// Automatically clear mock calls and instances between every test
clearMocks: true,
preset: 'ts-jest',
reporters: [['default', { summaryThreshold: 0 }]],
testEnvironment: 'node',
testMatch: ['**/*.test.*'],
transform: {
Expand Down
1 change: 1 addition & 0 deletions static-analysis.datadog.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
schema-version: v1
rulesets:
- javascript-browser-security
- javascript-common-security
Expand Down

0 comments on commit 5976dc3

Please sign in to comment.