Code Monkey home page Code Monkey logo

Comments (9)

fuadop avatar fuadop commented on August 17, 2024 1

@JoshuaKGoldberg about this, looks like prettier has to be set up from scratch for the repo ?

from projects.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on August 17, 2024 1

I normally just go with the default settings. Though for accessibility (see: prettier/prettier#7475) I'm planning on switching all my repos to use tabs instead of spaces. So just that one setting difference: useTabs: true.

from projects.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on August 17, 2024 1

Oh! Forgive me, I'd forgotten whether semi is enabled or not. I strongly prefer semicolons.

from projects.

JoshuaKGoldberg avatar JoshuaKGoldberg commented on August 17, 2024 1

Hmm, let's just go with the defaults.

from projects.

fuadop avatar fuadop commented on August 17, 2024

Do you have a specific prettier config you love ?

from projects.

fuadop avatar fuadop commented on August 17, 2024

Hey @JoshuaKGoldberg , I want to use the below configuration.. but the project codes (arrays, generics, etc.) .. don't follow the semi-colon rule.. which would make a whole lot of file change if I run prettier --write . . Is that okay ? or do I change the config to allow semi colon ?

{
  "trailingComma": "es5",
  "tabWidth": 4,
  "semi": false,
  "singleQuote": true,
  "useTabs": true
}

from projects.

fuadop avatar fuadop commented on August 17, 2024

Yea I perfer semicolons too.

from projects.

fuadop avatar fuadop commented on August 17, 2024

How about the tabWidth ? Do you like it as four ? or two ?

from projects.

fuadop avatar fuadop commented on August 17, 2024

Okay ✅

from projects.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.