.eslintrc.js 792 B

12345678910111213141516171819202122232425262728293031323334353637
  1. module.exports = {
  2. extends: [
  3. 'weseek',
  4. 'weseek/react',
  5. "plugin:jest/recommended",
  6. ],
  7. env: {
  8. jquery: true,
  9. "jest/globals": true,
  10. },
  11. globals: {
  12. $: true,
  13. jquery: true,
  14. emojione: true,
  15. hljs: true,
  16. ScrollPosStyler: true,
  17. window: true,
  18. },
  19. plugins: [
  20. "jest",
  21. ],
  22. rules: {
  23. 'indent': [
  24. 'error',
  25. 2,
  26. {
  27. SwitchCase: 1,
  28. ignoredNodes: ['JSXElement *', 'JSXElement', 'JSXAttribute', 'JSXSpreadAttribute'],
  29. ArrayExpression: 'first',
  30. FunctionDeclaration: { body: 1, parameters: 2 },
  31. FunctionExpression: { body: 1, parameters: 2 },
  32. },
  33. ],
  34. // eslint-plugin-import rules
  35. 'import/no-unresolved': [2, { ignore: ['^@'] }], // ignore @alias/..., @commons/..., ...
  36. },
  37. };