'use strict';

module.exports = {
  rules: {
    /* changed rules */

    // changed properties: 'never' to properties: 'always' ; true to 'ignoreDestructuring': false
    // http://eslint.org/docs/rules/camelcase
    camelcase: ['error', { properties: 'always', ignoreDestructuring: false }],

    // stricter rule
    // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
    'import/order': [
      'error',
      {
        groups: [
          'builtin',
          'external',
          'internal',
          'parent',
          'sibling',
          'index',
        ],
        alphabetize: { order: 'asc', caseInsensitive: false },
        'newlines-between': 'never',
      },
    ],

    // http://eslint.org/docs/rules/no-unused-vars
    'no-unused-vars': [
      'error',
      {
        vars: 'all',
        args: 'none', // changed after-used to none
        ignoreRestSiblings: true,
      },
    ],

    // http://eslint.org/docs/rules/object-shorthand
    'object-shorthand': ['error', 'always'],

    /* disabled rules */

    // http://eslint.org/docs/rules/no-else-return
    'no-else-return': 'off',
  },
};

'use strict';

module.exports = {
  rules: {
    /* changed rules */

    // changed properties: 'never' to properties: 'always' ; true to 'ignoreDestructuring': false
    // http://eslint.org/docs/rules/camelcase
    camelcase: ['error', { properties: 'always', ignoreDestructuring: false }],

    // stricter rule
    // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
    'import/order': [
      'error',
      {
        groups: [
          'builtin',
          'external',
          'internal',
          'parent',
          'sibling',
          'index',
        ],
        alphabetize: { order: 'asc', caseInsensitive: false },
        'newlines-between': 'never',
      },
    ],

    // http://eslint.org/docs/rules/no-unused-vars
    'no-unused-vars': [
      'error',
      {
        vars: 'all',
        args: 'none', // changed after-used to none
        ignoreRestSiblings: true,
      },
    ],

    // http://eslint.org/docs/rules/object-shorthand
    'object-shorthand': ['error', 'always'],

    /* disabled rules */

    // http://eslint.org/docs/rules/no-else-return
    'no-else-return': 'off',

    // http://eslint.org/docs/rules/arrow-body-style
    'arrow-body-style': 'off',
  },
};

disable arrow-body-style