module.exports = {
  extends: ['eslint:recommended', 'google'],
  env: {
    es6: true,
    node: true,
    mocha: true,
  },
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: 'script',
  },
  rules: {
    'indent': [
      'error', 2,
      {'MemberExpression': 2},
    ],
    'max-len': ['error', 80, {
      ignoreStrings: true,
      ignoreUrls: true,
    }],
    'prefer-const': 'error',
    'prefer-arrow-callback': 'error',
    'arrow-body-style': ['error', 'as-needed'],
    // TODO: enable once go/github-eslint/issues/9949 is fixed
    'valid-jsdoc': 'off',
    'sort-requires/sort-requires': 2,
    "space-infix-ops": ["error", {"int32Hint": false}],
  },
  plugins: [
    'sort-requires'
  ]
};

module.exports = {
  extends: ['eslint:recommended', 'google'],
  env: {
    es6: true,
    node: true,
    mocha: true,
  },
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: 'script',
  },
  rules: {
    'indent': [
      'error', 2,
      {'MemberExpression': 2},
    ],
    'max-len': ['error', 80, {
      ignoreStrings: true,
      ignoreUrls: true,
    }],
    'prefer-const': 'error',
    'prefer-arrow-callback': 'error',
    'arrow-body-style': ['error', 'as-needed'],
    // TODO: enable once go/github-eslint/issues/9949 is fixed
    'valid-jsdoc': 'off',
    'sort-requires/sort-requires': 2,
    'space-infix-ops': ['error', {'int32Hint': false}],
    'no-trailing-spaces': 'error',
  },
  plugins: [
    'sort-requires'
  ]
};

Add no-trailing-spaces rule to eslint.
Add no-trailing-spaces rule to eslint.

Change-Id: I00d938706613b041b2896f40f70edf71c3f943d1
