-
Notifications
You must be signed in to change notification settings - Fork 104
/
.eslintrc.js
48 lines (48 loc) · 1.7 KB
/
.eslintrc.js
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname
},
env: {
node: true,
jest: true
},
plugins: ['@typescript-eslint', 'header', 'no-null'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint'
],
rules: {
// These need to be fixed
'no-case-declarations': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-floating-promises': 'off',
// breaks while(true)
'no-constant-condition': 'off',
// The ones turned off below are used a lot in tests
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/require-await': 'off',
'no-empty': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/restrict-template-expressions': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-empty-function': 'off',
'no-null/no-null': 'error',
'header/header': [
'error',
'block',
{
pattern:
'Copyright ([0-9]{4}[-,]{0,1}[ ]{0,1}){1,} Amazon.com, Inc. or its affiliates. All Rights Reserved.\\r?\\n \\* SPDX-License-Identifier: MIT'
},
{ lineEndings: 'unix' }
]
}
}