Skip to content

Commit

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

This file was deleted.

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

This file was deleted.

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

/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: ['dist/**', '**/*.d.ts'],
languageOptions: {
globals: {
...globals.node,
},
},
},
...MyrotvoretsConfig,
];
20 changes: 7 additions & 13 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
/** @type {import('ts-jest').InitialOptionsTsJest} */
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
collectCoverage: process.env.COLLECT_COVERAGE !== '0',
collectCoverageFrom: [
'src/**/*.ts',
],
collectCoverageFrom: ['src/**/*.ts'],
clearMocks: true,
verbose: true,
testPathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDir>/node_modules/',
],
reporters: [
"default",
process.env.GITHUB_ACTIONS === 'true' ? 'jest-github-actions-reporter' : null,
].filter(Boolean),
testLocationInResults: true
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
reporters: ['default', process.env.GITHUB_ACTIONS === 'true' ? 'jest-github-actions-reporter' : null].filter(
Boolean,
),
testLocationInResults: true,
};
Loading

0 comments on commit 7a178ab

Please sign in to comment.