-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (44 loc) · 1.01 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
"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",
"no-use-before-define": ["error", { "functions": true, "classes": true }]
},
"overrides": [
{
"files": ["*.js"],
"env": {
"node": true,
"es6": true
},
"parser": "espree", // Use the default JavaScript parser for JS files
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"no-undef": "off",
"no-console": "off",
"roblox-ts/no-null": "off",
"roblox-ts/lua-truthiness": "off",
"roblox-ts/no-unknown-variables": "off",
"roblox-ts/no-unused-vars": "off"
}
}
]
}