question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using editor preferences

See original GitHub issue

Updating to prettier-atom@0.50.0 I’ve noticed my editor preference for single quotes isn’t being respected. It’s formatting everything to be double quotes.

I’m only using prettier, and have the eslint integration disabled. I do have an eslint config, but that also is set to use single quotes.

I’m guessing this may be a result of #374?

Atom version: 1.23.3
prettier-atom version: 0.50.0
prettier version: 1.10.2
prettier-eslint version: 8.8.1
prettier-atom configuration: {
  "formatOnSaveOptions": {
    "enabled": true,
    "excludedGlobs": [
      "package.json"
    ],
    "respectEslintignore": true,
    "showInStatusBar": false,
    "javascriptScopes": [
      "source.js",
      "source.jsx",
      "source.js.jsx",
      "source.babel",
      "source.js-semantic",
      "text.html.basic",
      "text.html.vue"
    ],
    "typescriptScopes": [
      "source.ts",
      "source.tsx",
      "source.ts.tsx"
    ],
    "cssScopes": [
      "source.css",
      "source.less",
      "source.css.less",
      "source.scss",
      "source.css.scss",
      "source.css.postcss"
    ],
    "jsonScopes": [
      "source.json"
    ],
    "graphQlScopes": [
      "source.graphql"
    ],
    "markdownScopes": [
      "source.md",
      "source.gfm",
      "text.md"
    ],
    "vueScopes": [
      "text.html.vue"
    ],
    "whitelistedGlobs": [],
    "isDisabledIfNotInPackageJson": false,
    "isDisabledIfNoConfigFile": false
  },
  "prettierOptions": {
    "arrowParens": "always",
    "singleQuote": true,
    "trailingComma": "all",
    "bracketSpacing": true,
    "semi": true,
    "useTabs": false,
    "jsxBracketSameLine": false,
    "printWidth": 80,
    "tabWidth": "auto",
    "parser": "babylon"
  },
  "silenceErrors": false,
  "useEslint": false,
  "useStylelint": false,
  "useEditorConfig": true,
  "prettierEslintOptions": {
    "prettierLast": false
  }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
olsonpmcommented, Feb 13, 2018

I’m mainly referring to eslint sharable config.

Ah gotcha.

Is there anything that atom would keep in it’s settings, hanging around from a previous version, that could be impacting this?

I don’t know what’s causing it yet. The good news is I can reproduce which is always the hardest part haha. I’ll let you know what I find.

2reactions
BarryThePenguincommented, Feb 13, 2018

Thanks all for the detailed information. Glad I could help ☺️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Editor Preferences - Unreal Engine Documentation
The Editor Preferences window is used to modify settings that control the behavior of Unreal Editor with respect to controls, viewports, source control,...
Read more >
Useful Editor Preferences - ben ui
Useful Editor Preferences. Unreal separates settings into two parts: Project Settings and Editor Preferences. Project Settings are shared ...
Read more >
General editor preferences - IBM
From the editor: right-click and select Preferences. Setting colors and fonts. Use the Colors and Fonts preference to set the default font for...
Read more >
Editor preferences | Unreal Engine 4 Game Development ...
Back in the main editor window, if you go to Edit | Editor Preferences (near the bottom), you will see options to customize...
Read more >
EditorConfig settings - Visual Studio (Windows) - Microsoft Learn
You can still set your own personal editor preferences in the Visual Studio Options dialog box. Those settings apply whenever you're working in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found