-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.yaml
38 lines (36 loc) · 981 Bytes
/
.eslintrc.yaml
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
root: true
reportUnusedDisableDirectives: true
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: 6
sourceType: 'module'
project:
- './tsconfig.json'
extends:
- 'eslint:recommended'
- 'prettier'
rules:
# Dropbox standard rules
'prefer-const':
- 'warn'
- destructuring: 'all'
'no-throw-literal': 'warn'
no-restricted-globals:
- 'error'
- name: 'SharedArrayBuffer'
message: 'SharedArrayBuffer is not yet implemented in all runtimes we support. For details, see https://caniuse.pp.dropbox.com/#feat=mdn-api_JavaScript-builtins--SharedArrayBuffer'
# TTVC rules
eqeqeq:
- 'error'
- 'allow-null'
# typescript checks this for us
no-undef: 'off'
overrides:
- files:
- '*.ts'
plugins:
- '@typescript-eslint'
extends:
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
- 'plugin:@typescript-eslint/recommended-requiring-type-checking'