|
| 1 | +"use strict"; |
| 2 | + |
| 3 | +/** |
| 4 | + * JSDoc rules for JavaScript and TypeScript |
| 5 | + */ |
| 6 | +module.exports = { |
| 7 | + /** |
| 8 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-access |
| 9 | + */ |
| 10 | + "jsdoc/check-access": "warn", |
| 11 | + |
| 12 | + /** |
| 13 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-alignment |
| 14 | + */ |
| 15 | + "jsdoc/check-alignment": "warn", |
| 16 | + |
| 17 | + /** |
| 18 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-indentation |
| 19 | + */ |
| 20 | + "jsdoc/check-indentation": "warn", |
| 21 | + |
| 22 | + /** |
| 23 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-param-names |
| 24 | + */ |
| 25 | + "jsdoc/check-param-names": "warn", |
| 26 | + |
| 27 | + /** |
| 28 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-property-names |
| 29 | + */ |
| 30 | + "jsdoc/check-property-names": "warn", |
| 31 | + |
| 32 | + /** |
| 33 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-syntax |
| 34 | + */ |
| 35 | + "jsdoc/check-syntax": "warn", |
| 36 | + |
| 37 | + /** |
| 38 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-tag-names |
| 39 | + */ |
| 40 | + "jsdoc/check-tag-names": "warn", |
| 41 | + |
| 42 | + /** |
| 43 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-check-values |
| 44 | + */ |
| 45 | + "jsdoc/check-values": "warn", |
| 46 | + |
| 47 | + /** |
| 48 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-empty-tags |
| 49 | + */ |
| 50 | + "jsdoc/empty-tags": "warn", |
| 51 | + |
| 52 | + /** |
| 53 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-implements-on-classes |
| 54 | + */ |
| 55 | + "jsdoc/implements-on-classes": "warn", |
| 56 | + |
| 57 | + /** |
| 58 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-newline-after-description |
| 59 | + */ |
| 60 | + "jsdoc/newline-after-description": "warn", |
| 61 | + |
| 62 | + /** |
| 63 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-description |
| 64 | + */ |
| 65 | + "jsdoc/require-description": [ |
| 66 | + "warn", |
| 67 | + { |
| 68 | + contexts: [ |
| 69 | + "FunctionDeclaration", "ClassDeclaration", "ClassExpression", "ClassProperty", |
| 70 | + "MethodDefinition", "ExportNamedDeclaration", "TSInterfaceDeclaration", "TSPropertySignature", |
| 71 | + "TSMethodSignature", "TSTypeAliasDeclaration", "TSDeclareFunction", "TSEnumDeclaration", |
| 72 | + "TSEmptyBodyFunctionExpression", "TSFunctionType" |
| 73 | + ], |
| 74 | + } |
| 75 | + ], |
| 76 | + |
| 77 | + /** |
| 78 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-hyphen-before-param-description |
| 79 | + */ |
| 80 | + "jsdoc/require-hyphen-before-param-description": "warn", |
| 81 | + |
| 82 | + /** |
| 83 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-jsdoc |
| 84 | + */ |
| 85 | + "jsdoc/require-jsdoc": [ |
| 86 | + "warn", |
| 87 | + { |
| 88 | + enableFixer: false |
| 89 | + } |
| 90 | + ], |
| 91 | + |
| 92 | + /** |
| 93 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-param-description |
| 94 | + */ |
| 95 | + "jsdoc/require-param-description": "warn", |
| 96 | + |
| 97 | + /** |
| 98 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-param-name |
| 99 | + */ |
| 100 | + "jsdoc/require-param-name": "warn", |
| 101 | + |
| 102 | + /** |
| 103 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-property |
| 104 | + */ |
| 105 | + "jsdoc/require-property": "warn", |
| 106 | + |
| 107 | + /** |
| 108 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-property-description |
| 109 | + */ |
| 110 | + "jsdoc/require-property-description": "warn", |
| 111 | + |
| 112 | + /** |
| 113 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-property-name |
| 114 | + */ |
| 115 | + "jsdoc/require-property-name": "warn", |
| 116 | + |
| 117 | + /** |
| 118 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-returns-check |
| 119 | + */ |
| 120 | + "jsdoc/require-returns-check": "warn", |
| 121 | + |
| 122 | + /** |
| 123 | + * @see https://github.com/gajus/eslint-plugin-jsdoc#eslint-plugin-jsdoc-rules-require-returns-description |
| 124 | + */ |
| 125 | + "jsdoc/require-returns-description": "warn", |
| 126 | +}; |
0 commit comments