Comments (1)
There seems something off with our js scope analysis. We have this test case in the file
biome/crates/biome_js_semantic/src/semantic_model/closure.rs
Lines 438 to 440 in b3d8bfd
But if I change it to this it will fail:
let two_captures = "function f(c) {console.log(a, b, c)} let a, b;"; // move function definition to the front
assert_closure(two_captures, "f", &["a", "b"]);
assert_eq!(get_closure_children(two_captures, "f").len(), 0);
from biome.
Related Issues (20)
- 💅 lint/suspicious/noImplicitAnyLet does not consider any arrays HOT 1
- 💅 noUnusedImports - fix breaks code HOT 2
- 🐛 CSS Parser with nested `:not(:last-child)` selector HOT 2
- 🐛 `extends` using extenal packages not working with Yarn PnP HOT 4
- 🐛 useSortedClasses lint error with Template literals HOT 10
- 📝 Formatter automatically removes all escaping backslashes in strings and there's no option to disable it
- 📎 ESLint Migration reporter
- 💅 noUnusedImports removes any comments above the import HOT 4
- 🐛 Incorrect option name in hint when using `:global` in CSS module
- 💅 [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
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.