eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

only-export-name

ESLint plugin / only-export-name

Requires that only export matches filename.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/only-export-name": "error"
  }
};

Examples of incorrect code

// filename: file.ts
export class SampleClass {}

Examples of correct code

// filename: SampleClass.ts
export class SampleClass {}