Skip to content

Commit

Permalink
chore(crwa): transform lint ignore line as part of ts-to-js (#11538)
Browse files Browse the repository at this point in the history
We have to transform the lint ignore line when we transform the ts
template into js too.
  • Loading branch information
Josh-Walker-GM committed Sep 12, 2024
1 parent ecfbc6d commit 2cac1f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/create-redwood-app/scripts/tsToJS.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 2cac1f7

Please sign in to comment.