.eslintrc 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "root": true,
  3. "extends": [
  4. "airbnb-base",
  5. "plugin:flowtype/recommended"
  6. ],
  7. "ignorePatterns": [
  8. "lib/",
  9. "reports/",
  10. ],
  11. "parser": "@babel/eslint-parser",
  12. "plugins": [
  13. "flowtype",
  14. ],
  15. "rules": {
  16. "max-len": "off",
  17. "no-template-curly-in-string": "off",
  18. },
  19. "overrides": [
  20. {
  21. "files": ["src/rules/*"],
  22. "extends": ["plugin:eslint-plugin/rules-recommended"],
  23. "rules": {
  24. "eslint-plugin/require-meta-docs-description": ["error", { "pattern": "^(Enforce|Require|Disallow)" }],
  25. "eslint-plugin/require-meta-docs-url": [
  26. "error",
  27. { "pattern": "https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/tree/HEAD/docs/rules/{{name}}.md" },
  28. ],
  29. "eslint-plugin/require-meta-type": "off",
  30. },
  31. },
  32. {
  33. "files": ["__tests__/src/rules/*.js"],
  34. "extends": ["plugin:eslint-plugin/tests-recommended"],
  35. },
  36. {
  37. "files": ["__tests__/**/*"],
  38. "env": {
  39. "jest": true,
  40. },
  41. },
  42. ],
  43. }