-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.yml
44 lines (44 loc) · 1.07 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
44
root: true
extends:
- airbnb-base
- airbnb-typescript/base
parserOptions:
project:
- ./tsconfig.prod.json
- ./tsconfig.json
plugins:
- import
- chai-friendly
rules:
'@typescript-eslint/indent': off
no-underscore-dangle: off
max-classes-per-file: off # factory method in abstract base class requires multiple sub-classes in the same file
'@typescript-eslint/no-use-before-define': off # factory method in abstract base class requires multiple sub-classes in the same file
'@typescript-eslint/prefer-literal-enum-member':
- error
- allowBitwiseExpressions: true
import/extensions:
- error
- never
- mjs: always # ESM import requires the full name
'@typescript-eslint/no-unused-expressions': off
import/prefer-default-export: off
chai-friendly/no-unused-expressions: error
no-bitwise:
- error
- allow:
- <<
eol-last:
- error
- always
settings:
import/resolver:
typescript:
project:
- tsconfig.prod.json
- tsconfig.json
overrides:
- files:
- test/**
env:
mocha: true