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
Create first config #1
Conversation
f7428a7
to
8a10193
Compare
0e3b699
to
5dec396
Compare
So after this is in, how can I get it into nextcloud/notifications#432 ? |
See https://github.com/skjnldsv/vueexample/pull/249/files :) |
81203f2
to
e179cb4
Compare
@skjnldsv-bot publish npm |
@georgehrke Still a few things to finish, the peerdependencies mostly, to avoid other apps updating their packages if the config does not support it |
Hi everybody! A common config is good, but why did you created a new repository for this? We have already https://github.com/nextcloud/eslint-plugin-nextcloud which could be enhanced with a new config!? |
This is very different. |
eslint-plugin-nextcloud contains a config set, too: https://github.com/nextcloud/eslint-plugin-nextcloud/tree/master/lib/configs I still don't see, why this needs to be separated. |
But a plugin only depends on its own configs :) |
You can use those configs directly from your custom app. That's what I'm doing in the notes app: https://github.com/nextcloud/notes/blob/master/.eslintrc.js#L22 We can move all that stuff to a new config inside of |
Looks like a very bad idea to me. If we do that, suddenly we get into a very messy dependency management where we have the config requiring webpack, eslint-vue... deps that are not required at all by the plugin (originally). |
All working fine @georgehrke $ npm i --save-dev eslint@6.0.0
npm WARN eslint-config-nextcloud@0.0.5 requires a peer of eslint@^5.0.0 but none is installed. You must install peer dependencies yourself.
@korelstar any reason you seems to be against this new package? |
I just didn't see the advantage for a separate package (which just means more maintainance overhead). Furthermore, the current implementation contains definitions, we already have in eslint-plugin-nextcloud (e.g. globals). |
Well, I follow eslint guidelines and don't want to pollute the main plugin which is supposed to provide dedicated nextcloud rules. All I see is less thing to do for you! |
From https://github.com/skjnldsv/vueexample/blob/master/.eslintrc.js
See working example skjnldsv/vueexample#249