eslint-plugin-jsdoc
Advanced tools
Comparing version 46.4.5 to 46.4.6
@@ -28,6 +28,6 @@ "use strict"; | ||
* @typedef {{ | ||
* name: import('./iterateJsdoc').Integer, | ||
* start: import('./iterateJsdoc').Integer, | ||
* tag: import('./iterateJsdoc').Integer, | ||
* type: import('./iterateJsdoc').Integer | ||
* name: import('./iterateJsdoc.js').Integer, | ||
* start: import('./iterateJsdoc.js').Integer, | ||
* tag: import('./iterateJsdoc.js').Integer, | ||
* type: import('./iterateJsdoc.js').Integer | ||
* }} Width | ||
@@ -46,3 +46,3 @@ */ | ||
* @param {string[]} tags | ||
* @param {import('./iterateJsdoc').Integer} index | ||
* @param {import('./iterateJsdoc.js').Integer} index | ||
* @param {import('comment-parser').Line[]} source | ||
@@ -49,0 +49,0 @@ * @returns {boolean} |
@@ -1797,3 +1797,3 @@ "use strict"; | ||
* @property {EslintRuleMeta} meta ESLint rule meta | ||
* @property {import('./jsdocUtils').DefaultContexts} [contextDefaults] Any default contexts | ||
* @property {import('./jsdocUtils.js').DefaultContexts} [contextDefaults] Any default contexts | ||
* @property {true} [contextSelected] Whether to force a `contexts` check | ||
@@ -1800,0 +1800,0 @@ * @property {true} [iterateAllJsdocs] Whether to iterate all JSDoc blocks by default |
@@ -8,4 +8,6 @@ "use strict"; | ||
var _iterateJsdoc = _interopRequireDefault(require("../iterateJsdoc.js")); | ||
var _eslint = require("eslint"); | ||
var _eslint = _interopRequireWildcard(require("eslint")); | ||
var _semver = _interopRequireDefault(require("semver")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; } | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -15,2 +17,6 @@ // Todo: When replace `CLIEngine` with `ESLint` when feature set complete per https://github.com/eslint/eslint/issues/14745 | ||
const { | ||
// @ts-expect-error Older ESLint | ||
CLIEngine | ||
} = _eslint.default; | ||
const zeroBasedLineIndexAdjust = -1; | ||
@@ -35,3 +41,3 @@ const likelyNestedJSDocIndentSpace = 1; | ||
* @param {string} ch | ||
* @returns {import('../iterateJsdoc').Integer} | ||
* @returns {import('../iterateJsdoc.js').Integer} | ||
*/ | ||
@@ -196,4 +202,4 @@ const countChars = (str, ch) => { | ||
* @param {{ | ||
* nonJSPrefacingCols: import('../iterateJsdoc').Integer, | ||
* nonJSPrefacingLines: import('../iterateJsdoc').Integer, | ||
* nonJSPrefacingCols: import('../iterateJsdoc.js').Integer, | ||
* nonJSPrefacingLines: import('../iterateJsdoc.js').Integer, | ||
* string: string | ||
@@ -226,3 +232,3 @@ * }} cfg | ||
} else { | ||
const cli = new _eslint.CLIEngine(cliConfig); | ||
const cli = new CLIEngine(cliConfig); | ||
let config; | ||
@@ -236,3 +242,3 @@ if (filename || checkEslintrc) { | ||
// will be defined. | ||
cliFile = new _eslint.CLIEngine({ | ||
cliFile = new CLIEngine({ | ||
allowInlineConfig, | ||
@@ -239,0 +245,0 @@ baseConfig: { |
@@ -11,3 +11,3 @@ <a name="user-content-imports-as-dependencies"></a> | ||
|Context|everywhere| | ||
|Tags|``| | ||
|Tags|(Any)| | ||
|Recommended|false| | ||
@@ -14,0 +14,0 @@ |Settings|| |
@@ -8,5 +8,5 @@ { | ||
"dependencies": { | ||
"@es-joy/jsdoccomment": "~0.39.4", | ||
"@es-joy/jsdoccomment": "~0.40.1", | ||
"are-docs-informative": "^0.0.2", | ||
"comment-parser": "1.3.1", | ||
"comment-parser": "1.4.0", | ||
"debug": "^4.3.4", | ||
@@ -42,6 +42,6 @@ "escape-string-regexp": "^4.0.0", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.4.5", | ||
"@types/node": "^20.4.7", | ||
"@types/semver": "^7.5.0", | ||
"@types/spdx-expression-parse": "^3.0.2", | ||
"@typescript-eslint/parser": "^6.2.0", | ||
"@typescript-eslint/parser": "^6.2.1", | ||
"babel-plugin-add-module-exports": "^1.0.4", | ||
@@ -53,4 +53,4 @@ "babel-plugin-istanbul": "^6.1.1", | ||
"decamelize": "^5.0.1", | ||
"eslint": "8.45.0", | ||
"eslint-config-canonical": "~41.1.5", | ||
"eslint": "8.46.0", | ||
"eslint-config-canonical": "~41.1.7", | ||
"espree": "^9.6.1", | ||
@@ -87,2 +87,3 @@ "gitdown": "^3.1.5", | ||
"main": "./dist/index.js", | ||
"types": "./dist/index.d.ts", | ||
"name": "eslint-plugin-jsdoc", | ||
@@ -128,3 +129,4 @@ "mocha": { | ||
"tsc": "tsc", | ||
"build": "rimraf ./dist && cross-env NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --ignore ./src/bin/*.js --no-copy-ignored", | ||
"tsc-build": "tsc -p tsconfig-prod.json", | ||
"build": "rimraf ./dist && cross-env NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --ignore ./src/bin/*.js --no-copy-ignored && pnpm tsc-build || true", | ||
"check-docs": "babel-node ./src/bin/generateDocs.js --check", | ||
@@ -144,3 +146,3 @@ "create-docs": "npm run create-options && babel-node ./src/bin/generateDocs.js", | ||
}, | ||
"version": "46.4.5" | ||
"version": "46.4.6" | ||
} |
@@ -11,3 +11,2 @@ { | ||
"declarationMap": true, | ||
"allowSyntheticDefaultImports": true, | ||
"strict": true, | ||
@@ -14,0 +13,0 @@ "target": "es2017", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2070082
314
15142
+ Added@es-joy/jsdoccomment@0.40.1(transitive)
+ Addedcomment-parser@1.4.0(transitive)
- Removed@es-joy/jsdoccomment@0.39.4(transitive)
- Removedcomment-parser@1.3.1(transitive)
Updated@es-joy/jsdoccomment@~0.40.1
Updatedcomment-parser@1.4.0