.eslintrc.json 877 B

123456789101112131415161718192021222324252627282930
  1. {
  2. "root": true,
  3. "parser": "@typescript-eslint/parser",
  4. "parserOptions": {
  5. "ecmaVersion": 2022,
  6. "sourceType": "module",
  7. "project": "./tsconfig.json"
  8. },
  9. "plugins": ["@typescript-eslint"],
  10. "extends": [
  11. "eslint:recommended",
  12. "plugin:@typescript-eslint/recommended",
  13. "plugin:@typescript-eslint/recommended-requiring-type-checking"
  14. ],
  15. "rules": {
  16. "@typescript-eslint/explicit-function-return-type": "off",
  17. "@typescript-eslint/explicit-module-boundary-types": "off",
  18. "@typescript-eslint/no-explicit-any": "error",
  19. "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
  20. "@typescript-eslint/no-floating-promises": "error",
  21. "no-console": ["warn", { "allow": ["warn", "error"] }]
  22. },
  23. "ignorePatterns": [
  24. "build/",
  25. "node_modules/",
  26. "*.js",
  27. "*.d.ts",
  28. "src/wikijs/generated/"
  29. ]
  30. }