.eslintrc.cjs 857 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. env: {
  3. es2021: true,
  4. node: true,
  5. },
  6. extends: 'airbnb-base',
  7. overrides: [
  8. ],
  9. parserOptions: {
  10. ecmaVersion: 'latest',
  11. sourceType: 'module',
  12. },
  13. rules: {
  14. 'indent': ['error', 4, { 'SwitchCase': 1 }],
  15. 'max-len': [
  16. 'error', {
  17. 'code': 150,
  18. 'ignoreStrings': true,
  19. 'ignoreTemplateLiterals': true,
  20. 'ignoreComments': true,
  21. }],
  22. 'linebreak-style': 0,
  23. 'arrow-parens': [2, 'as-needed', { 'requireForBlockBody': true }],
  24. 'no-plusplus': ['error', { 'allowForLoopAfterthoughts': true }],
  25. 'no-console': 'off',
  26. 'import/extensions': 'off',
  27. 'no-use-before-define': ['error', {
  28. 'functions': false,
  29. }],
  30. 'no-promise-executor-return': 'off',
  31. 'no-param-reassign': 'off',
  32. 'no-continue': 'off',
  33. 'no-restricted-syntax': 'off',
  34. },
  35. };