.eslintrc 852 B

12345678910111213141516171819202122232425262728
  1. {
  2. "extends": ["taro", "plugin:@typescript-eslint/recommended"],
  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": ["error", {
  9. "multiline": {
  10. "delimiter": "none",
  11. "requireLast": false
  12. },
  13. "singleline": {
  14. "delimiter": "semi",
  15. "requireLast": false
  16. }
  17. }],
  18. "@typescript-eslint/explicit-function-return-type": 0,
  19. "@typescript-eslint/no-empty-function": ["warn"]
  20. },
  21. "parserOptions": {
  22. "ecmaFeatures": {
  23. "jsx": true
  24. },
  25. "useJSXTextNode": true,
  26. "project": "./tsconfig.json"
  27. }
  28. }