better naming/organization of settings
, options
, and appSpecificApi
#1225
-
From #1221 (comment)
There is confusion indeed. Let's try to come up with better names. Context
Observation
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
This comment has been hidden.
This comment has been hidden.
-
Problem
Proposalhttps://www.loom.com/share/f1c48c10cddf41aa96e1767b74bf2ef5
The config is inspired by VSCode's settings which also only consist of key-value pairs and seem to make our communication and internal logic easier. // inlang.config.json
{
"sourceLanguageTag": "en",
"languageTags": ["en"],
"modules": ["./dist/index.js"],
"settings": {
// system wide settings
"system": {
"lintRuleLevels": {
"inlang.lint-rule-missing-message": "error",
"inlang.lint-rule-missing-pattern": "off"
}
},
"inlang.ide-extension": {
"activate": false
},
"inlang.sdk-js": {
"telemetry": "off"
},
"inlang.lint-rule-missing-message": {
"ignore": ["*inlang|globalization"]
},
"inlang.plugin-i18next": {
"pathPattern": "./examples/example01/{languageTag}.json",
"variableReferencePattern": ["{", "}"]
}
}
} Pros
Cons
|
Beta Was this translation helpful? Give feedback.
-
But how does it solve this? |
Beta Was this translation helpful? Give feedback.
-
I think that makes sense. I also was confused by settings and options at some point. As long as the module resolver can easily work with that I vote for changing it. 👍 |
Beta Was this translation helpful? Give feedback.
Problem
options
?settings
?Proposal
https://www.loom.com/share/f1c48c10cddf41aa96e1767b74bf2ef5
settings
system
is a reserved namespace for "system wide settings" like a lint level overwriteThe config is inspired by VSCode's settings which also only consist of key-value pairs and seem to make our communication and internal logic easier.