forked from lab-cosmo/chemiscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
50 lines (44 loc) · 1.08 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
45
46
47
48
49
50
---
root: true
parser: '@typescript-eslint/parser'
parserOptions:
tsconfigRootDir: .
project:
- ./tsconfig.json
ignorePatterns:
- app/
- dist/
plugins:
- '@typescript-eslint'
- prettier
env:
es6: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
rules:
# Extra rules
arrow-parens: error
eqeqeq: error
grouped-accessor-pairs: error
no-console: error
no-extra-parens: off
no-loss-of-precision: error
no-sequences: error
no-template-curly-in-string: error
no-throw-literal: error
no-unused-expressions: error
no-useless-concat: error
no-var: error
radix: error
semi: error
# only sort inside groups, not between separate import lines
sort-imports: [error, { ignoreDeclarationSort: true }]
# sort-keys: [error, asc, {minKeys: 4}]
# disabled until https://github.com/eslint/eslint/issues/12759 is implemented
sort-keys: off
# disabled rules
'@typescript-eslint/no-inferrable-types': off
'@typescript-eslint/no-empty-function': off