Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Must save twice for new files to get autofix working #227

Open
jsumners opened this issue Jun 22, 2021 · 0 comments
Open

Must save twice for new files to get autofix working #227

jsumners opened this issue Jun 22, 2021 · 0 comments
Labels

Comments

@jsumners
Copy link

What version of this package are you using?

v1.5.1

What operating system, Node.js, and npm version?

macOS 11.2.3
Node v14.17.0
npm 6.14.13

What happened?

When starting a new file I must press cmd+s twice in order for autofix to apply corrections. For example, creating a new file with this content will result in no corrections being applied on the first save attempt:

'use strict'

const server = require('fastify')({logger: false})

server.route({
  path: '/',
  method: 'GET',
  handler (request, reply) {
    reply.send({hello: 'world'})
  }
})

module.exports = server

What did you expect to happen?

When saving the new file for the first time, any rule violations should be automatically fixed.

Are you willing to submit a pull request to fix this bug?

No. I am not familiar with TypeScript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants