Skip to content

Commit ea7fe31

Browse files
committed
refactor: use cameCase for file names, and .spec. for test file names
1 parent b46f572 commit ea7fe31

40 files changed

+49
-46
lines changed
File renamed without changes.

bin/vue-codemod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as globby from 'globby'
1010
import createDebug from 'debug'
1111

1212
import builtInTransformations from '../transformations'
13-
import runTransformation from '../src/run-transformation'
13+
import runTransformation from '../src/runTransformation'
1414

1515
const debug = createDebug('vue-codemod')
1616
const log = console.log.bind(console)

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
export { default as VueTransformation } from './src/VueTransformation'
44

5-
export { default as runTransformation } from './src/run-transformation'
5+
export { default as runTransformation } from './src/runTransformation'
66

77
export { default as transformations } from './transformations'

src/__tests__/run-transformation-test.ts renamed to src/__tests__/runTransformation.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-nocheck
22
/* eslint-env jest */
33
import type { Transform } from 'jscodeshift'
4-
import runTransformation from '../run-transformation'
4+
import runTransformation from '../runTransformation'
55

66
const unreachableTransform: Transform = () => {
77
throw new Error('This transform should never be invoked')
File renamed without changes.
File renamed without changes.

transformations/__tests__/define-component-test.ts renamed to transformations/__tests__/define-component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ jest.autoMockOff()
33
import * as fs from 'fs'
44
import * as path from 'path'
55
import { defineInlineTest } from 'jscodeshift/src/testUtils'
6-
import runTransformation from '../../src/run-transformation'
6+
import runTransformation from '../../src/runTransformation'
77

88
const transform = require('../define-component')
99

0 commit comments

Comments
 (0)