From cb9d2e2e8ab8b73ef9caece04fd88666bb097e68 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Wed, 27 Mar 2024 16:48:03 +0530 Subject: [PATCH] chore: include eslint and prettier configs --- .eslintrc | 21 +++++++++++++++++++++ .prettierrc | 6 ++++++ 2 files changed, 27 insertions(+) create mode 100644 .eslintrc create mode 100644 .prettierrc diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..6a7acf9 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,21 @@ +{ + "parser": "@typescript-eslint/parser", + "parserOptions": { + "jsx": true, + "useJSXTextNode": true, + "ecmaVersion": 2018, + "sourceType": "module", + "project": "./tsconfig.json" + }, + "ignorePatterns": ["/out"], + "plugins": ["@typescript-eslint", "roblox-ts", "prettier"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:roblox-ts/recommended", + "plugin:prettier/recommended" + ], + "rules": { + "prettier/prettier": "warn" + } +} diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..492a291 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,6 @@ +{ + "printWidth": 120, + "tabWidth": 4, + "trailingComma": "all", + "useTabs": true +}