Skip to content

Commit abaf8e3

Browse files
authored
Merge pull request #262 from taminomara/master
Handle deprecated `.emmyrc` options
2 parents 8793f89 + 207e7d1 commit abaf8e3

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

build/settings.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ function renderSetting(key, path, setting, result, descriptions) {
145145
return null;
146146
}
147147

148+
if (setting.deprecated) {
149+
rendered.deprecationMessage = "%config.common.deprecated%";
150+
}
151+
148152
if (!setting.description) {
149153
console.warn(`Found undocumented option: ${key}`);
150154
}

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"config.common.deprecated": "This option is deprecated",
23
"config.common.enum.default.description": "Use value from `.emmyrc.json` or fall back to default",
34
"config.common.enum.off.description": "Override `.emmyrc.json` and disable this option",
45
"config.common.enum.on.description": "Override `.emmyrc.json` and enable this option",

package.nls.zh-cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"config.common.deprecated": "This option is deprecated",
23
"config.common.enum.default.description": "使用 `.emmyrc.json` 中的值,或回退到默认值",
34
"config.common.enum.off.description": "覆盖 `.emmyrc.json` 并禁用此选项",
45
"config.common.enum.on.description": "覆盖 `.emmyrc.json` 并启用此选项",

0 commit comments

Comments
 (0)