skip to Main Content

Javascript – Prettier automatically adds {" "}

When I try to formatting the below code with Prettier: export default function App() { return ( <View className="h-full flex flex-row justify-center bg-blue-500"> <View className="h-fit"> <Text className="bg-red-500">THIS WILL BE CENTERED</Text> </View> <StatusBar style="auto" /> </View> ); } It becomes: export…

VIEW QUESTION

Visual Studio Code – Conflicting prettier indent rules

I have the following eslint configuration: { "env": { "es2020": true, "jest": true }, "extends": [ "eslint:recommended", "plugin:react/recommended", "plugin:import/recommended", "plugin:import/typescript", "plugin:prettier/recommended", "plugin:@typescript-eslint/recommended" ], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint", "prettier"], "settings": { "import/resolver": { "typescript": true, "node": true } }, "overrides": […

VIEW QUESTION
Back To Top
Search