.eslintrc.json 692 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "root": true,
  3. "extends": "babel",
  4. "plugins": ["prettier"],
  5. "rules": {
  6. "curly": ["error", "multi-line"],
  7. "prettier/prettier": "error",
  8. "no-case-declarations": "error"
  9. },
  10. "env": {
  11. "node": true
  12. },
  13. "overrides": [
  14. {
  15. "files": ["packages/*/src/**/*.js", "codemods/*/src/**/*.js"],
  16. "rules": {
  17. "no-undefined-identifier": "error",
  18. "no-deprecated-clone": "error"
  19. }
  20. },
  21. {
  22. "files": [
  23. "packages/*/test/**/*.js",
  24. "codemods/*/test/**/*.js",
  25. "packages/babel-helper-transform-fixture-test-runner/src/helpers.js",
  26. "test/**/*.js"
  27. ],
  28. "env": {
  29. "jest": true
  30. }
  31. }
  32. ]
  33. }