.eslintrc.js 507 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. extends: ['eslint:recommended', 'google'],
  3. parserOptions: {
  4. ecmaVersion: 5
  5. },
  6. env: {
  7. es6: true,
  8. node: true
  9. },
  10. rules: {
  11. 'indent': ['error', 2],
  12. 'spaced-comment': ['error', 'always', {markers: ['/']}],
  13. 'no-console': 'warn',
  14. 'no-var': 'off',
  15. 'comma-dangle': ['error', 'never'],
  16. 'max-len': [
  17. 'error',
  18. {
  19. code: 100,
  20. ignoreComments: true
  21. }
  22. ]
  23. // 'valid-jsdoc': 'off',
  24. // 'require-jsdoc': 'off',
  25. }
  26. };