Closed jespertheend closed 6 months ago
Changing the content of index.js to module.exports = require('../../.eslintplugin.cjs')
seems to work but that will break all other paths. I'm not sure if there's a solution to this other than creating a new plugin.
eslint-plugin-rulesdir recently added support for esm. I think this is the only way for now.
This is probably too late for you but, hey, it will be done in the PR https://github.com/taskworld/eslint-plugin-local/pull/4
Thanks! Much appreciated :)
I can't seem to get this to work without removing
"type": "module"
from my package.json.Either I place the file
.eslintplugin.js
in my root and I get:Or I rename the file to
.eslintplugin.cjs
and I get: