Skip to content

Commit 9563d4a

Browse files
authored
Add eslint rules (#72)
* Add some ts eslint rules * Fix makefile
1 parent 579d326 commit 9563d4a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile.schemaregistry

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ TS_NODE ?= ./node_modules/.bin/ts-node
99
# Paths
1010
SRC_DIR = schemaregistry
1111
SR_TEST_DIR = test/schemaregistry
12-
DEK_TEST_DIR = test/dekregistry
12+
DEK_TEST_DIR = test/schemaregistry/dekregistry
1313
INTEG_DIR = e2e/schemaregistry
1414

1515
# Tasks
@@ -24,4 +24,4 @@ test:
2424
$(JEST) $(SR_TEST_DIR) $(DEK_TEST_DIR)
2525

2626
integtest:
27-
$(JEST) $(INTEG_DIR)
27+
$(JEST) $(INTEG_DIR)

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,11 @@ module.exports = ts.config(
5555
...ts.configs.recommended.map((config) => ({
5656
...config,
5757
ignores: ["**/*.js"],
58+
rules: {
59+
...config.rules,
60+
"prefer-const": 0,
61+
"@typescript-eslint/no-explicit-any": "warn",
62+
"@typescript-eslint/no-unused-vars": "warn",
63+
}
5864
})),
5965
);

0 commit comments

Comments
 (0)