2
0

.eslintrc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "extends": "wagtail",
  3. "env": {
  4. "jest": true
  5. },
  6. "settings": {
  7. "import/resolver": {
  8. "webpack": {
  9. "config": "client/webpack.config.js"
  10. }
  11. }
  12. },
  13. "rules": {
  14. "no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }]
  15. },
  16. "overrides": [
  17. {
  18. "files": ["*.ts", "*.tsx"],
  19. "parser": "@typescript-eslint/parser",
  20. "plugins": [
  21. "@typescript-eslint"
  22. ],
  23. "extends": [
  24. "wagtail",
  25. "plugin:@typescript-eslint/recommended"
  26. ],
  27. "rules": {
  28. "no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION__"] }],
  29. // note you must disable the base rule as it can report incorrect errors
  30. "no-use-before-define": "off",
  31. "@typescript-eslint/no-use-before-define": ["error"],
  32. "@typescript-eslint/explicit-module-boundary-types": "off",
  33. "@typescript-eslint/explicit-member-accessibility": "off",
  34. "@typescript-eslint/explicit-function-return-type": "off",
  35. "@typescript-eslint/no-explicit-any": "off"
  36. }
  37. }
  38. ]
  39. }