-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.69 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
45
46
47
48
49
50
module.exports = {
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
plugins: ['jsdoc'],
extends: [
'eslint:recommended',
'eslint-config-prettier',
'plugin:jsdoc/recommended',
],
global: ['window', 'global'],
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/require-description-complete-sentence': 2,
'jsdoc/require-hyphen-before-param-description': 2,
'jsdoc/check-alignment': 2, // Recommended
'jsdoc/check-examples': 'off',
'jsdoc/check-indentation': 2,
'jsdoc/check-param-names': 2, // Recommended
'jsdoc/check-syntax': 2,
'jsdoc/check-tag-names': 2, // Recommended
'jsdoc/check-types': 2, // Recommended
'jsdoc/implements-on-classes': 2, // Recommended
'jsdoc/match-description': 2,
'jsdoc/newline-after-description': 2, // Recommended
'jsdoc/no-types': 2,
'jsdoc/no-undefined-types': 2, // Recommended
'jsdoc/require-description': 2,
'jsdoc/require-example': 2,
'jsdoc/require-jsdoc': 2, // Recommended
'jsdoc/require-param': 2, // Recommended
'jsdoc/require-param-description': 2, // Recommended
'jsdoc/require-param-name': 2, // Recommended
'jsdoc/require-param-type': 2, // Recommended
'jsdoc/require-returns': 2, // Recommended
'jsdoc/require-returns-check': 2, // Recommended
'jsdoc/require-returns-description': 2, // Recommended
'jsdoc/require-returns-type': 'off', // Recommended
'jsdoc/valid-types': 2, // Recommended
},
};