Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 22:52
    JoshuaKGoldberg commented #14617
  • 21:18
    mdjermanovic edited #14675
  • 21:13
    mdjermanovic commented #14706
  • 21:02
    btmills commented #14706
  • 19:35
    jamietre commented #14202
  • 19:34
    jamietre commented #14202
  • 19:33
    jamietre commented #14202
  • 18:32
    nzakas commented #14706
  • 18:27
    nzakas edited #14706
  • 18:26
    nzakas synchronize #14706
  • 18:26

    nzakas on issue13654

    Update docs (compare)

  • 18:21
    nzakas labeled #14706
  • 18:21
    nzakas labeled #14706
  • 18:21
    nzakas opened #14706
  • 18:21
    nzakas labeled #14706
  • 18:18

    nzakas on issue13654

    Breaking: Strict package export… (compare)

  • 17:50
    nzakas synchronize #14321
  • 17:50

    nzakas on flat-config-array

    Chore: remove extraneous comman… Docs: Fix anchor in 'docs/devel… Docs: update pull request templ… and 53 more (compare)

  • 17:45
    eslint-github-bot[bot] commented #14675
  • 17:45
    nzakas synchronize #14675
Adam Klepacz
@adamklepacz
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
and I did install this plugin globally also
I have no ideas what I'm doing wrong
薛定谔的猫
@aladdin-add
hmm..it's so strange!
what about using local installed eslint?
$ npm i eslint eslint-plugin-markdown -D
$ ./node_modules/.bin/eslint bad-code.js
if still not working, you can use --debug to see what happened.
Julián Herrera
@vidjuheffex

Hey, I'm looking for some config help. The project im working on has an eslint config, and a package-local installed eslint.
On my desktop all works fine, on my laptop... very different story.

Going into a dir with a file and typing _pathtoEslint.cmd_ --print-config . prints the same thing for both

It is a react project with decorators, and such. Each import that gets used by a decorator counts as not being used. propTypes says its never defined, stuff like that. I have removed the eslint config in my home dir, and my globally installed eslint just in case