This module won't lint itself for example (this line)
I don't see a way to use this in node or with a commonjs module bundler, since exporting a module is basically mutating the module or exports object. There seems to be no way around that.
// not allowed because they are mutating
modules.exports = 'foo'
exports.foo = 'bar'
// does not export anything at all
exports = 'bar'
Disabling one rule in every module, on just one line, also seems like a dirty solution.
Maybe I'm missing something.
This module won't lint itself for example (this line)
I don't see a way to use this in node or with a commonjs module bundler, since exporting a module is basically mutating the
moduleorexportsobject. There seems to be no way around that.Disabling one rule in every module, on just one line, also seems like a dirty solution.
Maybe I'm missing something.