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.

Issue with rule standard/computed-property-even-spacing

See original GitHub issue

When linting with standard, prettier-standard formatting conflicts with the rule standard/computed-property-even-spacing.

Similar to https://github.com/prettier/eslint-config-prettier/issues/29

Prettier standard wants this:

const { whatever } = loooooooooooooooooooooooong[
      something
].some.thiiiiiiiiiiiiing[0]

While standard wants:

const { whatever } = loooooooooooooooooooooooong[something].some.thiiiiiiiiiiiiing[0]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sheeruncommented, Jan 19, 2019

prettier-standard 9.0.0 now uses just prettierx for formatting and we recommend using https://github.com/prettier/eslint-config-prettier in .eslintrc to disable any non-compatible whitespace rules set by standard. unfortunately it’s not possible to have true 1:1 match between prettier and standard, but we’re pretty close 😃 you can contribute or raise issues to https://github.com/brodybits/prettierx to fix remaining incompatibilities

0reactions
havenchykcommented, Dec 1, 2019

unfortunately it’s not possible to have true 1:1 match between prettier and standard

@sheerun does it mean that some of rules should be disabled to prevent conflicts with eslint-config-standard and eslint-confit-standard-jsx

I see indent and react/jsx-curly-newline have conflicts at the moment, so can I just disable them and rely on prettier-standard instead?

Read more comments on GitHub >

github_iconTop Results From Across the Web

conflicts with standard/computed-property-even-spacing #29
I use Prettier + eslint-config-standard + eslint-config-prettier in a pretty large project and haven't bumped into any problems yet.
Read more >
computed-property-spacing - Pluggable JavaScript Linter
This rule enforces consistent spacing inside computed property brackets. It either requires or disallows spaces between the brackets and the values inside of ......
Read more >
Eslint-plugin-standard NPM - npm.io
computed-property-even-spacing - Like computed-property-spacing around ESLint except is has an even option which lets you have 1 or 0 spacing padding.
Read more >
eslint-plugin-standard - npm
computed -property-even-spacing - Like computed-property-spacing around ESLint except is has an even option which lets you have 1 or 0 spacing padding. no ......
Read more >
eslint-plugin-standard2 - npm package | Snyk
ESlint Plugin for the Standard Linter 2 For more information about how to use ... computed-property-even-spacing - Like computed-property-spacing around ...
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