Comments (9)
@baelter @osya Thanks for reporting and the clear steps to reproduce! There was an issue with caching that I just checked in a fix for. The extension maintains a cache for excludes that was correctly being cleared when the ignore file updated, but there was also a cache being maintained by a parsing library that didn't ever get reset. I'll publish a new version of the extension soon.
from vscode-jshint.
@RMacfarlane , sorry. It works. I just added the content **/*.jsx
to the file .jshintignore
and then jshint
begins ignoring *.jsx files. Empty file .jshintignore
with the user setting
"jshint.exclude": {
"**/*.jsx": true
},
does not ignore *.jsx files. It seems it is correct
from vscode-jshint.
Started development in https://github.com/Microsoft/vscode-jshint/tree/feature/jshintignore.
from vscode-jshint.
Closed with 49b9258.
from vscode-jshint.
Can't get this to work,
Putting
**/*
in .jshintignore
and all files are linted.
vscode: 1.21.1
vscode-jshint: 0.10.17
jshint: 2.9.5
from vscode-jshint.
@baelter , confirm that .jshintignore
support in vscode-jshint
is not worked as expected.
Projects structure:
- app - src - index.jsx
Step to reproduce
- Add to user settings
"jshint.exclude": {
"**/*.jsx": true
},
index.jsx
for jshint
ignored. It is as expected
2. Add an empty file .jshintignore
to the project root and restart VS Code
index.jsx
for jshint
is NOT igored. It is a bug
3. Add src/**
in the .jshintignore
file and restart VS Code
index.jsx
is ignored in PyCharm - so .jshintignore
is correct. In VS Code index.jsx
for jshint
is NOT igored. It is a bug
4. Remove jshint.exclude
from user settings and restart VS Code
index.jsx
for jshint
is NOT igored. It is a bug
vscode: 1.23.1
vscode-jshint: 0.10.18
jshint: 2.9.5
from vscode-jshint.
@baelter @osya Just published a new version of the extension. Please give it a try
from vscode-jshint.
@RMacfarlane , thank you for your attention. I just checked. But the issue still exists.
vscode: 1.24.0
vscode-jshint: 0.10.19
jshint: 2.9.5
from vscode-jshint.
@osya Hmm, I've tried your steps above with the versions you listed and it works for me. Could you share your settings?
from vscode-jshint.
Related Issues (20)
- jshint rescans file in a loop
- Usage of let and const i.e features available in ES6 HOT 1
- Show deprecated elements in the Problems panel
- Tries to connect to dataserver and crashes
- Extension issue
- This repo is missing important files HOT 1
- Extension issue
- Extension issue
- Extension issue
- Failed to Load jshint library HOT 1
- Extension issue
- unable to load jshint library HOT 2
- Where's the installer link? HOT 2
- Extension issue
- Bump ECMAScript esversion to 10 HOT 2
- Support Workspace Trust
- Support virtual workspaces
- Nullish HOT 1
- UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block
- Extension issue
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-jshint.