Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 01:12
    ofk commented #13147
  • 01:11
    ofk commented #13147
  • 00:16
    nzakas commented #12935
  • 00:10

    nzakas on curlymultinest-examples

    (compare)

  • 00:10

    nzakas on master

    Docs: fix curly multi-or-nest e… (compare)

  • 00:10
    nzakas closed #13151
  • 00:09

    nzakas on noinnerdeclarations-docsboth

    (compare)

  • 00:09

    nzakas on master

    Docs: fix eslint comment in no-… (compare)

  • 00:09
    nzakas closed #13152
  • Apr 06 23:50
    mdjermanovic commented #13144
  • Apr 06 22:30
    kaicataldo commented #13152
  • Apr 06 22:28
    mdjermanovic unlabeled #12742
  • Apr 06 22:27
    mdjermanovic labeled #13152
  • Apr 06 22:27
    mdjermanovic labeled #13152
  • Apr 06 22:27
    mdjermanovic labeled #13152
  • Apr 06 22:27
    mdjermanovic opened #13152
  • Apr 06 22:09
    kaicataldo unlabeled #12740
  • Apr 06 22:06
    kaicataldo commented #13141
  • Apr 06 22:04
    mdjermanovic closed #13149
  • Apr 06 22:04
    mdjermanovic commented #13149
Tompouce
@Tompouce-onGit
Thanks
czaylove
@czaylove
image.png
please help me
I have difficulty fixing errors
Kevin Partington
@platinumazure
@czaylove As the error message says, it couldn't find a configuration file. Do you have an ESLint configuration file in your project somewhere?
Tanya Marych
@TMarych_twitter

Hi
I still can not see answer for problem with eslint and "@babel/plugin-proposal-optional-chaining"

"Hi, I installed "@babel/plugin-proposal-optional-chaining": "^7.6.0", and added to .eslintrc.json"

with this error: ESLint couldn't find the plugin "@babel/eslint-plugin-plugin-proposal-optional-chaining".

Can someone help with that, please?
eyelidlessness
@eyelidlessness
i don't know anything beyond just looking at the names, but those appear to be different package names. did you try also installing @babel/eslint-plugin-plugin-proposal-optional-chaining?
or does @babel/plugin-proposal-optional-chaining install that too?
Tanya Marych
@TMarych_twitter
yes, I installed this one and now eslint is broken
eyelidlessness
@eyelidlessness
you mean you installed both packages?
Tanya Marych
@TMarych_twitter
image.png
I installed @babel/plugin-proposal-optional-chaining
eyelidlessness
@eyelidlessness
it appears to be looking for the plugin named eslint-plugin-optional-chaining
Tanya Marych
@TMarych_twitter
Okay
lets start from beginning
I want to use @babel/plugin-proposal-optional-chaining in my project
But with it I can not use eslint anymore because of this error
So how can I add this plugin to eslint config to make it work?
eyelidlessness
@eyelidlessness
did you add eslint-plugin-optional-chaining to the plugin section of your config? or did eslint just infer that it should be there when you installed the babel plugin? (i don't use babel so just feeling around in the dark here to try to understand why it's looking for the plugin)
Tanya Marych
@TMarych_twitter
eslint-plugin-optional-chaining this one does not exist.
the second suggestion is correct
It looks for eslint-plugin-optional-chaining when have to @babel/plugin-proposal-optional-chaining
I know that it works by the rule that every plugin should have eslint-plugin-[name of plugin], but @babel/plugin-proposal-optional-chaining does not
So is it any way to use babel and eslint together?
eyelidlessness
@eyelidlessness
it sounds like that plugin may need to exist to use eslint with that babel plugin?
rhpijnacker
@rhpijnacker
I'd like to do some code refactoring and am considering to create some fixable custom eslint rules for this. However, I have the feeling I'm fixing too much.
Are there alternative solutions for something like this I could explore?
Tanya Marych
@TMarych_twitter
I just feel like there are many devs who trying to use both great tools for making code better
And none of devs would like to choose between them
Nikolay Babanov
@nbabanov
Hello guys!
eyelidlessness
@eyelidlessness
for sure, i wouldn't encourage you to choose between them. it seems that if eslint needs additional plugins to support arbitrary babel plugins, that's a design limitation that unfortunately would cause this. presumably there will be such a plugin soon, as optional chaining is such a desirable feature
Nikolay Babanov
@nbabanov
I have a problem with ESLint 6.7, which I did not have with 5.7: ESLint can no longer detect eslint-plugin-prettier. My setup is a monorepo with lerna. Can someone point the issue? How did ESLint changed the plugin resolve strategy?
Jakob Guddas
@jguddas

i'm looking for a rule that converts

if () {
  ...
} if () {
  ...
}

to

if () {
  ...
}
if () {
  ...
}
Jakob Guddas
@jguddas
is there something like padding-line-between-statements but for line breaks?
or like keyword-spacing but for line breaks instead of spaces?
Trevor Radcliffe
@t-rad679
It does not seem possible to configure the indent level for ConditionalExpression, other than to ignore it entirely. Is this true? If so, why?
Matej Rifelj
@matejrifelj
ESLint: 6.7.2.
ESLint couldn't find the plugin "eslint-plugin-react".
I have eslint installed globally.
And I did npm install eslint-plugin-react -g
Jordan Harband
@ljharb
don't install eslint globally, only install it locally, per project.
Matej Rifelj
@matejrifelj
but I have node_modules inside docker volume
and don't want it inside my project
Jordan Harband
@ljharb
if a project doesn't have eslint installed locally, it shouldn't be linted
imo
Matej Rifelj
@matejrifelj
to be honest, it works globally on my other machine, I just don't know what I did there diferently
Matej Rifelj
@matejrifelj
downgraded to ESLint 5 and now it works :/
Jordan Harband
@ljharb
right, eslint 6 made some changes that somewhat broke the use case of having a global eslint
Elirehema Paul
@elirehema
Hi
Am trying to configure eslint in nuxt project
when i added in extends: [@nuxtjs] i got this error ESLint couldn't find the config "@nuxtjs" to extend from. Please check that the name of the config is correct.
Kai Cataldo
@kaicataldo
It looks like you might be trying to use https://github.com/nuxt/eslint-config
Did you follow the instructions there? You’ll need to install the config in your project.
Roy Sutton
@webOS101
:paperclip: It looks like you might be trying to write a letter...
Kai Cataldo
@kaicataldo
I resent that comparison :laughing:
Carl Vitullo
@vcarl
hi hi. i'm updating deps, and am hitting a ton of cannot find module errors. we've got a shared eslint config (https://github.com/stellar/product-conventions/blob/master/packages/eslint-config/package.json) but unless i install those deps manually in the project that's using that config, eslint complains it can't find it
nothing is globally installed, so the upgrade guide doesn't really seem relevant?

it's not a monorepo or anything, i've just got

module.exports = {
  extends: ["@stellar/eslint-config"],
  rules: {
    "import/no-unresolved": 0,
  },
};

in .eslintrc.js locally. gatsby site

Roy Sutton
@webOS101
You can try passing the command line argument that sets where to find the plugins. Or, as you say, install the deps into the project.
I don’t believe it’s recommended for a config to have plugins as dependencies, but instead to have them as peer dependencies.
Carl Vitullo
@vcarl
they used to be peer deps, but it's annoying to have to install like 8 things to get a shared config working
any info about why that's recommended?