Skip to content

Commit a959f4f

Browse files
Trottdanielleadams
authored andcommitted
tools: install and enable JSDoc linting in ESLint
PR-URL: #41027 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]>
1 parent 661960e commit a959f4f

File tree

328 files changed

+29867
-18292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+29867
-18292
lines changed

.eslintrc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');
1515
const ModuleFindPath = Module._findPath;
1616
const hacks = [
1717
'eslint-plugin-node-core',
18+
'eslint-plugin-jsdoc',
1819
'eslint-plugin-markdown',
1920
'@babel/eslint-parser',
2021
'@babel/plugin-syntax-import-assertions',
@@ -34,7 +35,7 @@ Module._findPath = (request, paths, isMain) => {
3435

3536
module.exports = {
3637
root: true,
37-
plugins: ['markdown', 'node-core'],
38+
plugins: ['jsdoc', 'markdown', 'node-core'],
3839
parser: '@babel/eslint-parser',
3940
parserOptions: {
4041
babelOptions: {
@@ -336,6 +337,9 @@ module.exports = {
336337
'use-isnan': 'error',
337338
'valid-typeof': ['error', { requireStringLiterals: true }],
338339

340+
// JSDoc rules
341+
'jsdoc/check-types': 'error',
342+
339343
// Custom rules from eslint-plugin-node-core
340344
'node-core/no-unescaped-regexp-dot': 'error',
341345
'node-core/no-duplicate-requires': 'error',

tools/node_modules/eslint/README.md

-314
This file was deleted.

tools/node_modules/eslint/node_modules/.bin/acorn

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/browserslist

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/eslint

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/js-yaml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/jsesc

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/json5

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/node-which

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/parser

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/rimraf

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/.bin/semver

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/node_modules/eslint/node_modules/@babel/code-frame/README.md

-19
This file was deleted.

tools/node_modules/eslint/node_modules/@babel/core/README.md

-19
This file was deleted.

tools/node_modules/eslint/node_modules/@babel/core/node_modules/.bin/semver

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)