generated from permafrost-dev/typescript-project-skeleton-esbuild-jest
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
32 lines (32 loc) · 950 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
31
32
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
},
env: {
node: true,
browser: false,
commonjs: true,
},
settings: {},
plugins: [
'jest',
],
extends: [
'plugin:jest/recommended',
'plugin:@typescript-eslint/recommended',
'eslint:recommended',
],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'jest/no-disabled-tests': 'warn',
'jest/no-identical-title': 'error',
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 2 }],
indent: ['error', 4, { SwitchCase: 1 }],
},
};