Skip to content

Commit

Permalink
feat: update all dependencies and transform to esm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganitzsh committed Oct 31, 2023
1 parent 59dd5b9 commit a83536e
Show file tree
Hide file tree
Showing 46 changed files with 11,164 additions and 31,857 deletions.
38 changes: 31 additions & 7 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
env:
es6: true
node: true
extends: '@ridedott/eslint-config'
extends:
- '@ridedott/eslint-config'
- 'plugin:jest-formatting/recommended'
plugins:
- 'jest-formatting'
overrides:
- env:
jest: true
files:
- src/**/*.spec.ts
- ./jest.config.ts
- ./__mocks__/**/*.ts
- ./src/**/*.spec.ts
- ./test/**/*.ts
rules:
'@typescript-eslint/no-magic-numbers': off
max-lines-per-function: off
'@ridedott/no-single-line-comment-block': 'off'
'@typescript-eslint/no-magic-numbers': 'off'
'@typescript-eslint/no-unsafe-enum-comparison': 'off'
'@typescript-eslint/class-methods-use-this': 'off'
'@typescript-eslint/no-non-null-assertion': 'off'
'import/no-extraneous-dependencies': 'off'
'max-lines-per-function': 'off'
'jest/max-expects': 'off'
'unicorn/filename-case': 'off'
'import/no-default-export': 'off'
'jest/no-conditional-in-test': 'off'
- files:
- src/**/*.ts
rules:
'@typescript-eslint/no-magic-numbers': 'off'
'@typescript-eslint/no-unsafe-enum-comparison': 'off'
'@typescript-eslint/class-methods-use-this': 'off'
'@typescript-eslint/no-non-null-assertion': 'off'
'import/no-extraneous-dependencies': 'off'
'jest/require-hook': off
'eslint-comments/no-unused-disable': off
parserOptions:
ecmaVersion: 2020
project: tsconfig.json
project: './tsconfig.json'
sourceType: module
rules:
'@typescript-eslint/restrict-template-expressions': off
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18
v20
9 changes: 4 additions & 5 deletions __mocks__/env-ci.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/* eslint-disable immutable/no-mutation */
/* eslint-disable unicorn/filename-case */
/* eslint-disable functional/immutable-data */
/* eslint-disable unicorn/prevent-abbreviations */
import * as envCi from 'env-ci';
import environmentCi from 'env-ci';

module.exports = ({
cwd,
env,
}: {
cwd: string;
env: string;
env: { [key: string]: string };
}): { [key: string]: unknown } => {
const { isCi, isPr, ...other } = envCi({ cwd, env });
const { isCi, ...other } = environmentCi({ cwd, env });

return { isCi: false, isPr: false, ...other };
};
4 changes: 2 additions & 2 deletions __mocks__/signale.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable class-methods-use-this */

import * as signale from 'signale';
import signale from 'signale';

class Signale extends signale.Signale {
/* eslint-disable @typescript-eslint/naming-convention */
Expand Down
2 changes: 0 additions & 2 deletions dist/index.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.d.ts.map

This file was deleted.

5 changes: 4 additions & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
File renamed without changes.
5 changes: 0 additions & 5 deletions dist/utilities/error.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/error.d.ts.map

This file was deleted.

10 changes: 0 additions & 10 deletions dist/utilities/generatePlugins.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/generatePlugins.d.ts.map

This file was deleted.

39 changes: 0 additions & 39 deletions dist/utilities/inputProcessors.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/inputProcessors.d.ts.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/utilities/installDependencies.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/installDependencies.d.ts.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/utilities/outputParsers.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/outputParsers.d.ts.map

This file was deleted.

9 changes: 0 additions & 9 deletions dist/utilities/parseConfiguration.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/parseConfiguration.d.ts.map

This file was deleted.

3 changes: 0 additions & 3 deletions dist/utilities/transform.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/utilities/transform.d.ts.map

This file was deleted.

5 changes: 5 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@ const configuration: Config.InitialOptions = {
},
logHeapUsage: true,
preset: 'ts-jest',
prettierPath: null,
resetMocks: true,
roots: ['<rootDir>/src', '<rootDir>/__mocks__'],
testEnvironment: 'node',
transform: {
'^.+\\.ts?$': ['ts-jest', { tsconfig: './tsconfig.json' }],
},
transformIgnorePatterns: ['node_modules/(?!semantic-release/.*)'],
};

export default configuration;
Loading

0 comments on commit a83536e

Please sign in to comment.