콘텐츠로 이동
Search

ESLint:Rules

Add Config

.eslintrc 설정의 rules 에 추가 가능하다. #SwitchCase를 예로:

    "rules": {
      "indent": [
        "error",
        2,
        {
          "SwitchCase": 1
        }
      ],

Indent

SwitchCase

스위치문 에서 switch와 case의 Indent 크기에 대한 설정.

switch(a){
    case "a":
        break;
    case "b":
        break;
}

See also

lastmod 2022-04-12created 2022-04-12author Zer0 sitemap