mirror of
https://github.com/hanzoai/eslint.git
synced 2026-10-30 19:38:10 +00:00
* fix: load plugins in the CLI in flat config mode * apply review suggestions * fix nesting of unit tests * improve error message
16 lines
310 B
JavaScript
16 lines
310 B
JavaScript
const plugin = {
|
|
rules: {
|
|
hello: {
|
|
create(context) {
|
|
return {
|
|
Program(node) {
|
|
context.report({ node, message: 'Hello ESM!' });
|
|
}
|
|
};
|
|
}
|
|
}
|
|
},
|
|
};
|
|
|
|
export default plugin;
|