-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.eslintrc.yml
37 lines (37 loc) · 887 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
root: true
parser: '@typescript-eslint/parser'
parserOptions:
sourceType: 'module'
project: './tsconfig.json'
ecmaFeatures:
jsx: true
useJSXTextNode: true
extends:
- prettier
plugins:
- '@typescript-eslint'
rules:
no-eval: error
no-debugger: error
no-console: error
no-duplicate-imports: error
no-var: error
no-unsafe-finally: error
no-restricted-imports: off
prefer-const: error
prefer-rest-params: error
no-trailing-spaces:
- error
- ignoreComments: true
'@typescript-eslint/no-use-before-define': error
'@typescript-eslint/no-namespace': error
overrides:
- files: '**/*.ts'
excludedFiles: ['*.test.ts', '**/testing/**']
rules:
'@typescript-eslint/no-restricted-imports':
- error
- paths:
- name: typescript
message: "Use 'tsmodule' instead"
allowTypeImports: true