ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / export-matching-filename-only
Requires that export matching filename is the only export.
module.exports = {
plugins: ["misc"],
rules: {
"misc/export-matching-filename-only": "error"
}
};
// filename: file.ts
export const file = 1;
export const x = 1;
// filename: file.ts
export const file = 1;