Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 1 | { |
| 2 | "env": { |
| 3 | "browser": true, |
| 4 | "node": true, |
| 5 | "es6": true |
| 6 | }, |
Suraj Shetty | 584430c | 2018-11-26 12:32:29 +0530 | [diff] [blame] | 7 | "parserOptions": { |
Suraj Shetty | d038a80 | 2020-11-09 19:10:43 +0530 | [diff] [blame] | 8 | "ecmaVersion": 9, |
Suraj Shetty | 584430c | 2018-11-26 12:32:29 +0530 | [diff] [blame] | 9 | "sourceType": "module" |
| 10 | }, |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 11 | "extends": "eslint:recommended", |
| 12 | "rules": { |
| 13 | "indent": [ |
| 14 | "error", |
| 15 | "tab", |
| 16 | { "SwitchCase": 1 } |
| 17 | ], |
Suraj Shetty | d038a80 | 2020-11-09 19:10:43 +0530 | [diff] [blame] | 18 | "brace-style": [ |
| 19 | "error", |
| 20 | "1tbs" |
| 21 | ], |
| 22 | "space-unary-ops": [ |
| 23 | "error", |
| 24 | { "words": true } |
| 25 | ], |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 26 | "linebreak-style": [ |
| 27 | "error", |
| 28 | "unix" |
| 29 | ], |
| 30 | "quotes": [ |
| 31 | "off" |
| 32 | ], |
| 33 | "semi": [ |
| 34 | "warn", |
| 35 | "always" |
| 36 | ], |
| 37 | "camelcase": [ |
| 38 | "off" |
| 39 | ], |
| 40 | "no-unused-vars": [ |
| 41 | "warn" |
| 42 | ], |
| 43 | "no-redeclare": [ |
| 44 | "warn" |
| 45 | ], |
| 46 | "no-console": [ |
| 47 | "warn" |
| 48 | ], |
| 49 | "no-extra-boolean-cast": [ |
| 50 | "off" |
| 51 | ], |
| 52 | "no-control-regex": [ |
| 53 | "off" |
| 54 | ], |
Suraj Shetty | d038a80 | 2020-11-09 19:10:43 +0530 | [diff] [blame] | 55 | "space-before-blocks": "warn", |
| 56 | "keyword-spacing": "warn", |
| 57 | "comma-spacing": "warn", |
| 58 | "key-spacing": "warn" |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 59 | }, |
| 60 | "root": true, |
| 61 | "globals": { |
| 62 | "frappe": true, |
Suraj Shetty | 584430c | 2018-11-26 12:32:29 +0530 | [diff] [blame] | 63 | "Vue": true, |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 64 | "erpnext": true, |
Faris Ansari | 76b31de | 2018-09-11 17:38:31 +0530 | [diff] [blame] | 65 | "hub": true, |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 66 | "$": true, |
| 67 | "jQuery": true, |
| 68 | "moment": true, |
| 69 | "hljs": true, |
| 70 | "Awesomplete": true, |
| 71 | "CalHeatMap": true, |
| 72 | "Sortable": true, |
| 73 | "Showdown": true, |
| 74 | "Taggle": true, |
| 75 | "Gantt": true, |
| 76 | "Slick": true, |
| 77 | "PhotoSwipe": true, |
| 78 | "PhotoSwipeUI_Default": true, |
| 79 | "fluxify": true, |
| 80 | "io": true, |
| 81 | "c3": true, |
| 82 | "__": true, |
| 83 | "_p": true, |
| 84 | "_f": true, |
| 85 | "repl": true, |
| 86 | "Class": true, |
| 87 | "locals": true, |
| 88 | "cint": true, |
| 89 | "cstr": true, |
| 90 | "cur_frm": true, |
| 91 | "cur_dialog": true, |
| 92 | "cur_page": true, |
| 93 | "cur_list": true, |
| 94 | "cur_tree": true, |
Suraj Shetty | ba599f7 | 2021-01-29 09:05:32 +0530 | [diff] [blame] | 95 | "cur_pos": true, |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 96 | "msg_dialog": true, |
| 97 | "is_null": true, |
| 98 | "in_list": true, |
| 99 | "has_common": true, |
| 100 | "has_words": true, |
| 101 | "validate_email": true, |
| 102 | "get_number_format": true, |
| 103 | "format_number": true, |
| 104 | "format_currency": true, |
| 105 | "round_based_on_smallest_currency_fraction": true, |
| 106 | "roundNumber": true, |
| 107 | "comment_when": true, |
| 108 | "replace_newlines": true, |
| 109 | "open_url_post": true, |
| 110 | "toTitle": true, |
| 111 | "lstrip": true, |
| 112 | "strip": true, |
| 113 | "strip_html": true, |
| 114 | "replace_all": true, |
| 115 | "flt": true, |
| 116 | "precision": true, |
| 117 | "md5": true, |
| 118 | "CREATE": true, |
| 119 | "AMEND": true, |
| 120 | "CANCEL": true, |
| 121 | "copy_dict": true, |
| 122 | "get_number_format_info": true, |
| 123 | "print_table": true, |
| 124 | "Layout": true, |
| 125 | "web_form_settings": true, |
| 126 | "$c": true, |
| 127 | "$a": true, |
| 128 | "$i": true, |
| 129 | "$bg": true, |
| 130 | "$y": true, |
| 131 | "$c_obj": true, |
| 132 | "$c_obj_csv": true, |
| 133 | "refresh_many": true, |
| 134 | "refresh_field": true, |
| 135 | "toggle_field": true, |
| 136 | "get_field_obj": true, |
| 137 | "get_query_params": true, |
| 138 | "unhide_field": true, |
| 139 | "hide_field": true, |
| 140 | "set_field_options": true, |
| 141 | "getCookie": true, |
| 142 | "getCookies": true, |
| 143 | "get_url_arg": true, |
| 144 | "get_server_fields": true, |
Rushabh Mehta | 43ef4e9 | 2017-07-03 11:53:07 +0530 | [diff] [blame] | 145 | "set_multiple": true, |
Prateeksha Singh | 6b26e39 | 2017-10-31 12:58:48 +0530 | [diff] [blame] | 146 | "QUnit": true, |
deepeshgarg007 | 8c4bd95 | 2019-01-02 13:24:12 +0530 | [diff] [blame] | 147 | "Chart": true, |
| 148 | "Cypress": true, |
| 149 | "cy": true, |
| 150 | "it": true, |
| 151 | "context": true, |
| 152 | "before": true, |
Suraj Shetty | 1ab79da | 2021-02-01 19:51:25 +0530 | [diff] [blame] | 153 | "beforeEach": true, |
Suraj Shetty | 81d49e9 | 2021-05-21 17:03:09 +0530 | [diff] [blame^] | 154 | "onScan": true, |
| 155 | "extend_cscript": true |
Faris Ansari | 1ee615c | 2017-06-16 13:12:47 +0530 | [diff] [blame] | 156 | } |
| 157 | } |