chore: include eslint and prettier configs

This commit is contained in:
Erica Marigold 2024-03-27 16:48:03 +05:30
parent ed2a493a69
commit cb9d2e2e8a
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1
2 changed files with 27 additions and 0 deletions

21
.eslintrc Normal file
View file

@ -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"
}
}

6
.prettierrc Normal file
View file

@ -0,0 +1,6 @@
{
"printWidth": 120,
"tabWidth": 4,
"trailingComma": "all",
"useTabs": true
}