Guest User

Untitled

a guest
Nov 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. module.exports = {
  2. "extends": [
  3. "airbnb",
  4. "prettier",
  5. "prettier/react"
  6. ],
  7. "parser": "babel-eslint",
  8. "parserOptions": {
  9. "ecmaVersion": 8,
  10. "ecmaFeatures": {
  11. "experimentalObjectRestSpread": true,
  12. "impliedStrict": true,
  13. "classes": true,
  14. }
  15. },
  16. "env": {
  17. "browser": true,
  18. "node": true,
  19. "jquery": true
  20. },
  21. "rules": {
  22. "no-unused-vars": [
  23. 1,
  24. {
  25. "argsIgnorePattern": "res|next|^err"
  26. }
  27. ],
  28. "arrow-body-style": [
  29. 2,
  30. "as-needed"
  31. ],
  32. "no-param-reassign": [
  33. 2,
  34. {
  35. "props": false
  36. }
  37. ],
  38. "no-console": 0,
  39. "import": 0,
  40. "func-names": 0,
  41. "space-before-function-paren": 0,
  42. "comma-dangle": 0,
  43. "max-len": 0,
  44. "import/extensions": 0,
  45. "no-underscore-dangle": 0,
  46. "consistent-return": 0,
  47. "react/display-name": 1,
  48. "react/react-in-jsx-scope": 0,
  49. "react/forbid-prop-types": 0,
  50. "react/no-unescaped-entities": 0,
  51. "react/jsx-filename-extension": [
  52. 1,
  53. {
  54. "extensions": [
  55. ".js",
  56. ".jsx"
  57. ]
  58. }
  59. ],
  60. "radix": 0,
  61. "no-shadow": [
  62. 2,
  63. {
  64. "hoist": "all",
  65. "allow": [
  66. "resolve",
  67. "reject",
  68. "done",
  69. "next",
  70. "err",
  71. "error"
  72. ]
  73. }
  74. ],
  75. "quotes": [
  76. 2,
  77. "single",
  78. {
  79. "avoidEscape": true,
  80. "allowTemplateLiterals": true
  81. }
  82. ],
  83. "prettier/prettier": [
  84. "error",
  85. {
  86. "trailingComma": "es5",
  87. "singleQuote": true,
  88. "printWidth": 120
  89. }
  90. ],
  91. "jsx-a11y/href-no-hash": "off",
  92. "jsx-a11y/anchor-is-valid": [
  93. "warn",
  94. {
  95. "aspects": [
  96. "invalidHref"
  97. ]
  98. }
  99. ]
  100. },
  101. "plugins": [
  102. "eslint-plugin-html",
  103. "prettier"
  104. ]
  105. }
Add Comment
Please, Sign In to add comment