eslint-plugin-ts-export-naming-convention
Version:
ESLint plugin to enforce naming conventions for TypeScript exports
23 lines (22 loc) • 657 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.rules = void 0;
const rules = {
// @see https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/naming-convention.md
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'interface',
format: ['PascalCase'],
modifiers: ['exported'],
prefix: ['I'],
},
{
selector: 'typeAlias',
format: ['PascalCase'],
modifiers: ['exported'],
prefix: ['T'],
},
],
};
exports.rules = rules;