.eslintrc 864 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "extends": ["taro/react"],
  3. "parser": "@typescript-eslint/parser",
  4. "rules": {
  5. "no-unused-vars": ["error", { "varsIgnorePattern": "Taro" }],
  6. "react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }],
  7. "@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "Taro" }],
  8. "@typescript-eslint/member-delimiter-style": [
  9. "error",
  10. {
  11. "multiline": {
  12. "delimiter": "none"
  13. },
  14. "singleline": {
  15. "delimiter": "semi",
  16. "requireLast": false
  17. }
  18. }
  19. ],
  20. "@typescript-eslint/explicit-function-return-type": 0,
  21. "@typescript-eslint/no-empty-function": ["warn"],
  22. "quotes": [2, ["backtick", "single"]]
  23. },
  24. "parserOptions": {
  25. "ecmaFeatures": {
  26. "jsx": true
  27. },
  28. "useJSXTextNode": true,
  29. "project": "./tsconfig.json"
  30. }
  31. }