You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just do an pnpx create-remix and review package.json, it will have eslint-config-prettier. It also affects the official templates: express, haven't checked the rest.
System Info
Irrelevant, this is a report about unused extra dev-dependencies. Also the package manager used is irrelevant for this bug.
Used Package Manager
pnpm
Expected Behavior
To not have spurious packages installed by default.
Actual Behavior
Package eslint-config-prettier gets included in package.json, this package is for turning off Eslint style rules that may conflict with Prettier, but the template doesn't include Prettier, also to be really put into use, it has to be configured on Eslint configuration file in order to turn off style rules on Eslint.
So the current delivered way doesn't make sense.
I believe is a leftover artifact from PR #7597 , which on its first commit correctly adds configuration for this Eslint plugin by adding it to the extends field:
// ...extends: [// ..."prettier",],
But then, on commit ca6b95f, when adapting Eslint configuration for the remaining official templates, it completely forgets about it.
I was planning on starting a discussion to add a pre-configured development environment with basic industry-standard defaults setup from the start:
eslint only for errors
prettier for style
husky to add git hooks
lint-staged to only apply hooks to what's gonna be commited
But it seems, according to #7056 , that that's more pertaining to templates (aka stacks).
So in conclusion, package eslint-config-prettier shouldn't be part of the default installation.
The text was updated successfully, but these errors were encountered:
Reproduction
Just do an
pnpx create-remix
and reviewpackage.json
, it will haveeslint-config-prettier
. It also affects the official templates: express, haven't checked the rest.System Info
Irrelevant, this is a report about unused extra dev-dependencies. Also the package manager used is irrelevant for this bug.
Used Package Manager
pnpm
Expected Behavior
To not have spurious packages installed by default.
Actual Behavior
Package eslint-config-prettier gets included in
package.json
, this package is for turning off Eslint style rules that may conflict with Prettier, but the template doesn't include Prettier, also to be really put into use, it has to be configured on Eslint configuration file in order to turn off style rules on Eslint.So the current delivered way doesn't make sense.
I believe is a leftover artifact from PR #7597 , which on its first commit correctly adds configuration for this Eslint plugin by adding it to the
extends
field:But then, on commit ca6b95f, when adapting Eslint configuration for the remaining official templates, it completely forgets about it.
I was planning on starting a discussion to add a pre-configured development environment with basic industry-standard defaults setup from the start:
eslint
only for errorsprettier
for stylehusky
to add git hookslint-staged
to only apply hooks to what's gonna be commitedBut it seems, according to #7056 , that that's more pertaining to templates (aka stacks).
So in conclusion, package
eslint-config-prettier
shouldn't be part of the default installation.The text was updated successfully, but these errors were encountered: