Skip to content

Commit 2145b03

Browse files
committed
refactor: Only allow one config key per plugin.
It's not worth the added complexity. This introduces challenges when extending a config file and one config file uses one plugin key and the other uses one of the aliases. This just makes it easier to understand for the user too.
1 parent 949ec4d commit 2145b03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wasm_plugin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use dprint_core::generate_plugin_code;
33
use super::configuration::{Configuration, resolve_config};
44
use super::formatter::Formatter;
55

6-
fn get_plugin_config_keys() -> Vec<String> {
7-
vec![String::from("typescript"), String::from("javascript")]
6+
fn get_plugin_config_key() -> String {
7+
String::from("typescript")
88
}
99

1010
fn get_plugin_file_extensions() -> Vec<String> {

0 commit comments

Comments
 (0)