forked from Kong/httpsnippet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
30 lines (30 loc) · 873 Bytes
/
.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
/** @type { import('eslint').Linter.Config } */
module.exports = {
parser: '@typescript-eslint/parser',
env: {
node: true,
},
parserOptions: {
project: 'tsconfig.json',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all',
'plugin:jest-formatting/strict',
'plugin:eslint-comments/recommended',
'prettier',
],
plugins: ['eslint-comments', 'simple-import-sort', 'jest', 'jest-formatting'],
rules: {
'prefer-template': 'error',
'no-else-return': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'eslint-comments/require-description': 'error',
'eslint-comments/disable-enable-pair': 'off',
'simple-import-sort/imports': 'error',
'simple-import-sort/exports': 'error',
'jest/prefer-expect-assertions': 'off',
'jest/require-hook': 'off',
},
};