forked from cypress-io/cypress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bulk-decaffeinate.config.js
22 lines (21 loc) · 1006 Bytes
/
bulk-decaffeinate.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const path = require('path')
module.exports = {
decaffeinateArgs: [
'--use-cs2',
'--loose',
],
jscodeshiftScripts: [
path.resolve('node_modules', 'js-codemod', 'transforms', 'arrow-function.js'),
path.resolve('node_modules', 'js-codemod', 'transforms', 'arrow-function-arguments.js'),
path.resolve('node_modules', 'js-codemod', 'transforms', 'no-vars.js'),
path.resolve('node_modules', 'jscodemods', 'transforms', 'fix-class-assign-construct.js'),
path.resolve('node_modules', 'jscodemods', 'decaffeinate', 'fix-multi-assign-class-export.js'),
path.resolve('node_modules', 'jscodemods', 'decaffeinate', 'fix-implicit-return-assignment.js'),
path.resolve('node_modules', 'jscodemods', 'decaffeinate', 'fix-existential-conditional-assignment.js'),
'./scripts/decaff/remove-comment-sharp.js',
'./scripts/decaff/switch-false.js',
'./scripts/decaff/empty-catch.js',
'./scripts/decaff/no-cond-assign.js',
'./scripts/decaff/arrow-comment.js',
],
}