Skip to content

Commit

Permalink
bump: @humanitec/autogen and modernize the setup
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswuerbach committed Jun 25, 2024
1 parent 04c3e22 commit 01ce18a
Show file tree
Hide file tree
Showing 15 changed files with 42,144 additions and 56,404 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

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

This file was deleted.

96,536 changes: 41,188 additions & 55,348 deletions dist/index.js

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"
}
21 changes: 21 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
name: "eslint",
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {},
files: ["src/**/*.ts"],
},
eslintPluginPrettierRecommended,
{
ignores: ["dist/", "node_modules/"],
},
);
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

22 changes: 22 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import type { Config } from "jest";

const config: Config = {
preset: "ts-jest",
testEnvironment: "node",
testTimeout: 30000,
extensionsToTreatAsEsm: [".ts"],
// See https://github.com/kulshekhar/ts-jest/issues/1057
transform: {
"\\.[jt]s?$": [
"ts-jest",
{
useESM: true,
},
],
},
moduleNameMapper: {
"(.+)\\.js": "$1",
},
};

export default config;
Loading

0 comments on commit 01ce18a

Please sign in to comment.