Berry React
v3.7.0
v3.7.0
  • Documentation
  • 🎺About - Berry Remix
  • Pre-requisites
  • Quick Start
  • Folder Structure
  • State Management
  • Internationalization
  • Authentication
  • Axios API Calls
  • Routing
  • Project Configuration
  • Color Presets
  • Theme/Style Configuration
  • How to
    • Login as First Page
    • Add a menu from the backend
    • Remove eslint
    • Remove prettier
  • Integration
  • Resources
  • Roadmap
  • Support
  • 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?