BlogDocs

feat(biome_js_analyze): noRestrictedImports - Added option to allow import from specific locations(#2977)

Merging
ziongh:main
(
aa2f276
) into
main
(
5fe2f68
)
0%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
90
NEW
0
DROPPED
0
IGNORED
11

Benchmarks

Passed

pure.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::pure.css[cached]
+4%
4 ms
3.8 ms
tachyons.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::tachyons.css[cached]
+4%
21.4 ms
20.7 ms
pixi.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::pixi.min.js[cached]
+2%
121.4 ms
118.8 ms
materialize.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::materialize.css[uncached]
+2%
36.6 ms
35.9 ms
three.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::three.min.js[cached]
+2%
137.5 ms
134.8 ms
ios.d.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::ios.d.ts[uncached]
+2%
286.5 ms
281.2 ms
css_formatter[bulma.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[bulma.css]
+2%
109.6 ms
107.7 ms
compiler.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::compiler.js[uncached]
+2%
162.5 ms
159.8 ms
json_formatter[big5-added.json]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[big5-added.json]
+1%
1.6 ms
1.6 ms
tex-chtml-full.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::tex-chtml-full.js[uncached]
+1%
284.9 ms
282.1 ms
materialize.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::materialize.css[cached]
+1%
33.2 ms
32.9 ms
pure.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::pure.css[uncached]
+1%
4.6 ms
4.6 ms
css_formatter[semantic.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[semantic.css]
+1%
294.6 ms
292.6 ms
bulma.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bulma.css[cached]
+1%
44.7 ms
44.4 ms
vue.global.prod.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::vue.global.prod.js[uncached]
+1%
47.5 ms
47.2 ms
semantic.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::semantic.css[cached]
+1%
142.1 ms
141.2 ms
css_formatter[materialize.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[materialize.css]
0%
80.8 ms
80.4 ms
parser.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::parser.ts[uncached]
0%
7 ms
6.9 ms
checker.ts[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::checker.ts[uncached]
0%
275.9 ms
274.8 ms
tex-chtml-full.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::tex-chtml-full.js[cached]
0%
266.6 ms
265.6 ms
js_formatter[compiler.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[compiler.js]
0%
550.4 ms
548.5 ms
full.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::full.css[cached]
0%
498 ms
496.4 ms
react.production.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react.production.min.js[uncached]
0%
2.2 ms
2.2 ms
js_formatter[d3.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[d3.min.js]
0%
444.6 ms
443.8 ms
math.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::math.js[cached]
0%
198.6 ms
198.3 ms
typescript.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::typescript.js[cached]
0%
955.1 ms
953.8 ms
css_formatter[foundation.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[foundation.css]
0%
73.1 ms
73 ms
canada.json[uncached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::canada.json[uncached]
0%
222.7 ms
222.5 ms
schema.graphql[uncached]
xtask/bench/benches/graphql_parser.rs::graphql_parser::bench_css_parser::graphql_parser::schema.graphql[uncached]
0%
698 µs
697.1 µs
pixi.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::pixi.min.js[uncached]
0%
134.9 ms
134.8 ms
tachyons.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::tachyons.css[uncached]
0%
25.1 ms
25.1 ms
typescript.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::typescript.js[uncached]
0%
1 s
1 s
js_formatter[typescript.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[typescript.js]
0%
3.5 s
3.5 s
canada.json[cached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::canada.json[cached]
0%
169.9 ms
169.8 ms
vue.global.prod.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::vue.global.prod.js[cached]
0%
43.3 ms
43.2 ms
schema.graphql[cached]
xtask/bench/benches/graphql_parser.rs::graphql_parser::bench_css_parser::graphql_parser::schema.graphql[cached]
0%
643 µs
642.7 µs
parser.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::parser.ts[cached]
0%
6.3 ms
6.3 ms
css_formatter[pure.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[pure.css]
0%
9.2 ms
9.2 ms
css_formatter[full.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[full.css]
0%
1.2 s
1.2 s
css_formatter[bootstrap.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[bootstrap.css]
0%
109.6 ms
109.6 ms
compiler.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::compiler.js[cached]
0%
144.4 ms
144.4 ms
package-lock.json[uncached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::package-lock.json[uncached]
0%
6.1 ms
6.1 ms
js_formatter[router.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[router.ts]
0%
6.9 ms
6.9 ms
js_formatter[math.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[math.js]
0%
889.8 ms
890.1 ms
json_formatter[canada.json]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[canada.json]
0%
737.8 ms
738.2 ms
d3.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::d3.min.js[cached]
0%
103.9 ms
103.9 ms
foundation.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::foundation.css[cached]
0%
30.1 ms
30.1 ms
ios.d.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::ios.d.ts[cached]
0%
261.8 ms
262.1 ms
full.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::full.css[uncached]
0%
521.6 ms
522.4 ms
json_formatter[package-lock.json]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[package-lock.json]
0%
19.8 ms
19.8 ms
js_formatter[tex-chtml-full.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[tex-chtml-full.js]
0%
1.1 s
1.1 s
css_formatter[tachyons.css]
xtask/bench/benches/css_formatter.rs::css_formatter::bench_css_formatter::css_formatter[tachyons.css]
0%
37.7 ms
37.8 ms
js_formatter[jquery.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[jquery.min.js]
0%
119.7 ms
120 ms
css_analyzer[pure.css]
xtask/bench/benches/css_analyzer.rs::css_analyzer::bench_analyzer::css_analyzer[pure.css]
0%
6.5 ms
6.5 ms
bootstrap.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bootstrap.css[uncached]
0%
50.6 ms
50.7 ms
d3.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::d3.min.js[uncached]
0%
112.8 ms
113 ms
css_analyzer[bulma.css]
xtask/bench/benches/css_analyzer.rs::css_analyzer::bench_analyzer::css_analyzer[bulma.css]
0%
78.6 ms
78.7 ms
js_formatter[checker.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[checker.ts]
0%
926.1 ms
928.4 ms
css_analyzer[foundation.css]
xtask/bench/benches/css_analyzer.rs::css_analyzer::bench_analyzer::css_analyzer[foundation.css]
0%
60.4 ms
60.5 ms
js_formatter[three.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[three.min.js]
0%
594.2 ms
595.8 ms
css_analyzer[bootstrap.css]
xtask/bench/benches/css_analyzer.rs::css_analyzer::bench_analyzer::css_analyzer[bootstrap.css]
0%
91.8 ms
92.1 ms
js_formatter[parser.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[parser.ts]
0%
20.7 ms
20.8 ms
css_analyzer[tachyons.css]
xtask/bench/benches/css_analyzer.rs::css_analyzer::bench_analyzer::css_analyzer[tachyons.css]
0%
42.9 ms
43 ms
js_formatter[vue.global.prod.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[vue.global.prod.js]
0%
182.5 ms
183.2 ms
js_analyzer[router.ts]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[router.ts]
0%
15.1 ms
15.1 ms
react-dom.production.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react-dom.production.min.js[cached]
0%
35.4 ms
35.5 ms
js_formatter[dojo.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[dojo.js]
0%
28.6 ms
28.7 ms
js_formatter[react-dom.production.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[react-dom.production.min.js]
0%
140.7 ms
141.3 ms
three.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::three.min.js[uncached]
0%
146 ms
146.8 ms
js_analyzer[index.js]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[index.js]
-1%
32.6 ms
32.8 ms
js_analyzer[css.js]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[css.js]
-1%
15.3 ms
15.3 ms
js_analyzer[statement.ts]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[statement.ts]
-1%
47.2 ms
47.5 ms
js_analyzer[typescript.ts]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[typescript.ts]
-1%
75.5 ms
76 ms
js_formatter[ios.d.ts]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[ios.d.ts]
-1%
787 ms
791.8 ms
js_analyzer[parser.ts]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[parser.ts]
-1%
52.8 ms
53.1 ms
react-dom.production.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react-dom.production.min.js[uncached]
-1%
38.7 ms
38.9 ms
js_formatter[pixi.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[pixi.min.js]
-1%
487.8 ms
491 ms
js_analyzer[lint.ts]
xtask/bench/benches/js_analyzer.rs::js_analyzer::bench_analyzer::js_analyzer[lint.ts]
-1%
25.7 ms
25.9 ms
bulma.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bulma.css[uncached]
-1%
48 ms
48.4 ms
semantic.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::semantic.css[uncached]
-1%
151.3 ms
152.9 ms
bootstrap.css[cached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::bootstrap.css[cached]
-1%
46.3 ms
46.9 ms
jquery.min.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::jquery.min.js[uncached]
-1%
28.7 ms
29.1 ms
checker.ts[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::checker.ts[cached]
-2%
249.9 ms
253.7 ms
json_formatter[eucjp.json]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[eucjp.json]
-2%
3 ms
3.1 ms
json_formatter[db.json]
xtask/bench/benches/json_formatter.rs::json_formatter::bench_json_formatter::json_formatter[db.json]
-2%
44.6 ms
45.3 ms
math.js[uncached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::math.js[uncached]
-2%
208.3 ms
212.3 ms
package-lock.json[cached]
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::package-lock.json[cached]
-3%
5.5 ms
5.6 ms
foundation.css[uncached]
xtask/bench/benches/css_parser.rs::css_parser::bench_css_parser::css_parser::foundation.css[uncached]
-3%
31.6 ms
32.5 ms
jquery.min.js[cached]
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::jquery.min.js[cached]
-3%
26.8 ms
27.7 ms
js_formatter[react.production.min.js]
xtask/bench/benches/js_formatter.rs::js_formatter::bench_js_formatter::js_formatter[react.production.min.js]
-3%
7.2 ms
7.4 ms

Ignored

dojo.js[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::dojo.js[cached]
-4%
8 ms
8.3 ms
dojo.js[uncached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::dojo.js[uncached]
+1%
9.3 ms
9.2 ms
react.production.min.js[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::react.production.min.js[cached]
-2%
1.9 ms
1.9 ms
router.ts[cached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::router.ts[cached]
0%
2.1 ms
2.1 ms
router.ts[uncached]Ignored
xtask/bench/benches/js_parser.rs::js_parser::bench_js_parser::js_parser::router.ts[uncached]
+1%
2.4 ms
2.4 ms
big5-added.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::big5-added.json[cached]
0%
438.4 µs
438.2 µs
big5-added.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::big5-added.json[uncached]
0%
544 µs
543.4 µs
db.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::db.json[cached]
-2%
13 ms
13.3 ms
db.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::db.json[uncached]
+3%
16 ms
15.6 ms
eucjp.json[cached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::eucjp.json[cached]
0%
816.9 µs
819.7 µs
eucjp.json[uncached]Ignored
xtask/bench/benches/json_parser.rs::json_parser::bench_json_parser::json_parser::eucjp.json[uncached]
+2%
957.4 µs
938.4 µs

Commits

Click on a commit to change the comparison range
base
main
5fe2f68
+7%
feat(biome_js_analyze): noRestrictedImports added option to allow import from specific locations
01b59c9
4 months ago
by ziongh
-7%
Merge branch 'main' into main
aa2f276
3 months ago
by ziongh
ResourcesHomePricingDocsBlogGitHubChangelog