Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | { |
| 2 | "parser": "babel-eslint", |
| 3 | "env": { |
| 4 | "es6": true, |
| 5 | "jquery": true, |
| 6 | "node": true, |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 7 | "jest": true |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 8 | }, |
| 9 | "plugins": [ |
| 10 | "react", |
| 11 | "import" |
| 12 | ], |
| 13 | "ecmaFeatures": { |
| 14 | "jsx": true, |
| 15 | "classes": true, |
svishnev | d3886bb | 2018-01-08 15:21:46 +0200 | [diff] [blame^] | 16 | "modules": true, |
| 17 | "experimentalDecorators": true |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 18 | }, |
| 19 | "globals": { |
| 20 | "Event": true, |
| 21 | "window": true, |
| 22 | "navigator": true, |
| 23 | "System": true, |
| 24 | "document": true, |
| 25 | "localStorage": true, |
| 26 | "sessionStorage": true, |
| 27 | "Image": true, |
| 28 | "requestAnimationFrame": true, |
| 29 | "cancelAnimationFrame": true, |
| 30 | "DEBUG": true, |
| 31 | "SVGElement": true, |
| 32 | "FormData": true, |
| 33 | "DEV": true, |
| 34 | "Blob": true, |
| 35 | "XMLHttpRequest": true, |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 36 | "WebSocket": true, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 37 | "URL": true, |
| 38 | "PunchOutRegistry": true, |
| 39 | "it": true, |
| 40 | "describe": true |
| 41 | }, |
| 42 | "rules": { |
| 43 | "linebreak-style": 0, |
| 44 | "no-unused-vars": 2, |
| 45 | "no-bitwise": 0, |
| 46 | "no-eq-null": 2, |
| 47 | "eqeqeq": 2, |
| 48 | "wrap-iife": [ |
| 49 | 2, |
| 50 | "any" |
| 51 | ], |
| 52 | "no-unused-expressions": 2, |
| 53 | "indent": [ |
| 54 | 1, |
| 55 | "tab", |
| 56 | { |
| 57 | "SwitchCase": 1 |
| 58 | } |
| 59 | ], |
| 60 | "no-use-before-define": 2, |
| 61 | "new-cap": [ |
| 62 | 2, |
| 63 | { |
| 64 | "capIsNewExceptions": [ |
| 65 | "DataTable", |
| 66 | "V" |
| 67 | ] |
| 68 | } |
| 69 | ], |
| 70 | "no-caller": 2, |
| 71 | "no-empty": 2, |
| 72 | "no-undef": 2, |
| 73 | "quotes": [ |
| 74 | 2, |
| 75 | "single", |
| 76 | "avoid-escape" |
| 77 | ], |
| 78 | "jsx-quotes": [ |
| 79 | 2, |
| 80 | "prefer-single" |
| 81 | ], |
| 82 | "no-plusplus": 0, |
| 83 | "no-cond-assign": [ |
| 84 | 2, |
| 85 | "except-parens" |
| 86 | ], |
| 87 | "comma-style": [ |
| 88 | 2, |
| 89 | "last" |
| 90 | ], |
| 91 | "no-invalid-this": 0, |
| 92 | "dot-notation": 0, |
| 93 | "max-len": [ |
| 94 | 1, |
| 95 | 200 |
| 96 | ], |
| 97 | "camelcase": [ |
| 98 | 2, |
| 99 | { |
| 100 | "properties": "never" |
| 101 | } |
| 102 | ], |
| 103 | "curly": 2, |
| 104 | "brace-style": 0, |
| 105 | "semi": [ |
| 106 | 2, |
| 107 | "always" |
| 108 | ], |
| 109 | "space-in-brackets": [ |
| 110 | 0, |
| 111 | "never" |
| 112 | ], |
| 113 | "space-infix-ops": 2, |
| 114 | "import/default": 0, |
| 115 | "import/no-unresolved": 0, |
| 116 | "import/no-named-as-default": 2, |
| 117 | "import/no-duplicates": 0, |
| 118 | "import/imports-first": 2, |
| 119 | "import/export": 2, |
| 120 | "react/display-name": 0, |
| 121 | "react/forbid-prop-types": 0, |
| 122 | "react/jsx-boolean-value": 0, |
| 123 | "react/jsx-closing-bracket-location": [ |
| 124 | 1, |
| 125 | { |
| 126 | "nonEmpty": "after-props", |
| 127 | "selfClosing": "after-props" |
| 128 | } |
| 129 | ], |
| 130 | "react/jsx-curly-spacing": 0, |
| 131 | "react/jsx-indent-props": [ |
| 132 | 1, |
| 133 | "tab" |
| 134 | ], |
| 135 | "react/jsx-max-props-per-line": 0, |
| 136 | "react/jsx-no-duplicate-props": 1, |
| 137 | "react/jsx-no-literals": 0, |
| 138 | "react/jsx-no-undef": 1, |
| 139 | "react/jsx-sort-prop-types": 0, |
| 140 | "react/jsx-sort-props": 0, |
| 141 | "react/jsx-uses-react": 1, |
| 142 | "react/jsx-uses-vars": 1, |
| 143 | "react/no-danger": 1, |
| 144 | "react/no-did-mount-set-state": 2, |
| 145 | "react/no-did-update-set-state": 2, |
| 146 | "react/no-direct-mutation-state": 1, |
| 147 | "react/no-multi-comp": 0, |
| 148 | "react/no-set-state": 0, |
| 149 | "react/no-unknown-property": 1, |
| 150 | "react/prop-types": 0, |
| 151 | "react/react-in-jsx-scope": 1, |
| 152 | "react/require-extension": 1, |
| 153 | "react/self-closing-comp": 1, |
| 154 | "react/sort-comp": 0, |
| 155 | "react/wrap-multilines": 1 |
| 156 | } |
| 157 | } |