Closed fyddaben closed 9 years ago
requireTrailingComma: Missing comma before closing curly brace at gulpfile.js : 14 | sass: ['src/*.scss'], 15 | destScripts: 'public/js', 16 | destLess: 'public/css' --------------------------------^ 17 |}; 18 |
var paths = { scripts: ['src/*.js'], sass: ['src/*.scss'], destScripts: 'public/js', destLess: 'public/css' };
{ "preset": "airbnb", "excludeFiles": ["node_modules/**"], "disallowMultipleVarDecl": "exceptUndefined", "requireCamelCaseOrUpperCaseIdentifiers": "ignoreProperties", "requirePaddingNewLinesAfterBlocks": null, "maximumLineLength": 120 }
i set requireTrailingComma to false,but jscs --verbose ./ tell me ,
requireTrailingComma
false
jscs --verbose ./
you should remove it or set true .
i dont konw whats wrong
I guess wrong repo?
Try to set it to null. http://jscs.info/overview#presets
null
You can specifically disable any preset rule by creating a .jscsrc config file and assigning it to null or false, like so:
error info
source code
my jscsrc
i set
requireTrailingComma
tofalse
,butjscs --verbose ./
tell me ,you should remove it or set true .
i dont konw whats wrong