title: Expected indentation of 4 characters
body: <p><strong>UPDATE</strong></p>
  
  <p>as @dev-null (btw thx a lot :)) suggest (see the comment)
  the right way is</p>
  
  <pre><code>jscs --fix file.js
  </code></pre>
  
  <p>What's the problem with my indentation ?</p>
  
  <h2>.editorconfig</h2>
  
  <pre><code>root = true
  
  [*]
  indent_style = space
  indent_size = 4
  end_of_line = lf
  charset = utf-8
  trim_trailing_whitespace = true
  insert_final_newline = true
  
  [*.md]
  trim_trailing_whitespace = false
  </code></pre>
  
  <h2>.jscsrc</h2>
  
  <pre><code>{
      "disallowKeywords": ["with"],
      "disallowKeywordsOnNewLine": ["else"],
      "disallowMixedSpacesAndTabs": true,
      "disallowMultipleVarDecl": "exceptUndefined",
      "disallowNewlineBeforeBlockStatements": true,
      "disallowQuotedKeysInObjects": true,
      "disallowSpaceAfterObjectKeys": true,
      "disallowSpaceAfterPrefixUnaryOperators": true,
      "disallowSpacesInFunction": {
          "beforeOpeningRoundBrace": true
      },
      "disallowSpacesInsideParentheses": true,
      "disallowTrailingWhitespace": true,
      "maximumLineLength": 100,
      "requireCamelCaseOrUpperCaseIdentifiers": true,
      "requireCapitalizedComments": true,
      "requireCapitalizedConstructors": true,
      "requireCurlyBraces": true,
      "requireSpaceAfterKeywords": [
          "if",
          "else",
          "for",
          "while",
          "do",
          "switch",
          "case",
          "return",
          "try",
          "catch",
          "typeof"
      ],
      "requireSpaceAfterLineComment": true,
      "requireSpaceAfterBinaryOperators": true,
      "requireSpaceBeforeBinaryOperators": true,
      "requireSpaceBeforeBlockStatements": true,
      "requireSpaceBeforeObjectValues": true,
      "requireSpacesInFunction": {
          "beforeOpeningCurlyBrace": true
      },
      "validateIndentation": 4,
      "validateLineBreaks": "LF",
      "validateQuoteMarks": "'"
  }
  </code></pre>
  
  <h2>index.js</h2>
  
  <pre><code>'use strict';
  
  /**
   * Module dependencies.
   */
  const fs = require('fs');
  const path = require('path');
  const Sequelize = require('sequelize');
  const basename  = path.basename(__filename);
  const env = process.env.NODE_ENV || 'development';
  const config = require(__dirname + '/../config/database.json')[env];
  const db = {};
  const sequelizeFactory = (config) =&gt; {
    if (config.use_env_variable) {
      return new Sequelize(process.env[config.use_env_variable]);
    } else {
      return new Sequelize(config.database, config.username,config.password,config);
    }
  };
  
  const sequelize = sequelizeFactory(config);
  
  fs
  .readdirSync(__dirname)
  .filter((file) =&gt; {
    return (file.indexOf('.') !== 0) &amp;&amp; (file !== basename);
  })
  .forEach((file) =&gt; {
    let model = sequelize['import'](path.join(__dirname, file));
    db[model.name] = model;
  });
  
  Object.keys(db).forEach((modelName) =&gt; {
    if (db[modelName].associate) {
      db[modelName].associate(db);
    }
  });
  
  db.sequelize = sequelize;
  db.Sequelize = Sequelize;
  
  module.exports = db;
  </code></pre>
  
  <h2>Errors</h2>
  
  <pre><code>Expected indentation of 4 characters at src/models/index.js :
      12 |const db = {};
      13 |const sequelizeFactory = (config) =&gt; {
      14 |  if (config.use_env_variable) {
  ------------^
      15 |    return new Sequelize(process.env[config.use_env_variable]);
      16 |  } else {
  
  All identifiers must be camelCase or UPPER_CASE at src/models/index.js :
      12 |const db = {};
      13 |const sequelizeFactory = (config) =&gt; {
      14 |  if (config.use_env_variable) {
  ---------------------^
      15 |    return new Sequelize(process.env[config.use_env_variable]);
      16 |  } else {
  
  Expected indentation of 8 characters at src/models/index.js :
      13 |const sequelizeFactory = (config) =&gt; {
      14 |  if (config.use_env_variable) {
      15 |    return new Sequelize(process.env[config.use_env_variable]);
  ----------------^
      16 |  } else {
      17 |    return new Sequelize(config.database, config.username,config.password,config);
  
  All identifiers must be camelCase or UPPER_CASE at src/models/index.js :
      13 |const sequelizeFactory = (config) =&gt; {
      14 |  if (config.use_env_variable) {
      15 |    return new Sequelize(process.env[config.use_env_variable]);
  ----------------------------------------------------^
      16 |  } else {
      17 |    return new Sequelize(config.database, config.username,config.password,config);
  
  Expected indentation of 4 characters at src/models/index.js :
      14 |  if (config.use_env_variable) {
      15 |    return new Sequelize(process.env[config.use_env_variable]);
      16 |  } else {
  ------------^
      17 |    return new Sequelize(config.database, config.username,config.password,config);
      18 |  }
  
  Expected indentation of 8 characters at src/models/index.js :
      15 |    return new Sequelize(process.env[config.use_env_variable]);
      16 |  } else {
      17 |    return new Sequelize(config.database, config.username,config.password,config);
  ----------------^
      18 |  }
      19 |};
  
  Expected indentation of 4 characters at src/models/index.js :
      16 |  } else {
      17 |    return new Sequelize(config.database, config.username,config.password,config);
      18 |  }
  ------------^
      19 |};
      20 |
  
  Expected indentation of 4 characters at src/models/index.js :
      24 |.readdirSync(__dirname)
      25 |.filter((file) =&gt; {
      26 |  return (file.indexOf('.') !== 0) &amp;&amp; (file !== basename);
  ------------^
      27 |})
      28 |.forEach((file) =&gt; {
  
  Expected indentation of 4 characters at src/models/index.js :
      27 |})
      28 |.forEach((file) =&gt; {
      29 |  let model = sequelize['import'](path.join(__dirname, file));
  ------------^
      30 |  db[model.name] = model;
      31 |});
  
  Expected indentation of 4 characters at src/models/index.js :
      28 |.forEach((file) =&gt; {
      29 |  let model = sequelize['import'](path.join(__dirname, file));
      30 |  db[model.name] = model;
  ------------^
      31 |});
      32 |
  
  Expected indentation of 4 characters at src/models/index.js :
      32 |
      33 |Object.keys(db).forEach((modelName) =&gt; {
      34 |  if (db[modelName].associate) {
  ------------^
      35 |    db[modelName].associate(db);
      36 |  }
  
  Expected indentation of 8 characters at src/models/index.js :
      33 |Object.keys(db).forEach((modelName) =&gt; {
      34 |  if (db[modelName].associate) {
      35 |    db[modelName].associate(db);
  ----------------^
      36 |  }
      37 |});
  
  Expected indentation of 4 characters at src/models/index.js :
      34 |  if (db[modelName].associate) {
      35 |    db[modelName].associate(db);
      36 |  }
  ------------^
      37 |});
      38 |
  
  
  13 code style errors found.
  </code></pre>
  
  <p>so aside the error about
  config.use_env_variable (in this case I agree with jscsrc ^^)
  what's the problem and the right indentation ?</p>