Comments (5)
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.
From @alexandrudima on February 26, 2016 16:16
Please attach the js file you were using with ESLint
from vscode-eslint.
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.
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.
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)
- Separate options per working directory HOT 2
- cache files (`.eslintcache`) on save HOT 1
- Worth using `NODE_COMPILE_CACHE` when detecting node v22+ HOT 3
- why is the exlint:source-code-fxer shouldFix parameter false HOT 7
- Bug: When "Open Workspace from File" eslint complains that it cannot find imports, when "Open from Folder" the same code, no issues HOT 5
- bug: import attributes is not supported HOT 2
- Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@eslint/js' HOT 4
- [flat config] `import.meta.{filename,dirname}` is undefined in `eslint.config.mjs` HOT 2
- Findings not visible in editor. HOT 1
- Error when clicking on file tab in VS Code Editor HOT 1
- VS Code eslint using outdated error for non-existent rule configuration HOT 1
- Consistent creation of zombie processes by vscode-eslint extension
- vscode-eslint extension not working on latest version of VSCode, v1.90.0 HOT 23
- Is it possible to pass parameters to the format? HOT 1
- Files are not analized when opened HOT 2
- When the user provides eslint.options, remove the requirement for a eslint.config.js file HOT 1
- "eslint.options.fixTypes" Not Working in "Format Document with: ESLint"
- No ESLint configuration (e.g .eslintrc) found for file
- `eslint.packageManager` deprecated but error message says to use it
- How Can I Display All ESLint Errors and Warnings for All Files in VSCode? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-eslint.