jscs Questions

1

I add linters for js (es6) in my project, and for new configurations I found that they prevent using const inside functions - only for module-level constants. And inside functions I should us...
Microcurie asked 16/8, 2016 at 20:48

3

Solved

I'm a novice at gulp, and trying to play with it. I get this error when I try to use gulp-jscs 'default' errored after 98 ms [16:58:00] TypeError: Object.keys called on non-object at Function.key...
Evonneevonymus asked 6/2, 2015 at 15:6

3

Solved

I have a grunt task that runs JSCS on a javascript code base and it was working until it came time to integrate with the build server which is using latest, stable versions of grunt, npm/node. Thi...
Elatia asked 9/12, 2015 at 17:24

1

I have the following code in my gulpfile.js gulp.src(['server.js']) .pipe(jscs({fix: true})) .pipe(gulp.dest('prod-app')); But in prod-app/server.js is the same file as server.js. Without any ...
Manipur asked 19/6, 2015 at 10:20

3

Solved

I'm looking for a way for jscs (JavaScript Code Style) do the same behavior as jshint to ignore certain rules per file with a comment at the top, or per line, with a start and end comment. jshint ...
Flint asked 9/8, 2014 at 21:16

2

Solved

I'm trying to get a command I can run within vim to get jscs auto correct formatting issues in my code. So far I've come up with : :nmap <F5> :!jscs -x .<CR> which is ok, but it runs...
Spiritless asked 23/4, 2015 at 9:24

2

Using the .jsrc file, I'm getting the following error for my server/front-end files. It's throwing an error at the top of my files. How can I suppress this? Unsupported rule: fix at js/server.js :...
Bloodletting asked 19/8, 2015 at 19:40

1

Solved

I keep receiving the following error, and I am unable to find documentation on what it means. I know it involves strict javascript formatting, and I was wanting to resolve it by abiding by the form...
Stillmann asked 29/4, 2015 at 20:19

1

Solved

I am looking to standardize the use of Q promises in my team's codebase. Are there any good jscs extensions (or other linters) to help enforce style when it comes to promises? We would like our pr...
Hamel asked 21/4, 2015 at 22:42

3

Solved

How might I disable JSCS in the latest version of Web Essentials for Visual Studio 2013? I was unable to find a relevant option in the menu. I tried setting the JSCS configuration to ignore all f...
Saccule asked 12/3, 2014 at 20:26

1

Solved

There are exists many beautiful code formatting tools for vanilla Javascript. For example, JSCS. Is there any tool that can validate and format reactjs templates? I have got error like that ...
Triquetrous asked 16/2, 2015 at 12:5

4

Solved

I have a fresh MVC 5.1 web app project in VS 2013 (Update 1) w/ Web Essential 2013 (latest as of today) installed. After building the project, Web Essentials scans for javascript files and post mes...
Penthea asked 1/2, 2014 at 14:52
1

© 2022 - 2024 — McMap. All rights reserved.