-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support packageProp
in cosmiconfig
#1178
feat: Support packageProp
in cosmiconfig
#1178
Conversation
This PR adds support for the [`packageProp`](https://github.com/davidtheclark/cosmiconfig#packageprop) in [`cosmiconfig`](https://github.com/davidtheclark/cosmiconfig). This feature enables developers to remove yet another boilerplate file from their apps.
Thank you for the suggestion. Two things:
Kind regards, |
Hi Jason, If you want to be more specific about the load order, I would suggest adding Personally, I wouldn't write a unit test for this. The authors of Example unit tests
That said, if a unit test is required, I am more than happy to oblige 👍 As for the trend of moving away from config in Something like this: {
"commitlint": {
"extends": "@company/commitlint-config"
},
"eslintConfig": {
"extends": "@company/eslint-config"
},
"prettier": "@company/prettier-config"
} Not that anecdotal evidence counts for much, have a look at this GitHub Search Result. There's about ~1.5 million results of developers using Picking one of the first results at random shows the trend that I am seeing. As for my personal case, I would want a version similar to: {
"cspell": {
"import": "@company/cspell-config"
}
} This will help me, (and presumably others), consolidate configuration. I don't see this becoming more confusing, I personally find the opposite is true; having numerous boilerplate files. For example, if you create a new react app using create-react-app, it will create you a "eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
} And considering how often React is downloaded, I feel confident saying that a decent percentage of the community is comfortable with some sort of config inside a |
Thank you for the detailed response. I think your idea of adding it to the To be clear, I wasn't doubting Thank you for the help. |
Ok. I'll update the PR to add it to |
I think making it first is the best option. That way someone can import as expected. Importing a |
Remove `packageProp` in favour of `searchPlaces`.
Thank you. |
This PR adds support for the
packageProp
incosmiconfig
.This feature enables developers to remove yet another boilerplate file from their apps.