Files
Francesco TrottaandGitHub 1b7b490e53 fix: load plugins in the CLI in flat config mode (#18185)
* fix: load plugins in the CLI in flat config mode

* apply review suggestions

* fix nesting of unit tests

* improve error message
2024-03-13 12:30:00 +01:00

16 lines
317 B
JavaScript

const plugin = {
rules: {
hello: {
create(context) {
return {
Program(node) {
context.report({ node, message: 'Hello CommonJS!' });
}
};
}
}
},
};
module.exports = plugin;