-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
44 lines (44 loc) · 1.36 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['jsdoc'],
extends: [
'plugin:jest/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jsdoc/recommended',
'eslint-config-prettier',
],
ignorePatterns: ['lib/**/*.js.', 'lib/*.js'],
env: {
node: true,
es6: true,
},
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
},
rules: {
indent: ['error', 2],
semi: [2, 'always'],
'no-console': ['error', { allow: ['warn', 'error', 'log'] }],
'jsdoc/check-alignment': 'error',
'jsdoc/check-param-names': 'error',
'jsdoc/check-tag-names': 'error',
'jsdoc/check-types': 'error',
'jsdoc/implements-on-classes': 'error',
'jsdoc/newline-after-description': 'error',
'jsdoc/no-undefined-types': 'error',
'jsdoc/require-description-complete-sentence': 'error',
'jsdoc/require-hyphen-before-param-description': 'error',
'jsdoc/require-jsdoc': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-param-name': 'error',
'jsdoc/require-param-type': 'off',
'jsdoc/require-returns': 'error',
'jsdoc/require-returns-check': 'error',
'jsdoc/require-returns-description': 'error',
'jsdoc/require-returns-type': 'off',
'jsdoc/valid-types': 'error',
},
};