-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.eslintrc.yml
More file actions
46 lines (46 loc) · 1.12 KB
/
.eslintrc.yml
File metadata and controls
46 lines (46 loc) · 1.12 KB
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
46
root: true
extends:
- airbnb-base
- airbnb-typescript/base
parserOptions:
project: ./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
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: '^_.*_$'
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.json
overrides:
- files:
- test/**
env:
mocha: true