You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.js 660B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. module.exports = {
  2. 'env': {
  3. 'browser': true,
  4. 'commonjs': true,
  5. 'node': true,
  6. 'es6': true
  7. },
  8. 'parserOptions': {
  9. 'ecmaVersion': 8
  10. },
  11. 'extends': 'eslint:recommended',
  12. 'rules': {
  13. 'indent': [
  14. 'error',
  15. 2,
  16. {
  17. 'FunctionDeclaration': {
  18. 'parameters': 'first'
  19. },
  20. 'FunctionExpression': {
  21. 'parameters': 'first'
  22. },
  23. 'CallExpression': {
  24. 'arguments': 'first'
  25. }
  26. }
  27. ],
  28. 'linebreak-style': [
  29. 'error',
  30. 'unix'
  31. ],
  32. 'quotes': [
  33. 'error',
  34. 'single'
  35. ],
  36. 'semi': [
  37. 'error',
  38. 'always'
  39. ]
  40. }
  41. };