Comments (2)
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.
@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)
- 💅 [Svelte] [TS] When a component is used as a type, biome unsafely converts import to a type import HOT 1
- 💅 `useExhaustiveDependencies` doesn't support destructuring dependencies HOT 1
- 🐛 Parser errors on for loop label named `out` HOT 4
- ☂️ CSS Semantic Model HOT 3
- Removal of necessary parentheses when formatting union of types which include an `infer` ... `extends`
- 💅 Svelte linter issues with useConst and useImportType
- 📝 Non-null assertion on type cast of an object value isn't parsed correctly HOT 2
- 📝 [FR / Bug ?] When using `biome migrate prettier --write`, add the Prettier default of removing JSON trailing commas
- 🐛 CSS parser errors: Stuck at '<=' and Stuck at '500' HOT 3
- 💅 Biome does not resolve modules? HOT 3
- 🐛 `--reporter=summary` should display all diagnostics by default
- Thai Language Formatting Issue HOT 6
- 🐛 JSX inside `.vue` files can not be formatted HOT 8
- useFilenamingConvention and file based routing catch all `[...slug]`
- 🐛 Panic running biome lint . and piping to jq HOT 1
- 🐛 `--write` applies fixes to all rules ignoring `--only` HOT 1
- 📝 Error of sorting grouped imports in alphabetical order HOT 1
- `useHookAtTopLevel` reports errors on code that is not React
- 💅 Svelte : a component used as component AND type triggers the lint "All these imports are only used as types.biomelint/style/useImportType" HOT 1
- JSX doesn't format correctly 🐛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biome.