Skip to content

not compatible with commonjs #6

@despairblue

Description

@despairblue

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions