Skip to content

Commit

Permalink
Update ESLint configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Dec 16, 2024
1 parent 7d9860c commit 0ce215a
Show file tree
Hide file tree
Showing 5 changed files with 767 additions and 1,797 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

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

This file was deleted.

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
Loading

0 comments on commit 0ce215a

Please sign in to comment.