Comments (4)
Changing the encoding of the .jscsrc
file to "UTF-8 without BOM" solved it for me.
from gulp-jscs.
@tbandixen Thanks, I've been stuck on this for a couple of days. For others with this problem using Windows and Visual Studio, you need to save the file as 'UTF8 without Signature' which is the same thing as BOM or Byte Order Mark.
Ideally gulp-jscm or jscm itself should handle either encoding.
from gulp-jscs.
This plugin is just using require('jscs/lib/cli-config').load()
to get the config file. This needs to be opened on the main JSCS issue tracker. They could use https://github.com/sindresorhus/load-json-file which strip the UTF-8, and would fix this issue.
from gulp-jscs.
For others who find this issue and the above doesn't help: Check that the syntax of both your .jscsrc
and package.json
files is valid.
from gulp-jscs.
Related Issues (20)
- Incompatibility with harmony-reflect HOT 1
- Support values other than true/false HOT 1
- Stop .pipe() chain on linting error?
- Unclear error when .jscsrc is missing HOT 5
- Cannot read property 'tokTypes' of undefined - urgent
- Allow indented "break" in "switch" statement. HOT 2
- install broken due to downstream dependency left-pad being unpublished HOT 2
- JSCS errors getting swallowed somewhere HOT 6
- Cannot convert undefined or null to object HOT 5
- Update to JSCS 3.0 HOT 1
- file.jscs.errors is an object not an array
- How can I use fix:true with a watch?
- JSCS reporter compatibility HOT 2
- JSCS unreasonably complain about the beginning of a js file HOT 1
- Integration with Sonar rules
- jscs domain has expired
- editorconfig + jscs
- Replace deprecated dependency gulp-util
- Linting solution incompatible with 'engines' field in package.json
- TypeError: Cannot convert undefined or null to object at Function.keys HOT 4
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 gulp-jscs.