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