.eslintrc.json 776 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. "env": {
  3. "browser": true,
  4. "node": true,
  5. "commonjs": true
  6. },
  7. "extends": [
  8. "eslint:recommended"
  9. ],
  10. "plugins": [
  11. "@jupyterlab/eslint-plugin-jinja"
  12. ],
  13. "parserOptions": {
  14. "ecmaVersion": 6,
  15. "sourceType": "module",
  16. "ecmaFeatures": {
  17. "modules": true
  18. }
  19. },
  20. "rules": {
  21. "indent": [
  22. "error",
  23. 2
  24. ],
  25. "linebreak-style": [
  26. "error",
  27. "unix"
  28. ],
  29. "quotes": [
  30. "error",
  31. "single"
  32. ],
  33. "semi": [
  34. "error",
  35. "always"
  36. ],
  37. "no-console": [
  38. "error",
  39. { "allow": ["warn", "error"] }
  40. ]
  41. }
  42. }