forked from xdy/twodsix-foundryvtt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
38 lines (36 loc) · 987 Bytes
/
.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
---
env:
jquery: true
browser: true
es2020: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/recommended'
- 'eslint-config-prettier'
- 'plugin:prettier/recommended'
- './node_modules/@typhonjs-fvtt/eslint-foundry.js/config/latest/.eslintrc'
#- 'plugin:@typescript-eslint/recommended'
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 2020
sourceType: module
project: ./tsconfig.json
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"]