Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.eslintrc.js 2.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. module.exports = {
  2. "rules": {
  3. // the rules below should be sorted in a same way they are sorted on http://eslint.org/docs/rules page
  4. // http://eslint.org/docs/rules/#possible-errors
  5. "no-caller": 2,
  6. "no-control-regex": 2,
  7. "no-empty": 1,
  8. "no-invalid-regexp": 2,
  9. "no-regex-spaces": 2,
  10. "no-unsafe-negation": 1,
  11. "valid-jsdoc": 0,
  12. "valid-typeof": 2,
  13. // http://eslint.org/docs/rules/#best-practices
  14. "curly": 2,
  15. "eqeqeq": [2, "smart"],
  16. "guard-for-in": 0,
  17. "no-else-return": 1,
  18. "no-fallthrough": 2,
  19. "no-invalid-this": 1,
  20. "no-iterator": 2,
  21. "no-loop-func": 2,
  22. "no-multi-str": 2,
  23. "no-new-func": 2,
  24. "no-new-wrappers": 2,
  25. "no-new": 2,
  26. "no-proto": 2,
  27. "no-redeclare": 1,
  28. "no-script-url": 2,
  29. "wrap-iife": [2, "outside"],
  30. // http://eslint.org/docs/rules/#strict-mode
  31. "strict": 2,
  32. // http://eslint.org/docs/rules/#variables
  33. "no-shadow-restricted-names": 2,
  34. "no-shadow": 1,
  35. "no-undef": 2,
  36. "no-unused-vars": [1, {
  37. "vars": "all",
  38. "args": "none"
  39. }],
  40. "no-use-before-define": 0,
  41. // http://eslint.org/docs/rules/#nodejs-and-commonjs
  42. "no-new-require": 2,
  43. // http://eslint.org/docs/rules/#stylistic-issues
  44. "block-spacing": 1,
  45. "brace-style": [1, "1tbs", {
  46. allowSingleLine: true
  47. }],
  48. "camelcase": 1,
  49. "comma-dangle": 2,
  50. "comma-spacing": 1,
  51. "comma-style": [1, "last"],
  52. "computed-property-spacing": 1,
  53. "eol-last": 1,
  54. "func-call-spacing": 1,
  55. "indent": [1, 4],
  56. "key-spacing": [1, {
  57. beforeColon: false,
  58. afterColon: true
  59. }],
  60. "max-len": [1, 120],
  61. "new-cap": [0, {
  62. "capIsNewExceptions": [
  63. "$.Deferred",
  64. "$.Event",
  65. "CodeMirror.Pos",
  66. "Immutable.Map",
  67. "Immutable.List",
  68. "JSLINT"
  69. ]
  70. }],
  71. "new-parens": 2,
  72. "no-bitwise": 2,
  73. "no-new-object": 2,
  74. "no-trailing-spaces": 1,
  75. "semi-spacing": 1,
  76. "semi": 2
  77. },
  78. "globals": {
  79. "$": false,
  80. "brackets": false,
  81. "clearTimeout": false,
  82. "console": false,
  83. "define": false,
  84. "require": false,
  85. "setTimeout": false,
  86. "window": false,
  87. "ArrayBuffer": false,
  88. "Uint32Array": false,
  89. "WebSocket": false,
  90. "XMLHttpRequest": false
  91. }
  92. };