Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Feature/ts tsup #73

Closed
wants to merge 15 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
env:
browser: true
es2021: true
extends: google
extends:
- google
- plugin:@typescript-eslint/recommended
ignorePatterns:
- examples/chat-react/
- src/client.d.ts
- examples/
- dist/
- tsup.config.ts
- jest.config.ts
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: latest
sourceType: module
project: './tsconfig.json'
rules:
indent: ["error", 2]
space-before-function-paren: ["error", "never"]
quotes: ["error", "single"]
require-jsdoc: "off"
valid-jsdoc: "off"
"@typescript-eslint/no-explicit-any": "warn"
max-len: "warn"
17 changes: 17 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import type { JestConfigWithTsJest } from 'ts-jest';


const config: JestConfigWithTsJest = {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
moduleNameMapper: {
'^@mistralai/mistralai$': '<rootDir>/src/index.ts',
},
modulePathIgnorePatterns: [
'<rootDir>/dist/',
'<rootDIr>/examples/'
],
};

export default config;

Loading