Skip to content
Open
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
24 changes: 24 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.eslintrc.js

# Ignore build output
**/out/**
**/dist/**
**/node_modules/**
**/coverage/**
**/.nyc_output/**

# Ignore generated files
**/generated/**
**/*.d.ts
**/*.test.ts

# Ignore test fixtures
**/test/fixtures/**

# Ignore third-party code
**/vendor/**

# Ignore script directories
**/script/**
**/scripts/**

42 changes: 42 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: [
'./tsconfig.json',
'./types/tsconfig.json',
'./runtimes/tsconfig.json',
'./chat-client-ui-types/tsconfig.json',
],
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
eqeqeq: 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'warn',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/no-misused-promises': 'warn',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-call': 'error',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/restrict-template-expressions': 'error',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/no-floating-promises': 'error',
'prettier/prettier': 'off',
},
}
2 changes: 1 addition & 1 deletion chat-client-ui-types/src/uiContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export type UiMessageResultParams =
}
export interface ErrorResult {
message: string
type: 'InvalidRequest' | 'InternalError' | 'UnknownError' | string
type: string
}

/*
Expand Down
Loading