| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules'); | |||
| 15 | 15 | const ModuleFindPath = Module._findPath; | |
| 16 | 16 | const hacks = [ | |
| 17 | 17 | 'eslint-plugin-node-core', | |
| 18 | + 'eslint-plugin-jsdoc', | ||
| 18 | 19 | 'eslint-plugin-markdown', | |
| 19 | 20 | '@babel/eslint-parser', | |
| 20 | 21 | '@babel/plugin-syntax-import-assertions', | |
@@ -34,7 +35,7 @@ Module._findPath = (request, paths, isMain) => { | |||
| 34 | 35 | ||
| 35 | 36 | module.exports = { | |
| 36 | 37 | root: true, | |
| 37 | - plugins: ['markdown', 'node-core'], | ||
| 38 | + plugins: ['jsdoc', 'markdown', 'node-core'], | ||
| 38 | 39 | parser: '@babel/eslint-parser', | |
| 39 | 40 | parserOptions: { | |
| 40 | 41 | babelOptions: { | |
@@ -336,6 +337,9 @@ module.exports = { | |||
| 336 | 337 | 'use-isnan': 'error', | |
| 337 | 338 | 'valid-typeof': ['error', { requireStringLiterals: true }], | |
| 338 | 339 | ||
| 340 | + // JSDoc rules | ||
| 341 | + 'jsdoc/check-types': 'error', | ||
| 342 | + | ||
| 339 | 343 | // Custom rules from eslint-plugin-node-core | |
| 340 | 344 | 'node-core/no-unescaped-regexp-dot': 'error', | |
| 341 | 345 | 'node-core/no-duplicate-requires': 'error', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments