diff --git a/hotel-management/.editorconfig b/hotel-management/.editorconfig index 88bf97c..2d76197 100644 --- a/hotel-management/.editorconfig +++ b/hotel-management/.editorconfig @@ -9,4 +9,4 @@ indent_size = 2 end_of_line = crlf charset = utf-8 trim_trailing_whitespace = false -insert_final_newline = false \ No newline at end of file +insert_final_newline = true diff --git a/hotel-management/.eslintrc.cjs b/hotel-management/.eslintrc.cjs index 6e8698b..4c99537 100644 --- a/hotel-management/.eslintrc.cjs +++ b/hotel-management/.eslintrc.cjs @@ -2,16 +2,16 @@ module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:react-hooks/recommended", + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:react-hooks/recommended', ], - ignorePatterns: ["dist", ".eslintrc.cjs"], - parser: "@typescript-eslint/parser", - plugins: ["react-refresh"], + ignorePatterns: ['dist', '.eslintrc.cjs'], + parser: '@typescript-eslint/parser', + plugins: ['react-refresh'], rules: { - "react-refresh/only-export-components": [ - "warn", + 'react-refresh/only-export-components': [ + 'warn', { allowConstantExport: true }, ], },