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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

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

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ docs-out
.cdk.staging
cdk.out
lambda.zip
.DS_Store
16 changes: 16 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules
dist
**/src/generated/**
buf.lock
.idea
.api
!.api/.gitkeep
test_report
restate-sdk-test-suite.jar
.restate
docs-out
.wrangler
.next
.cdk.staging
cdk.out
lambda.zip
87 changes: 87 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import json from "@eslint/json";

export default [
{
ignores: [
"**/dist/**",
"**/node_modules/**",
"**/.next/**",
"**/.wrangler/**",
".turbo/**",
"**/next-env.d.ts",
"**/sdk_shared_core_wasm_bindings.js",
"**/*.mjs",
"**/test/**",
"**/api-extractor.json",
],
},
{
files: ["**/*.{js,mjs,cjs}"],
...js.configs.recommended,
languageOptions: {
globals: globals.node,
},
},
...tseslint.configs.recommendedTypeChecked.map((config) => ({
...config,
files: ["**/*.{ts,tsx,mts,cts}"],
})),
{
files: ["**/*.{ts,tsx,mts,cts}"],
languageOptions: {
globals: globals.node,
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"@typescript-eslint/no-empty-object-type": [
"error",
{ allowInterfaces: "always" },
],
"@typescript-eslint/restrict-template-expressions": [
"error",
{
allowNever: true,
allowArray: true,
},
],
"no-console": "error",
},
},
{
files: [
"**/packages/restate-sdk-examples/**/*.ts",
"**/packages/restate-e2e-services/**/*.ts",
"**/packages/restate-sdk-testcontainers/**/*.ts",
],
rules: {
"no-console": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/no-floating-promises": "off",
},
},
{
files: ["**/*.config.{js,ts,mjs,mts}"],
...tseslint.configs.disableTypeChecked,
},
{
files: ["**/*.json"],
ignores: ["package-lock.json"],
language: "json/json",
...json.configs.recommended,
},
{
files: ["**/tsconfig*.json", ".vscode/*.json"],
language: "json/jsonc",
...json.configs.recommended,
},
];
Loading
Loading