forked from CondeNast/xml-to-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
49 lines (48 loc) · 1.31 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
module.exports = {
extends: [
'airbnb'
],
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
env: {
jest: true,
},
plugins: [
'jsdoc'
],
rules: {
/**
* All available rules are enabled to 'error' by default to encourage more
* thorough and accurate documentation
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules
*/
'jsdoc/check-param-names': 'error',
'jsdoc/check-tag-names': 'error',
'jsdoc/check-types': 'error',
'jsdoc/newline-after-description': 'error',
/**
* At present, we are not imposing the "description-complete-sentence" rule
* as it will result in a very large number of warnings across all repos.
* @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-description-complete-sentence
*/
'jsdoc/require-description-complete-sentence': 'off',
'jsdoc/require-hyphen-before-param-description': 'error',
'jsdoc/require-param': 'error',
'jsdoc/require-param-description': 'error',
'jsdoc/require-returns-description': 'error',
'jsdoc/require-returns-type': 'error'
},
settings: {
jsdoc: {
tagNamePreference: {
augments: 'extends',
return: 'returns'
}
}
}
};