Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:07
    fregante commented #14271
  • 14:11

    eslintbot on master

    Sponsors: Sync README with webs… (compare)

  • 13:51
    preIdiot closed #14864
  • 13:51
    preIdiot reopened #14864
  • 13:51
    preIdiot closed #14864
  • 13:21
    preIdiot labeled #14864
  • 13:21
    preIdiot labeled #14864
  • 13:21
    preIdiot opened #14864
  • 10:33
    vincentsum777 edited #14863
  • 10:29
    epoberezkin commented #13911
  • 09:11
    vincentsum777 edited #14863
  • 09:09
    vincentsum777 labeled #14863
  • 09:09
    vincentsum777 labeled #14863
  • 09:09
    vincentsum777 opened #14863
  • Jul 31 23:11

    eslintbot on master

    Sponsors: Sync README with webs… (compare)

  • Jul 31 23:06
    bradzacher labeled #14862
  • Jul 31 23:06
    bradzacher labeled #14862
  • Jul 31 23:06
    bradzacher labeled #14862
  • Jul 31 23:06
    bradzacher opened #14862
  • Jul 31 22:52
    JoshuaKGoldberg review_requested #14617
Epaminaidos
@Epaminaidos
@platinumazure block-scoped-var does not work for me. If I have the same variable in two distinct blocks, it still generates an error:
if (true) {
if (true) { var j=0; }
if (true) { var j=0; }
This creates an error unfortunately
Cihan Bebek
@Keksike
Hey! I'm having problems with my eslint giving me no-undef errors for React class properties. I'm using eslint 3.19.0, eslint-plugin-react@7.4.0 & react-scripts@1.0.1
On my co-workers PC he doesn't get any eslint errors from those. How should I debug my problem?
Christophe Maillard
@sp00m
Hey! How can I force the use of parens around the condition of a ternary operator?
Could no-restricted-syntax be helpful somehow? I've been already quite surprised by its power (eslint/eslint#8677) ;)
Kevin Partington
@platinumazure
@Keksike Might be worth running ESLint with the --print-config option on your machine and that of your coworker; you might see a difference in eslint-plugin-react rules being applied. You could then run ESLint with the --debug option to see what config files are being loaded and used in the configuration resolution steps. Maybe you or your coworker has an extra config file in the mix.
@Epaminaidos What error are you seeing and what behavior are you expecting?
Adam Klepacz
@adamklepacz
hi guys, after instaling ESLINT using npm, I try to use
$ eslinst filename.js
but it gives me back an error "ESLint: 4.9.0.
ESLint couldn't find the plugin "eslint-plugin-html". This can happen for a couple different reasons"
I've allready put " npm i eslint-plugin-html@latest --save-dev" and installed plugin
but still still doesn't work
what I'm doing wrong? I'm junior, don't yell at me :)
薛定谔的猫
@aladdin-add
$ ./node_modules/.bin/eslint filename.js
try this?
Adam Klepacz
@adamklepacz
no such as file or directory
i'm inside my project root folder
薛定谔的猫
@aladdin-add
$ ./node_modules/.bin/eslint .
"." means linting all the project! :smile:
Adam Klepacz
@adamklepacz
still gives me the same message
no such as file or directory
薛定谔的猫
@aladdin-add
how did you install eslint?
global?
Adam Klepacz
@adamklepacz
globally
yeah
薛定谔的猫
@aladdin-add
ESLint can be globally or locally installed. If you install ESLint globally, your plugins must also be installed globally; if you install ESLint locally, your plugins must also be installed locally.
Adam Klepacz
@adamklepacz
i have installed it all globally
in my node_modules i see there is eslint_plugin_html folder
should be there also eslint folder?
薛定谔的猫
@aladdin-add
you need install eslint-plugin-html globally
Adam Klepacz
@adamklepacz
using $ ls command i can't find eslint folder in node_modules
i did it @Aladdin-ADD
npm install eslint-plugin-html@latest -g
薛定谔的猫
@aladdin-add
so you can use global eslint:
$ eslint .
Adam Klepacz
@adamklepacz
I did just right now
and cursor went one line down ant nothing happend
??
薛定谔的猫
@aladdin-add
that means no error reported.
did you have a config file?
Adam Klepacz
@adamklepacz
where I can get it?
薛定谔的猫
@aladdin-add
serveral ways:
  1. eslint --init
Adam Klepacz
@adamklepacz
I did eslint --init
i choose airbnb rules
and STILL i get the same message
薛定谔的猫
@aladdin-add
what message?
Adam Klepacz
@adamklepacz
here you get the screenshot