Skip to content

Commit

Permalink
Merge pull request #672 from myrotvorets/renovate/major-linters
Browse files Browse the repository at this point in the history
chore(deps): update dependency @myrotvorets/eslint-config-myrotvorets-ts to v3
  • Loading branch information
myrotvorets-team authored Dec 16, 2024
2 parents cc7f301 + 24e1aef commit 67d70fa
Show file tree
Hide file tree
Showing 7 changed files with 507 additions and 1,609 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import MyrotvoretsConfig from '@myrotvorets/eslint-config-myrotvorets-ts';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['dist/**'],
},
...MyrotvoretsConfig,
{
languageOptions: {
globals: {
...globals.node,
},
},
},
];
18 changes: 6 additions & 12 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ const ts_preset = require('ts-jest/jest-preset');

module.exports = merge.recursive(ts_preset, {
collectCoverage: process.env.COLLECT_COVERAGE !== '0',
collectCoverageFrom: [
'lib/**/*.ts',
],
collectCoverageFrom: ['lib/**/*.ts'],
clearMocks: true,
verbose: true,
testPathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/node_modules/',
],
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
testResultsProcessor: 'jest-sonar-reporter',
reporters: [
"default",
process.env.GITHUB_ACTIONS === 'true' ? 'jest-github-actions-reporter' : null,
].filter(Boolean),
testLocationInResults: true
reporters: ['default', process.env.GITHUB_ACTIONS === 'true' ? 'jest-github-actions-reporter' : null].filter(
Boolean,
),
testLocationInResults: true,
});
1 change: 0 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { type Response, fetch, timeoutSignal } from '@adobe/fetch';
import { FaceXError, HttpError, type IRemoteTransport, NetworkError } from '@myrotvorets/facex-base';

export class TransportFetch implements IRemoteTransport {
// eslint-disable-next-line class-methods-use-this
public async post(url: URL, body: string, headers: Record<string, string>, timeout: number): Promise<string> {
const r = await TransportFetch._fetch(url, body, headers, timeout);

Expand Down
2,062 changes: 483 additions & 1,579 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"author": "Myrotvorets <[email protected]> (https://myrotvorets.center/)",
"license": "MIT",
"devDependencies": {
"@myrotvorets/eslint-config-myrotvorets-ts": "^2.24.0",
"@myrotvorets/eslint-config-myrotvorets-ts": "^3.0.0",
"@myrotvorets/facex-base": "^2.3.2",
"@types/jest": "^29.5.12",
"@types/node": ">= 20.11.16",
Expand Down

0 comments on commit 67d70fa

Please sign in to comment.