Difference from standard
See original GitHub issuehttps://gist.github.com/johnmuhl/4592c57c0b1c85e5b4c8f035c3ecf6eb
The configuration-original.js
file is generated by the rails/webpacker
gem; configuration.js
is the result of running prettifier-standard
. standard-out.sh
shows the offending code; i.e.
// Expected "[" and "]" to be on the same line
const paths = safeLoad(readFileSync(join(configPath, 'paths.yml'), 'utf8'))[
env.NODE_ENV
]
Standard 10.x and 9.x show the same error.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Difference Between Standard Deviation and Standard Error
Standard deviation (SD) and standard error (SE) both measure variability. High values of either statistic indicate more dispersion. However, that's where the ...
Read more >Standard Error of the Mean vs. Standard Deviation
Standard error of the mean measures the precision of the sample mean to the population mean that it is meant to estimate.
Read more >Difference Between Standard Deviation and Standard Error
Standard Deviation is defined as an absolute measure of dispersion of a series. It clarifies the standard amount of variation on either side ......
Read more >The Difference Between Standard Deviation and Standard Error
Standard deviation measures the dispersion of data in relation to the mean, while standard error indicates the precision of the estimate of ...
Read more >Standard Deviation vs Standard Error: What's the Difference?
In particular, you need to be able to understand the difference between standard deviation and standard error. Standard deviation is a measure of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Right, but the snippet I posted included
prettier
, which is the formatter at the core of this library. I was asking whatprettier-standard
provides me as a library over just usingprettier
andstandard
in the one-liner I mentioned.I generally agree that allowing for configuration of tools is valuable for developers, and that is exactly what ESLint provides. But Standard was built explicitly to avoid manual configuration and bikeshedding.
It’s not that I don’t like the use of the
object-curly-spacing
rule here, it’s that it isn’t yet decided in Standard itself. There are plenty of other things I disagree with that Standard does (e.g. single-quotes in JSX, space after function name, etc.), but the whole point of me choosing Standard was to let go of my arbitrarily dogmatic opinions and let the library just make the decision for me, the benefit being zero configuration.I don’t want to have to maintain a
.eslintrc
, or update and change random rules over time. I have no problem delegating this to a team of people that will provide me a library of syntactic standards—even if I disagree with a choice they made. I will grow used to the rules that I initially disagree with, and in the end, all I care about in this context is style consistency.Correct me if I’m wrong, but this library seems to conflict with that idea. It contains deviations from Standard, allows for rule changing and extension, and I’m not entirely sure what it provides someone over just using
prettier
andstandard
together.This brings up a wider question to me: does this package provide anything more for me than just using prettier like this?
I know it was mentioned briefly in the prettier library, but I’m just wondering why I would use
prettier-standard
over the one-liner above.It seems like this library is actually not all that related to standard, since it doesn’t use standard for formatting, and allows for rules to be overridden, which goes directly against the philosophy of standard to “just pick something”.
I’m also concerned with
prettier-standard
’s divergence from or outrunning of standard’s rules, including things like enforcing “object-curly-spacing”, even though this is still in discussion in the actual standard library. (I’m actually confused where the base-level ESLint rules are defined for this package, as there is no.eslintrc
oreslintConfig
property in thepackage.json
.)I’m just afraid that if I use this, harmony between the
prettier-standard
andstandard
will split over time, causing inconsistencies in my codebase. (It also feels somewhat misleading calling thisprettier-standard
when it is closer to justprettier-eslint
.)