Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.69 KB | None | 0 0
  1. {
  2. "parser": "@typescript-eslint/parser",
  3. "extends": [
  4. "plugin:react/recommended",
  5. "plugin:@typescript-eslint/recommended",
  6. ],
  7. "parserOptions": {
  8. "ecmaVersion": 2018,
  9. "sourceType": "module",
  10. "ecmaFeatures": {
  11. "jsx": true,
  12. },
  13. },
  14. "rules": {
  15. "linebreak-style": [
  16. "warn",
  17. "unix"
  18. ],
  19. "no-multiple-empty-lines": [
  20. "warn",
  21. {
  22. "max": 2,
  23. "maxEOF": 1
  24. }
  25. ],
  26. "vars-on-top": "warn",
  27. "no-console": [
  28. "warn",
  29. {
  30. "allow": [
  31. "warn",
  32. "error"
  33. ]
  34. }
  35. ],
  36. "@typescript-eslint/indent": [
  37. "warn",
  38. 2,
  39. {
  40. "SwitchCase": 1
  41. }
  42. ],
  43. "space-infix-ops": "warn",
  44. "no-trailing-spaces": "warn",
  45. "no-unreachable": "off",
  46. "template-curly-spacing": "warn",
  47. "prefer-template": "warn",
  48. "no-debugger": "warn",
  49. "no-extra-boolean-cast": "warn",
  50. "no-irregular-whitespace": "warn",
  51. "no-multi-spaces": "warn",
  52. "no-template-curly-in-string": "warn",
  53. "no-unneeded-ternary": "warn",
  54. "no-case-declarations": "off",
  55. "no-unused-expressions": "off",
  56. "no-else-return": "warn",
  57. "no-restricted-globals": "off",
  58. "no-use-before-define": "off",
  59. "no-mixed-spaces-and-tabs": "warn",
  60. "no-extra-parens": "off",
  61. "object-shorthand": "warn",
  62. "prefer-arrow-callback": "warn",
  63. "no-duplicate-imports": "warn",
  64. "arrow-spacing": "warn",
  65. "no-sequences": "off",
  66. "no-lonely-if": "warn",
  67. "jsx-quotes": [
  68. "warn",
  69. "prefer-single"
  70. ],
  71. "quotes": [
  72. "warn",
  73. "single"
  74. ],
  75. "object-curly-spacing": [
  76. "warn",
  77. "always"
  78. ],
  79. "key-spacing": "warn",
  80. "semi": [
  81. "warn",
  82. "never"
  83. ],
  84. "arrow-parens": [
  85. "warn",
  86. "as-needed"
  87. ],
  88. "react/self-closing-comp": [
  89. "warn",
  90. {
  91. "component": true
  92. }
  93. ],
  94. "react/jsx-closing-bracket-location": [
  95. 1,
  96. "tag-aligned"
  97. ],
  98. "react/jsx-max-props-per-line": [
  99. 1,
  100. {
  101. "when": "multiline"
  102. }
  103. ],
  104. "react/jsx-first-prop-new-line": [
  105. 1,
  106. "multiline"
  107. ],
  108. "react/jsx-tag-spacing": [
  109. 1,
  110. {
  111. "closingSlash": "never",
  112. "beforeSelfClosing": "always",
  113. "afterOpening": "never",
  114. "beforeClosing": "never"
  115. }
  116. ],
  117. "react/prop-types": "off",
  118. "react/prefer-stateless-function": [
  119. 1
  120. ],
  121. "react/no-deprecated": "off",
  122. "comma-dangle": "off",
  123. "react/display-name": "off",
  124. "import/no-unresolved": "error",
  125. "@typescript-eslint/explicit-function-return-type": "off",
  126. "no-unused-vars": "off"
  127. },
  128. "settings": {
  129. "react": {
  130. "version": "detect"
  131. }
  132. }
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement