-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
50 lines (50 loc) · 1.29 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/** @type {import("eslint")} */
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:import/errors',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'eslint-plugin-tsdoc', 'jsdoc'],
root: true,
env: {
es6: true,
jest: true,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.ts'],
},
},
},
rules: {
'@typescript-eslint/explicit-function-return-type': [
'error',
{ allowTypedFunctionExpressions: true },
],
'@typescript-eslint/explicit-member-accessibility': ['error'],
'import/order': [
'error',
{
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
'import/no-unresolved': ['error'],
'no-undef': ['error'],
'tsdoc/syntax': 'error',
'require-jsdoc': 'error',
/// TODO: https://github.com/microsoft/tsdoc/issues/209
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-description': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-throws': 'error',
'jsdoc/no-bad-blocks': 'error',
'jsdoc/empty-tags': 'error',
'jsdoc/require-jsdoc': 'error',
'jsdoc/check-syntax': 1,
},
};