mirror of
https://github.com/cypress-io/cypress.git
synced 2026-01-23 15:39:05 -06:00
* Added a file that removes comments that start with #. * Added .eslintrc to silence ts errors in codemods. * Convert switch (false) to if-else. * Add disable-eslint no-empty by default after empty catch. * Reserve comments when converting switch-case. * Added new codemods to bulk-decaffeinate. * Preserve comments. * Ignored lint rules for test fixtures. * Move comments between arrow and block to the top. * Merged tests into one file. * Turned off no-undef for test fixtures. * No-cond-assign * Added jscodemods to decaff config. * Fixed typo. * Make CI test codemods * Added test-no-return. * Revert "Added test-no-return." This reverts commit d610829e957e38a6d56c19ba2219681e3f6c65ec. * fix arrow-comment Co-authored-by: Ben Kucera <14625260+Bkucera@users.noreply.github.com> Co-authored-by: Zach Bloomquist <github@chary.us>
23 lines
1006 B
JavaScript
23 lines
1006 B
JavaScript
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',
|
|
],
|
|
}
|