25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 

83 satır
1.9 KiB

  1. {
  2. "parser": "babel-eslint",
  3. "extends": "standard",
  4. "plugins": [
  5. "react",
  6. "import",
  7. "babel"
  8. ],
  9. "parserOptions": {
  10. "ecmaFeatures": {
  11. "jsx": true
  12. }
  13. },
  14. "env": {
  15. "browser": true,
  16. "node": true,
  17. "es6": true,
  18. "jquery": true,
  19. "commonjs": true,
  20. "phantomjs": true,
  21. "mocha": true
  22. },
  23. "rules": {
  24. "strict": 0,
  25. "no-console": 1,
  26. "no-debugger": 1,
  27. "no-extra-semi": 1,
  28. "no-constant-condition": 2,
  29. "no-extra-boolean-cast": 2,
  30. "no-return-assign": 0,
  31. "use-isnan": 2,
  32. "no-undef-init": 2,
  33. "camelcase": 2,
  34. "no-mixed-spaces-and-tabs": 2,
  35. "no-const-assign":2,
  36. "no-func-assign": 2,
  37. "no-else-return": 1,
  38. "no-obj-calls": 2,
  39. "valid-typeof": 2,
  40. "no-unused-vars": 1,
  41. "quotes": 0,
  42. "block-spacing": 1,
  43. "semi": 0,
  44. "keyword-spacing": 1,
  45. "comma-dangle": 0,
  46. "arrow-body-style": 0,
  47. "array-bracket-spacing": 1,
  48. "space-before-function-paren": 0,
  49. "no-extra-bind": 1,
  50. "no-var": "error",
  51. "arrow-spacing": ["error", { "before": true, "after": true }],
  52. "no-empty-function": ["error", { "allow": ["arrowFunctions", "constructors"] }],
  53. "react/no-did-mount-set-state": "error",
  54. "react/no-did-update-set-state": "error",
  55. "react/react-in-jsx-scope": "error",
  56. "react/jsx-uses-vars": [2],
  57. "react/jsx-uses-react": [2],
  58. "import/no-unresolved": [2, {"commonjs": true, "amd": true}],
  59. "import/namespace": 2,
  60. "import/default": 2,
  61. "import/export": 2,
  62. "babel/new-cap": 1,
  63. "babel/object-curly-spacing": 0,
  64. "babel/no-invalid-this": 1,
  65. "babel/semi": 1,
  66. "operator-linebreak": 0
  67. },
  68. "settings": {
  69. "import/resolver": {
  70. "node": {
  71. "extensions": [".js", ".jsx"]
  72. },
  73. "webpack": {
  74. "config": "webpack.config.js"
  75. }
  76. },
  77. "import/ignore": ["node_modules"]
  78. },
  79. "globals": {
  80. "require": true
  81. }
  82. }