.eslintrc.json 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. "parserOptions": {
  3. "ecmaVersion": 6,
  4. "sourceType": "module"
  5. },
  6. "parser": "babel-eslint",
  7. "env": {
  8. "node": true,
  9. "commonjs": true,
  10. "es6": true,
  11. "jest": true
  12. },
  13. "extends": "eslint:recommended",
  14. "plugins": [
  15. "node"
  16. ],
  17. "rules": {
  18. "indent": [
  19. "error",
  20. "tab"
  21. ],
  22. "linebreak-style": [
  23. "error",
  24. "unix"
  25. ],
  26. "quotes": [
  27. "error",
  28. "single"
  29. ],
  30. "semi": [
  31. "error",
  32. "always"
  33. ],
  34. "no-unused-vars": 1,
  35. "no-console": 0,
  36. "node/exports-style": [
  37. "error",
  38. "module.exports"
  39. ],
  40. "node/no-deprecated-api": "error",
  41. "node/no-missing-import": "error",
  42. "node/no-missing-require": [
  43. "error",
  44. {
  45. "allowModules": [
  46. "webpack"
  47. ]
  48. }
  49. ],
  50. "node/no-unpublished-bin": "error",
  51. "node/no-unpublished-require": "error",
  52. "node/process-exit-as-throw": "error"
  53. }
  54. }