@ssen/flat-package-name
v4.0.0
Published
Flat package name rule.
Downloads
29
Readme
@ssen/flat-package-name
Flat package name rule.
Test Codes
__tests__/flatPackageName.test.ts
import { flatPackageName } from '@ssen/flat-package-name';
import { describe, expect, test } from 'vitest';
describe('flatPackageName()', () => {
test('should flat package names', () => {
expect(flatPackageName('eslint')).toBe('eslint');
expect(flatPackageName('markdown-source-import')).toBe(
'markdown-source-import',
);
expect(flatPackageName('@ssen/eslint-config')).toBe('ssen__eslint-config');
expect(flatPackageName('@ssen/prettier-config')).toBe(
'ssen__prettier-config',
);
});
});