Closed macmeals closed 2 years ago
型定義の命名規則について#6
❶パスカルケースになっていないTypeの名前をEslintで検出するため、.eslintrc.jsonに以下のルールを追加。 変更したファイル 「.eslintrc.json」 "rules": { // Typeはパスカルケースでないとエラーを出す。 "@typescript-eslint/naming-convention": [ "error", { "selector": "typeAlias", "format": ["PascalCase"] } ] }
"rules": { // Typeはパスカルケースでないとエラーを出す。 "@typescript-eslint/naming-convention": [ "error", { "selector": "typeAlias", "format": ["PascalCase"] } ] }
❷以下のComponetの中にあったキャメルケースの(パスカルケースになっていない)Typeの名前をパスカルケースに変更
グッドルッキングな猫のLGTM &ご確認ありがとうございます〜こちらでマージしますね!
Issue
型定義の命名規則について#6
内容
❶パスカルケースになっていないTypeの名前をEslintで検出するため、.eslintrc.jsonに以下のルールを追加。 変更したファイル 「.eslintrc.json」
"rules": { // Typeはパスカルケースでないとエラーを出す。 "@typescript-eslint/naming-convention": [ "error", { "selector": "typeAlias", "format": ["PascalCase"] } ] }
❷以下のComponetの中にあったキャメルケースの(パスカルケースになっていない)Typeの名前をパスカルケースに変更