diff --git a/packages/create-redwood-app/scripts/tsToJS.js b/packages/create-redwood-app/scripts/tsToJS.js index 6ce9e5f4b6c0..e4880fe6a02c 100644 --- a/packages/create-redwood-app/scripts/tsToJS.js +++ b/packages/create-redwood-app/scripts/tsToJS.js @@ -121,3 +121,13 @@ const seedFile = fs fs.writeFileSync(seedFilePath, seedFile) console.groupEnd() + +console.group('Updating lint ignore line in auth.js') + +const authFilePath = path.join(JS_TEMPLATE_PATH, 'api', 'src', 'lib', 'auth.js') +const authFile = fs + .readFileSync(authFilePath, 'utf-8') + .replace('@typescript-eslint/no-unused-vars', 'no-unused-vars') +fs.writeFileSync(authFilePath, authFile) + +console.groupEnd()