Skip to content
Merged
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
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ workers/java/bin
workers/java/build

/loadgen/kitchen-sink-gen/target/

omes.sln
/workers/dotnet/obj/
/workers/dotnet/bin/
/last_fuzz_run.proto
Expand All @@ -22,4 +24,6 @@ workers/python/**/__pycache__/
workers/*/omes-temp-*/
workers/*/prepared/

temporal-omes
tsconfig.tsbuildinfo

temporal-omes
2 changes: 1 addition & 1 deletion versions.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ DOTNET_SDK_VERSION=1.11.1
GO_SDK_VERSION=1.37.0
JAVA_SDK_VERSION=1.31.0
PYTHON_SDK_VERSION=1.23.0
TYPESCRIPT_SDK_VERSION=1.12.1
TYPESCRIPT_SDK_VERSION=1.15.0
6 changes: 0 additions & 6 deletions workers/typescript/.eslintignore

This file was deleted.

50 changes: 0 additions & 50 deletions workers/typescript/.eslintrc.js

This file was deleted.

51 changes: 51 additions & 0 deletions workers/typescript/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { builtinModules } from 'node:module';
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import prettierConfig from 'eslint-config-prettier';

const ALLOWED_NODE_BUILTINS = new Set(['assert']);
const restrictedBuiltins = builtinModules
.filter((m) => !ALLOWED_NODE_BUILTINS.has(m))
.flatMap((m) => [m, `node:${m}`]);

export default tseslint.config(
{
ignores: [
'**/node_modules/**',
'**/lib/**',
'**/*.js',
'**/*.mjs',
'**/*.cjs',
'src/protos/*',
'protogen.js',
'omes-temp-*',
],
},
{
files: ['src/**/*.ts'],
extends: [js.configs.recommended, ...tseslint.configs.recommended, prettierConfig],
languageOptions: {
parserOptions: { project: ['./tsconfig.json'] },
},
rules: {
'@typescript-eslint/no-deprecated': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-floating-promises': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
varsIgnorePattern: '^_',
},
],
'object-shorthand': ['error', 'always'],
},
},
{
files: ['src/workflows.ts', 'src/workflows-*.ts', 'src/workflows/*.ts'],
rules: {
'no-restricted-imports': ['error', ...restrictedBuiltins],
},
},
);
Loading
Loading