From b427194d41b865b6f5cb5eb6f002c8d5e8e91d64 Mon Sep 17 00:00:00 2001 From: TRACTION <19631364+iamtraction@users.noreply.github.com> Date: Sat, 28 Sep 2024 16:56:49 +0530 Subject: [PATCH] eslint(config): add new config Signed-off-by: TRACTION <19631364+iamtraction@users.noreply.github.com> --- eslint.config.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 eslint.config.js diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 000000000..921abe915 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,25 @@ +import eslint from "@eslint/js"; +import tseslint from "typescript-eslint"; + +export default tseslint.config({ + extends: [ + eslint.configs.recommended, + ...tseslint.configs.recommended, + ], + languageOptions: { + parser: tseslint.parser, + parserOptions: { + projectService: true, + tsconfigRootDir: import.meta.dirname, + }, + sourceType: "module", + }, + files: [ "src/**/*.ts" ], + rules: { + indent: [ "warn", 4 ], + "linebreak-style": [ "warn", "unix" ], + quotes: [ "warn", "double" ], + semi: [ "warn", "always" ], + "@typescript-eslint/no-namespace": "off", + }, +});