title: PDO + Angular: how to reconcile DB underscore_case with Angular's camelCase?
body: <p>I have an AngularJs app which connects to a database using php PDO APIs.</p>
  
  <p>This is the schematic data flow:</p>
  
  <pre><code>DB:
    CREATE TABLE person (
      ...
      first_name,
      ...
    );
  
  php API:
    $stmt = $this-&gt;db-&gt;prepare("SELECT * FROM person");
    $stmt-&gt;execute();
    $result = $stmt-&gt;fetchAll(PDO::FETCH_ASSOC);
    var_dump($result);
    ...
    'first_name' =&gt; 'Alice',
    ...
  
  angular service:
    getPerson: function (id) {
      return $http({
        method: 'GET',
        url: apiUri + 'get' + '/' + id,
      }).then(handleSuccess, handleError);
    },
  
  angular controller:
    Person.getPerson(id).then(function(person) {
      var name = person.first_name; // this throws a jslint warning
    });
  </code></pre>
  
  <p>The problem is SQL recommended naming standard is underscore_case, while Angular's is camelCase...</p>
  
  <p>I  would not like to disable jslint, which is very useful, in other respects...</p>
  
  <p>I know I could avoid warnings even with</p>
  
  <pre><code>{
    "camelcase": false
  }
  </code></pre>
  
  <p>in .jshintrc, but I'd prefer not to disable camelcase check globally...</p>
  
  <p>Currently I avoid jslint warnings with "jslint comments", this way:</p>
  
  <pre><code>/* jshint camelcase: false */
  var name = person.first_name;
  /* jshint camelcase: true */
  </code></pre>
  
  <p>but my code is going to contain more jslint comments than code... Quite unreadable...</p>
  
  <p>How do you (or would you) solve this issue?</p>