Not logged in : Login

About: http://ods-qa.openlinksw.com:8896/proxy-iri/a9d40ce394dde920dcbf1a02e498356771a5ce97     Goto   Sponge   NotDistinct   Permalink

An Entity of Type : sioc:Post, within Data Space : ods-qa.openlinksw.com:8896 associated with source document(s)

AttributesValues
type
Date Created
  • 2019-07-17T07:27:45.783Z
Date Modified
  • 2019-07-17T07:27:45.783Z
discourse:topic_slug
  • express-web-framework-tutorial-eslint-script
discourse:post_number
  • 1
discourse:quote_count
  • 0
discourse:incoming_link_count
  • 258
  • 256
  • 286
  • 257
  • 262
  • 269
  • 285
  • 255
  • 271
discourse:score
  • 1276
  • 1281
  • 1291
  • 1311.2
  • 1346.4
  • 1356.4
  • 1426.4
  • 1431.4
discourse:topic_id
  • 42673
described by
has container
content
  • proxy:entity/https/discourse.mozilla.org/t/express-web-framework-tutorial-eslint-script/42673#content_111300

    Hi I’m having a problem the Express Web Framework tutorial.

    In the “Setting up a Node development environment”, we are showed how to add ESLint as a devdependencies. So we need to update package.json in the scripts part. Can you give us a concrete example, because

    • adding “eslint src/js” is not correct. I created the directory “src/” in my myapp folder then put index.js
    • then running npm run lint, I got the error that eslint is missing a configuration file.

    I cannot run eslint --init as it seems that bash does not recognize eslint even if my npm install of eslint with --save-dev worked.

    I really don’t know what to do.

    Would it be better to install ESlint generally then declare it in “devdepencies” so maybe I can at least run the ESlint --init configuration ?

    I’ve done the general installation with “npm install eslint -g” and the config with “eslint --init”, setting among others that I’ll be testing Javascript modules but I got this error :

    error ‘require’ is not defined

    I was testing the index.js where I had to include the http package !

    I’m really lost here !

discourse:reply_count
  • 0
author
is topic of
is mainEntity of
Faceted Search & Find service v1.17_git55 as of Mar 01 2021


Alternative Linked Data Documents: ODE     Content Formats:       RDF       ODATA       Microdata      About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 08.03.3322 as of Mar 14 2022, on Linux (x86_64-generic-linux-glibc25), Single-Server Edition (7 GB total memory)
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2024 OpenLink Software