.eslintrc.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "root": true,
  3. "extends": [
  4. "eslint:recommended",
  5. "plugin:@typescript-eslint/eslint-recommended",
  6. "plugin:@typescript-eslint/recommended"
  7. ],
  8. "parser": "@typescript-eslint/parser",
  9. "parserOptions": {
  10. "ecmaVersion": 2020,
  11. "sourceType": "module"
  12. },
  13. "plugins": ["@typescript-eslint"],
  14. "env": {
  15. "browser": true
  16. },
  17. "rules": {
  18. "no-prototype-builtins": "off",
  19. "@typescript-eslint/ban-types": "off",
  20. "@typescript-eslint/explicit-function-return-type": "off",
  21. "@typescript-eslint/explicit-module-boundary-types": "off",
  22. "@typescript-eslint/no-explicit-any": "error",
  23. "@typescript-eslint/no-empty-function": "off",
  24. "@typescript-eslint/no-non-null-assertion": "off",
  25. "@typescript-eslint/no-unused-vars": [
  26. "warn",
  27. {
  28. "argsIgnorePattern": "^_"
  29. }
  30. ]
  31. },
  32. "overrides": [
  33. {
  34. "files": ["rollup.config.js", "web-test-runner.config.js"],
  35. "env": {
  36. "node": true
  37. }
  38. },
  39. {
  40. "files": [
  41. "*_test.ts",
  42. "**/custom_typings/*.ts",
  43. "packages/lit-ssr/src/test/integration/tests/**",
  44. "packages/lit-ssr/src/lib/util/parse5-utils.ts"
  45. ],
  46. "rules": {
  47. "@typescript-eslint/no-explicit-any": "off"
  48. }
  49. }
  50. ]
  51. }