Skip to content

Commit d92c5e0

Browse files
committed
update typescript templates
1 parent 849838f commit d92c5e0

11 files changed

Lines changed: 7564 additions & 6847 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ check-rust: ## Check Rust templates' source
219219

220220
.PHONY: check-typescript
221221
check-typescript: ## Check TypeScript templates' source
222-
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/cloudevents && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
223-
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/http && npm ci && npx eslint --ext .ts . && rm -rf node_modules build
222+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/cloudevents && npm ci && npx eslint . && rm -rf node_modules build
223+
export npm_config_cache=/tmp/.npm-cache && cd templates/typescript/http && npm ci && npx eslint . && rm -rf node_modules build
224224

225225
.PHONY: test-templates
226226
test-templates: test-go test-node test-python test-quarkus test-springboot test-rust test-typescript ## Run all template tests

generate/zz_filesystem_generated.go

Lines changed: 4474 additions & 4360 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/typescript/cloudevents/.eslintrc

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
4+
5+
export default [
6+
{ ignores: ['build/**'] },
7+
js.configs.recommended,
8+
...tseslint.configs.recommended,
9+
eslintPluginPrettierRecommended,
10+
{
11+
files: ['**/*.ts'],
12+
rules: {
13+
'no-console': 'warn',
14+
'prettier/prettier': ['error', { endOfLine: 'auto' }],
15+
quotes: ['error', 'single', { allowTemplateLiterals: true }]
16+
}
17+
}
18+
];

0 commit comments

Comments
 (0)