Berry React
v4.0.0
v4.0.0
  • Introduction
  • Package
  • Getting Started
    • Pre-requisites
    • Quick Start
    • Mock backend
    • Deployment
    • Licensing
  • Setup
    • Seed
    • To Existing Project
  • Folder Structure
  • State Management
  • Multi Language
  • Authentication
    • Firebase
    • Auth0
    • AWS Cognito
    • Supabase
  • API Calls
  • Routing
    • New Menu
    • Login as First Page
    • Skip Login
    • Render Menu from the backend
    • Remove menu render via backend
  • Theme
    • Configuration
    • Presets
    • Style
      • Color
      • Typography
      • Overrides
      • Shadows
    • Layouts
    • Logo
  • How to
    • Remove eslint
    • Remove prettier
  • Components
    • Avatar
    • AnimateButton
    • Accordion
    • Breadcrumbs
    • Chip
    • ImageList
    • MainCard
    • Transitions
    • SubCard
  • Dependencies
  • Support
    • Roadmap
    • Changelog
    • FAQ
  • Berry Eco System
Powered by GitBook
On this page

Was this helpful?

  1. How to

Remove prettier

Disable code styling

To Remove Prettier from formatting your React.js code, you can follow the steps below:

  1. Remove Prettier from your project dependencies by running the following command in your terminal:

npm uninstall prettier --save
  1. Remove the below code from file .eslintrc (if eslint is not disabled)

.eslintrc
"prettier/prettier": [
      2,
      {
        "bracketSpacing": true,
        "printWidth": 140,
        "singleQuote": true,
        "trailingComma": "none",
        "tabWidth": 4,
        "useTabs": false,
        "endOfLine": "auto"
      }
    ]
  1. Remove Prettier configuration files from your project, such as .prettierrc and .prettierignore.

  2. If you are using a code editor extension for Prettier, disable or uninstall it from your editor.

After completing these steps, Prettier will no longer be used to format your React.js code. However, you may want to use another code formatter or configure your editor to use its built-in formatting features.

Was this helpful?