Giter Site home page Giter Site logo

Comments (2)

ematipico avatar ematipico commented on July 21, 2024

Can you provide us with all the information to replicate the issue? In this case, the file you're trying to lint. Without that, it's not possible to help you

from biome.

hexh250786313 avatar hexh250786313 commented on July 21, 2024

@ematipico I apologize for not providing detailed information earlier. Here are the steps to reproduce:

Execute that:

git clone https://github.com/hexh250786313/fastify-starter.git
cd fastify-starter
npm ci
npx biome lint --stdin-file-path=./src/index.ts < ./src/index.ts

And you will get that:

 npx biome lint --stdin-file-path=./src/index.ts < ./src/index.ts
import Fastify from 'fastify';

const server = Fastify({
    logger: true,
});

server.get('/', async () => {
    return { hello: 'world' };
});

const = "";

const start = async () => {
    try {
        await server.listen({
            port: 3000,
            host: '127.0.0.1',
        });
        server.log.info(`Server is running at http://localhost:3000`);
    } catch (err) {
        server.log.error(err);
        process.exit(1);
    }
};

start();
./src/index.ts parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ Expected an identifier, an array pattern, or an object pattern but instead found '= ""'.

  ℹ Expected an identifier, an array pattern, or an object pattern here.


./src/index.ts parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ expected `,` but instead found `;`

  ℹ Remove ;


./src/index.ts parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  ✖ Expected an identifier, an array pattern, or an object pattern but instead found '= ""'.

  ℹ Expected an identifier, an array pattern, or an object pattern here.

from biome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.