Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | { |
| 2 | "parser": "babel-eslint", |
Einav Weiss Keidar | 7fdf733 | 2018-03-20 14:45:40 +0200 | [diff] [blame] | 3 | "parserOptions": { |
| 4 | "ecmaVersion": 6, |
| 5 | "sourceType": "module", |
| 6 | "ecmaFeatures": { |
| 7 | "jsx": true, |
| 8 | "classes": true, |
| 9 | "modules": true, |
| 10 | "experimentalDecorators": true |
| 11 | } |
| 12 | }, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 13 | "env": { |
| 14 | "es6": true, |
| 15 | "jquery": true, |
| 16 | "node": true, |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 17 | "jest": true |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 18 | }, |
| 19 | "plugins": [ |
| 20 | "react", |
Einav Weiss Keidar | 7fdf733 | 2018-03-20 14:45:40 +0200 | [diff] [blame] | 21 | "import", |
| 22 | "prettier" |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 23 | ], |
Einav Weiss Keidar | 7fdf733 | 2018-03-20 14:45:40 +0200 | [diff] [blame] | 24 | "extends": [ |
| 25 | "prettier" |
| 26 | ], |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 27 | "globals": { |
| 28 | "Event": true, |
| 29 | "window": true, |
| 30 | "navigator": true, |
| 31 | "System": true, |
| 32 | "document": true, |
| 33 | "localStorage": true, |
| 34 | "sessionStorage": true, |
| 35 | "Image": true, |
| 36 | "requestAnimationFrame": true, |
| 37 | "cancelAnimationFrame": true, |
| 38 | "DEBUG": true, |
| 39 | "SVGElement": true, |
| 40 | "FormData": true, |
| 41 | "DEV": true, |
| 42 | "Blob": true, |
| 43 | "XMLHttpRequest": true, |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 44 | "WebSocket": true, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 45 | "URL": true, |
| 46 | "PunchOutRegistry": true, |
| 47 | "it": true, |
| 48 | "describe": true |
| 49 | }, |
| 50 | "rules": { |
Einav Weiss Keidar | 7fdf733 | 2018-03-20 14:45:40 +0200 | [diff] [blame] | 51 | "prettier/prettier": ["error", { |
| 52 | "singleQuote": true, |
| 53 | "jsxBracketSameLine": true, |
| 54 | "tabWidth": 4 |
| 55 | }], |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 56 | "linebreak-style": 0, |
| 57 | "no-unused-vars": 2, |
| 58 | "no-bitwise": 0, |
| 59 | "no-eq-null": 2, |
| 60 | "eqeqeq": 2, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 61 | "no-unused-expressions": 2, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 62 | "no-use-before-define": 2, |
| 63 | "new-cap": [ |
| 64 | 2, |
| 65 | { |
| 66 | "capIsNewExceptions": [ |
| 67 | "DataTable", |
| 68 | "V" |
| 69 | ] |
| 70 | } |
| 71 | ], |
| 72 | "no-caller": 2, |
| 73 | "no-empty": 2, |
| 74 | "no-undef": 2, |
| 75 | "quotes": [ |
| 76 | 2, |
| 77 | "single", |
| 78 | "avoid-escape" |
| 79 | ], |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 80 | "no-plusplus": 0, |
| 81 | "no-cond-assign": [ |
| 82 | 2, |
| 83 | "except-parens" |
| 84 | ], |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 85 | "no-invalid-this": 0, |
| 86 | "dot-notation": 0, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 87 | "camelcase": [ |
| 88 | 2, |
| 89 | { |
| 90 | "properties": "never" |
| 91 | } |
| 92 | ], |
| 93 | "curly": 2, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 94 | "semi": [ |
| 95 | 2, |
| 96 | "always" |
| 97 | ], |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 98 | "import/default": 0, |
| 99 | "import/no-unresolved": 0, |
| 100 | "import/no-named-as-default": 2, |
| 101 | "import/no-duplicates": 0, |
| 102 | "import/imports-first": 2, |
| 103 | "import/export": 2, |
| 104 | "react/display-name": 0, |
| 105 | "react/forbid-prop-types": 0, |
| 106 | "react/jsx-boolean-value": 0, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 107 | "react/jsx-no-duplicate-props": 1, |
| 108 | "react/jsx-no-literals": 0, |
| 109 | "react/jsx-no-undef": 1, |
| 110 | "react/jsx-sort-prop-types": 0, |
| 111 | "react/jsx-sort-props": 0, |
| 112 | "react/jsx-uses-react": 1, |
| 113 | "react/jsx-uses-vars": 1, |
| 114 | "react/no-danger": 1, |
| 115 | "react/no-did-mount-set-state": 2, |
| 116 | "react/no-did-update-set-state": 2, |
| 117 | "react/no-direct-mutation-state": 1, |
| 118 | "react/no-multi-comp": 0, |
| 119 | "react/no-set-state": 0, |
| 120 | "react/no-unknown-property": 1, |
| 121 | "react/prop-types": 0, |
| 122 | "react/react-in-jsx-scope": 1, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 123 | "react/self-closing-comp": 1, |
| 124 | "react/sort-comp": 0, |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 125 | } |
| 126 | } |