Skip to content

Commit ef4acb0

Browse files
author
Robert Jackson
committed
Avoid class fields in lib/migrator.js
eslint doesn't like them without babel-eslint configured.
1 parent 92f1fe2 commit ef4acb0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

lib/migrator.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,16 @@ const { template } = require('jscodeshift');
1616

1717
module.exports = class Migrator {
1818
/**
19-
* @param {Options} options
19+
* @param {Options} options
2020
*/
2121
constructor({ projectRoot, structure }) {
22+
/** @type {string} */
2223
this.projectRoot = projectRoot;
24+
25+
/** @type {'flat' | 'nested'} */
2326
this.structure = structure;
2427
}
2528

26-
/** @type {string} */
27-
projectRoot;
28-
29-
/** @type {'flat' | 'nested'} */
30-
structure;
31-
3229
get appRoot() {
3330
return path.join(this.projectRoot, 'app');
3431
}

0 commit comments

Comments
 (0)