forked from arkime/aws-aio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
32 lines (30 loc) · 874 Bytes
/
.eslintrc.cjs
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
/* eslint-env node */
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
root: true,
rules: {
// Arkime rules
'generator-star-spacing': 'off',
'semi': ['error', 'always'],
'handle-callback-err': ['error', 'never'],
'prefer-promise-reject-errors': 0,
'no-labels': ['error', { 'allowLoop': true }],
'no-new-func': 'off',
'indent': ['error', 4, {'SwitchCase': 0}],
'no-useless-return': 'off',
'no-empty': 'off',
'default-case-last': 'off',
// TODO - reenable below at some point
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/restrict-template-expressions": "off",
},
};