We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10d8408 commit c288345Copy full SHA for c288345
utils/renderEslint.ts
@@ -73,4 +73,13 @@ export default function renderEslint(
73
const fullPath = path.resolve(rootDir, fileName)
74
fs.writeFileSync(fullPath, content as string, 'utf-8')
75
}
76
+
77
+ // update .vscode/extensions.json
78
+ const extensionsJsonPath = path.resolve(rootDir, '.vscode/extensions.json')
79
+ const existingExtensions = JSON.parse(fs.readFileSync(extensionsJsonPath, 'utf8'))
80
+ existingExtensions.recommendations.push('dbaeumer.vscode-eslint')
81
+ if (needsPrettier) {
82
+ existingExtensions.recommendations.push('esbenp.prettier-vscode')
83
+ }
84
+ fs.writeFileSync(extensionsJsonPath, JSON.stringify(existingExtensions, null, 2) + '\n', 'utf-8')
85
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments