-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
104 lines (94 loc) · 2.8 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
---
extends:
- eslint:recommended
- airbnb-base
- prettier
plugins:
- import
- notice
rules:
no-plusplus: 'off'
no-case-declarations: 'off'
class-methods-use-this: 'off'
no-continue: 'off'
no-nested-ternary: 'off'
prefer-destructuring: 'off'
no-param-reassign: 'off'
no-use-before-define:
- error
- functions: false
classes: true
no-restricted-syntax: 'off'
guard-for-in: 'off'
no-invalid-this: error
no-new-wrappers: error
no-underscore-dangle: 'off'
import/no-deprecated: 1
import/order:
- error
- newlines-between: always
import/extensions:
- error
- ignorePackages
- js: never
mjs: never
ts: never
import/prefer-default-export: 'off'
notice/notice:
- error
- mustMatch: Copyright \(c\) \d{4}
template: |
/**
* Copyright (c) <%= YEAR %> Adrian Panella <[email protected]>
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
overrides:
- files: '*.ts'
extends:
- plugin:@typescript-eslint/recommended
- plugin:@typescript-eslint/recommended-requiring-type-checking
- prettier
- plugin:import/typescript
parserOptions:
project:
- tsconfig.json
- ./spec/tsconfig.json
rules:
'@typescript-eslint/array-type':
- error
- default: array-simple
# '@typescript-eslint/camelcase': 'off'
# '@typescript-eslint/consistent-type-assertions': 'off'
'@typescript-eslint/consistent-type-definitions':
- error
- interface
#'@typescript-eslint/explicit-function-return-type': 'off'
'@typescript-eslint/explicit-member-accessibility':
- error
- accessibility: no-public
# '@typescript-eslint/interface-name-prefix': 'off'
# '@typescript-eslint/member-ordering': 'off'
'@typescript-eslint/naming-convention':
- error
- selector: class
format:
- PascalCase
'@typescript-eslint/no-inferrable-types': error
'@typescript-eslint/no-misused-new': error
'@typescript-eslint/no-require-imports': error
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: ^_
'@typescript-eslint/no-use-before-define':
- error
- functions: false
'@typescript-eslint/prefer-function-type': error
'@typescript-eslint/unified-signatures': error
# revert recommended as rework is needed to remove 'any'
'@typescript-eslint/no-explicit-any': 'off'
'@typescript-eslint/no-non-null-assertion': 'off'
'@typescript-eslint/no-unsafe-assignment': 'off'
'@typescript-eslint/no-unsafe-call': 'off'
'@typescript-eslint/no-unsafe-member-access': 'off'
'@typescript-eslint/no-unsafe-return': 'off'