LoginSignup
0
0

More than 1 year has passed since last update.

【Kintone】VSCodeでEslintを設定

Last updated at Posted at 2022-12-04

参考
https://developer.cybozu.io/hc/ja/articles/360000098886

インストールの手順3は2022年12月時点でTypeScriptとPrettierをインストールしてもエラーは発生しない。

.eslintrc.jsに書き込む内容は
「様々なルールセットを利用する」の「ES2017でのkintoneカスタマイズ」を反映させる。

module.exports = {
  extends: ["@cybozu", "@cybozu/eslint-config/globals/kintone"]
};

VSCodeの拡張機能をインストール後、再度.eslintrc.jsを編集。

module.exports = {
	"extends": ["@cybozu", "@cybozu/eslint-config/globals/kintone"]

	"rules": {
		"indent": [2, 4],
		"linebreak-style": ["error", "windows"],
	}
};

"indent" はインデントをスペース2個か4個のいずれかにする。
"linebreak-style"は改行コードをWindows(CRLF)にする。
という設定。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0