Skip to content

Commit

Permalink
Merge pull request #1044 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 d8987dc + 1a3884b commit 6d78b8f
Show file tree
Hide file tree
Showing 7 changed files with 785 additions and 1,798 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 @@ -8,7 +8,6 @@ interface ImageMeta {
}

export class ImageProcessorSharp implements IImageProcessor {
// eslint-disable-next-line class-methods-use-this
public async process(stream: NodeJS.ReadableStream): Promise<string> {
const img = ImageProcessorSharp._loadImage(stream);
const meta = await ImageProcessorSharp._extractImageMeta(img);
Expand Down
2,529 changes: 761 additions & 1,768 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 6d78b8f

Please sign in to comment.