Skip to content

Commit

Permalink
Merge pull request #989 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 97ca471 + a6d2f21 commit 0012b6c
Show file tree
Hide file tree
Showing 7 changed files with 517 additions and 1,602 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
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import type { NextFunction, Request, RequestHandler, Response } from 'express';
import { RequestLike, normalizeFiles, unlink as unlinkFile } from './utils';

Expand Down
2,065 changes: 493 additions & 1,572 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 @@ -28,7 +28,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",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/multer": "^1.4.11",
Expand Down

0 comments on commit 0012b6c

Please sign in to comment.