Comments (9)
Not sure what's the difference, but jscs extension works properly with similar setup on the same project.
from vscode-eslint.
Could reproduce. Need to understand why this is the case since we delegate config reading to the eslint node module.
from vscode-eslint.
I've found something. You can repeat my steps by setting breakpoint on line 122 of server.ts.
cli.executeOnText
calls cli.getConfigForFile
to determine which set of rules to apply (see eslint sources). cli.getConfigforFile('d:\some\path')
return config object with empty fields. While cli.getConfigforFile('d:/some/path')
(note backslashes) return correct config object. And vscode-languageserver.Files.uriToFilePath return path with backslashes \
.
from vscode-eslint.
@hogart: thanks a lot for the tip. Will have a look.
from vscode-eslint.
Actually I'm not sure this is vscode-eslint issue. Back-slashed (\
) paths are officially returned from path.normalize, so every node software should know how to handle it. The question is should we raise it to eslint, or create workaround, or may be both? It still bothers me that standalone eslint .
command works properly.
from vscode-eslint.
I debugged it again and actually the config in package.json is honored. I used eslint version 1.10.3. The path uses backslashes and the actual resolving is happening from the package.json file.,
from vscode-eslint.
@hogart I tried to clone the repository from your first comment but it is not public. If you provide me access to the code or attach a zip with it I will investigate further.
from vscode-eslint.
Very strange, but I can't reproduce it now too.
Probably it was problem of some particular eslint version.
from vscode-eslint.
@hogart thanks. I will close the issue. Pls reopen if you see it again.
from vscode-eslint.
Related Issues (20)
- file lock on *.win32-x64.msvc.node prevents package updates/install HOT 1
- Feature request: show notification when ESLint fails to load HOT 5
- Use a new client on restart server if the previous start has failed HOT 2
- Feature request: bring back enable/disable eslint command HOT 1
- Extension can't find typescript-eslint parser with yarn's pnpm linker installation layout HOT 3
- ESLint Not Showing Inline Error Hints for .wxml Files in VS Code HOT 1
- Feature request: Provide a way to control files fixed during onCodeActionsSave (e.g., ignorePatterns) HOT 5
- Errors differ from command line for import ordering HOT 1
- Eslint does not reload dependencies after installing a new package ('X' should be listed in the project's dependencies) HOT 1
- Eslint server could not found config file. HOT 10
- "Unknown options: extensions" error using flat config HOT 28
- 'Incorrect Type. Expected "object"' Error When Specifying an ESLint Rule String Option HOT 1
- imports do not work in flat config yarn pnp HOT 5
- ESLint config not found for flat config HOT 6
- [feat] `eslint.lintTask.command: string`
- Parsing error: __classPrivateFieldGet(...).at is not a function | After upgrading to newest version of Typescript & Eslint HOT 3
- Update default options for `eslint.probe` to include json, jsonc HOT 1
- Local config seems to be ignored :shrug: HOT 3
- eslint is not loading suddenly HOT 1
- Sorting is bugged HOT 2
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.