ua-snap / mapventure

Frontend for maps built with GeoServer
3 stars 0 forks source link

Grunt complains about non-camel-case / non-upper-case map attribute #413

Closed cstephen closed 7 years ago

cstephen commented 7 years ago

From the output of grunt build:

Running "jscs:src" (jscs) task
requireCamelCaseOrUpperCaseIdentifiers: All identifiers must be camelCase or UPPER_CASE at ./app/scripts/controllers/main.js :
    18 |        $scope.maps = [];
    19 |        _.each(data.objects, function(map) {
    20 |          if (map.distribution_description !== 'draft') {
--------------------------^
    21 |            $scope.maps.push(map);
    22 |          }
>> 1 code style errors found!
Warning: Task "jscs:src" failed. Use --force to continue.

How do we silence this since distribution_description is named by GeoNode's API?