-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.yml
43 lines (40 loc) · 1.05 KB
/
.eslintrc.yml
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
---
env:
jquery: true
browser: true
es2020: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'eslint-config-prettier'
- 'plugin:prettier/recommended'
- '@typhonjs-fvtt/eslint-config-foundry.js'
#- 'plugin:@typescript-eslint/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2020
sourceType: module
tsconfigRootDir: .
plugins:
- prettier
- "@typescript-eslint"
rules:
#Fvtt support
no-shadow: off
'@typescript-eslint/no-shadow': [ "error", { "builtinGlobals": true, "hoist": "all", "allow": [ "event" ] } ]
#The following rule should be turned on later
'@typescript-eslint/no-explicit-any': off
#Personal preferences
prettier/prettier: error
semi: warn
curly: warn
brace-style: 1
indent: [ "warn", 2, { "SwitchCase": 1 } ]
'no-trailing-spaces': ["error"]
'eol-last': ["error", "always"]
'key-spacing': ["error"]
'@typescript-eslint/ban-ts-comment': ["warn"]
#overrides:
# - files: ['./*.js]
# rules:
# '@typescript-eslint/no-var-requires': 'off'