Replies: 4 comments
-
the primary consumer of eslint-plugin-compat is apps. the distinction between devDeps and devs for apps isn't very valuable so frameworks like next have been putting build dependencies in deps. but if palette's primary consumer was libs, this would be a different story |
Beta Was this translation helpful? Give feedback.
-
@amilajack Only Next.js does this in their generator, but that doesn't mean it's a good idea. |
Beta Was this translation helpful? Give feedback.
-
good points, here're my observations
linting is often run in ci/cd.
create-react-app also seems to do this as well: "dependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
}, |
Beta Was this translation helpful? Give feedback.
-
closing but let's continue the discussion |
Beta Was this translation helpful? Give feedback.
-
The removal of the
npm-install
flag for saving this package to the development dependencies in theREADME.md
seems like a questionable choice.The package is meant to be used as support for development. People who will blindly copy the
npm install eslint-plugin-compat
command will now install it as a production dependency, while the majority should install it as a development dependency.What was the reasoning behind this?
Beta Was this translation helpful? Give feedback.
All reactions