-
-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Labels
Description
Expected behavior
The plugin should run like it does when executing eslint --fix
I don't get error messages about the rest - just this one.
Actual behavior
[Info - 16:32:27] Failed to load plugin 'jsdoc' declared in '.eslintrc.json': Cannot find module 'eslint-plugin-jsdoc' Require stack: - C:\Git\sfmc-devtools_placeholder_.js Referenced from: C:\Git\sfmc-devtools.eslintrc.json

ESLint Config
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"ssjs",
"plugin:jsdoc/recommended",
"plugin:prettier/recommended"
],
"plugins": [],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"rules": {
"arrow-body-style": ["error", "as-needed"],
"curly": "error",
"no-console": "off",
"require-jsdoc": [
"warn",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": false,
"FunctionExpression": true
}
}
],
"valid-jsdoc": "error",
"spaced-comment": ["warn", "always", { "block": { "exceptions": ["*"], "balanced": true } }]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"no-var": "error",
"prefer-const": "error",
"prettier/prettier": "warn",
"prefer-arrow-callback": "warn"
}
}
]
}ESLint sample
The VSCode plugin for ESLint cannot find the plugin despite it being installed
Environment
- Node version: v16.14.2
- ESLint version v8.12.0 (local install)
eslint-plugin-jsdocversion: 38.0.8 (local install)