TypeError: Cannot read property 'filter' of undefined
at /usr/lib/node_modules/pug-lint/lib/pug-file.js:217:29
at Array.forEach (native)
at PugFile.addErrorForCodeOperator (/usr/lib/node_modules/pug-lint/lib/pug-file.js:213:11)
at module.exports.lint (/usr/lib/node_modules/pug-lint/lib/rules/disallow-space-after-code-op
erator.js:41:10)
at /usr/lib/node_modules/pug-lint/lib/linter.js:145:12
at Array.forEach (native)
at Linter._checkFile (/usr/lib/node_modules/pug-lint/lib/linter.js:142:31)
at Linter.checkString (/usr/lib/node_modules/pug-lint/lib/linter.js:72:17)
at Linter.checkFile (/usr/lib/node_modules/pug-lint/lib/linter.js:48:17)
at Linter.checkPath (/usr/lib/node_modules/pug-lint/lib/linter.js:64:17)
Hello my problem is:
When I try to lint my pug files by using:
pug-lint -c .pug-lintrc.json views/index.pug
I receive following error:
This is how my .pug-lintrc.json looks like:
How can i get rid of this error? "pug-lint": "^2.3.0", "pug": "~2.0.0-beta6"