Giter VIP home page Giter VIP logo

Comments (5)

egamma avatar egamma commented on August 16, 2024

From @isidorn on February 26, 2016 15:42

Actually it is happening all the time, my console is full of these errors

from vscode-eslint.

egamma avatar egamma commented on August 16, 2024

From @alexandrudima on February 26, 2016 16:16

Please attach the js file you were using with ESLint

from vscode-eslint.

egamma avatar egamma commented on August 16, 2024

From @isidorn on February 26, 2016 16:18

This is only happening if you have eslint installed and have a file with the following content

var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');

var routes = require('./routes/index');
var users = require('./routes/users');

var app4 = express();

// view engine setup
app4.set('views', path.join(__dirname, 'views'));
app4.set('view engine', 'jade');

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));
app4.use(logger('dev'));
app4.use(bodyParser.json());
app4.use(bodyParser.urlencoded({ extended: false }));
app4.use(cookieParser());
app4.use(express.static(path.join(__dirname, 'public')));

app4.use('/', routes);
app4.use('/users', users);

// catch 404 and forward to error handler
app4.use(function(req, res, next) {
  var err = new Error('Not Found');
  err.status = 404;
  next(err);
});

// error handlers

// development error handler
// will print stacktrace
if (app4.get('env') === 'development') {
  app4.use(function(err, req, res, next) {
    res.status(err.status || 500);
    res.render('error', {
      message: err.message,
      error: err
    });
  });
}

// production error handler
// no stacktraces leaked to user
app4.use(function(err, req, res, next) {
  res.status(err.status || 500);
  res.render('error', {
    message: err.message,
    error: {}
  });
});

module.exports = app4;

// asddasdasads


from vscode-eslint.

egamma avatar egamma commented on August 16, 2024

This is only happening if you have eslint installed and have a file with the following content

given this moving to vscode-eslint

from vscode-eslint.

dbaeumer avatar dbaeumer commented on August 16, 2024

I can't reproduce this using latest code and the latest eslint plugin given the above example. Will close.

from vscode-eslint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.