2017-06-16 07:42:47 +00:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"es6": true
|
|
|
|
},
|
2018-11-26 07:02:29 +00:00
|
|
|
"parserOptions": {
|
2022-05-11 14:02:51 +00:00
|
|
|
"ecmaVersion": 11,
|
2018-11-26 07:02:29 +00:00
|
|
|
"sourceType": "module"
|
|
|
|
},
|
2017-06-16 07:42:47 +00:00
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"rules": {
|
|
|
|
"indent": [
|
|
|
|
"error",
|
|
|
|
"tab",
|
|
|
|
{ "SwitchCase": 1 }
|
|
|
|
],
|
2020-11-09 13:40:43 +00:00
|
|
|
"brace-style": [
|
|
|
|
"error",
|
|
|
|
"1tbs"
|
|
|
|
],
|
|
|
|
"space-unary-ops": [
|
|
|
|
"error",
|
|
|
|
{ "words": true }
|
|
|
|
],
|
2017-06-16 07:42:47 +00:00
|
|
|
"linebreak-style": [
|
|
|
|
"error",
|
|
|
|
"unix"
|
|
|
|
],
|
|
|
|
"quotes": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"semi": [
|
|
|
|
"warn",
|
|
|
|
"always"
|
|
|
|
],
|
|
|
|
"camelcase": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"no-unused-vars": [
|
|
|
|
"warn"
|
|
|
|
],
|
|
|
|
"no-redeclare": [
|
|
|
|
"warn"
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
"warn"
|
|
|
|
],
|
|
|
|
"no-extra-boolean-cast": [
|
|
|
|
"off"
|
|
|
|
],
|
|
|
|
"no-control-regex": [
|
|
|
|
"off"
|
|
|
|
],
|
2020-11-09 13:40:43 +00:00
|
|
|
"space-before-blocks": "warn",
|
|
|
|
"keyword-spacing": "warn",
|
|
|
|
"comma-spacing": "warn",
|
|
|
|
"key-spacing": "warn"
|
2017-06-16 07:42:47 +00:00
|
|
|
},
|
|
|
|
"root": true,
|
|
|
|
"globals": {
|
|
|
|
"frappe": true,
|
2018-11-26 07:02:29 +00:00
|
|
|
"Vue": true,
|
2017-06-16 07:42:47 +00:00
|
|
|
"erpnext": true,
|
2018-09-11 12:08:31 +00:00
|
|
|
"hub": true,
|
2017-06-16 07:42:47 +00:00
|
|
|
"$": true,
|
|
|
|
"jQuery": true,
|
|
|
|
"moment": true,
|
|
|
|
"hljs": true,
|
|
|
|
"Awesomplete": true,
|
|
|
|
"CalHeatMap": true,
|
|
|
|
"Sortable": true,
|
|
|
|
"Showdown": true,
|
|
|
|
"Taggle": true,
|
|
|
|
"Gantt": true,
|
|
|
|
"Slick": true,
|
|
|
|
"PhotoSwipe": true,
|
|
|
|
"PhotoSwipeUI_Default": true,
|
|
|
|
"fluxify": true,
|
|
|
|
"io": true,
|
|
|
|
"c3": true,
|
|
|
|
"__": true,
|
|
|
|
"_p": true,
|
|
|
|
"_f": true,
|
|
|
|
"repl": true,
|
|
|
|
"Class": true,
|
|
|
|
"locals": true,
|
|
|
|
"cint": true,
|
|
|
|
"cstr": true,
|
|
|
|
"cur_frm": true,
|
|
|
|
"cur_dialog": true,
|
|
|
|
"cur_page": true,
|
|
|
|
"cur_list": true,
|
|
|
|
"cur_tree": true,
|
2021-01-29 03:35:32 +00:00
|
|
|
"cur_pos": true,
|
2017-06-16 07:42:47 +00:00
|
|
|
"msg_dialog": true,
|
|
|
|
"is_null": true,
|
|
|
|
"in_list": true,
|
|
|
|
"has_common": true,
|
|
|
|
"has_words": true,
|
|
|
|
"validate_email": true,
|
|
|
|
"get_number_format": true,
|
|
|
|
"format_number": true,
|
|
|
|
"format_currency": true,
|
|
|
|
"round_based_on_smallest_currency_fraction": true,
|
|
|
|
"roundNumber": true,
|
|
|
|
"comment_when": true,
|
|
|
|
"replace_newlines": true,
|
|
|
|
"open_url_post": true,
|
|
|
|
"toTitle": true,
|
|
|
|
"lstrip": true,
|
|
|
|
"strip": true,
|
|
|
|
"strip_html": true,
|
|
|
|
"replace_all": true,
|
|
|
|
"flt": true,
|
|
|
|
"precision": true,
|
|
|
|
"md5": true,
|
|
|
|
"CREATE": true,
|
|
|
|
"AMEND": true,
|
|
|
|
"CANCEL": true,
|
|
|
|
"copy_dict": true,
|
|
|
|
"get_number_format_info": true,
|
|
|
|
"print_table": true,
|
|
|
|
"Layout": true,
|
|
|
|
"web_form_settings": true,
|
|
|
|
"$c": true,
|
|
|
|
"$a": true,
|
|
|
|
"$i": true,
|
|
|
|
"$bg": true,
|
|
|
|
"$y": true,
|
|
|
|
"$c_obj": true,
|
|
|
|
"$c_obj_csv": true,
|
|
|
|
"refresh_many": true,
|
|
|
|
"refresh_field": true,
|
|
|
|
"toggle_field": true,
|
|
|
|
"get_field_obj": true,
|
|
|
|
"get_query_params": true,
|
|
|
|
"unhide_field": true,
|
|
|
|
"hide_field": true,
|
|
|
|
"set_field_options": true,
|
|
|
|
"getCookie": true,
|
|
|
|
"getCookies": true,
|
|
|
|
"get_url_arg": true,
|
|
|
|
"get_server_fields": true,
|
2017-07-03 06:23:07 +00:00
|
|
|
"set_multiple": true,
|
2017-10-31 07:28:48 +00:00
|
|
|
"QUnit": true,
|
2019-01-02 07:54:12 +00:00
|
|
|
"Chart": true,
|
|
|
|
"Cypress": true,
|
|
|
|
"cy": true,
|
2021-07-13 07:47:19 +00:00
|
|
|
"describe": true,
|
|
|
|
"expect": true,
|
2019-01-02 07:54:12 +00:00
|
|
|
"it": true,
|
|
|
|
"context": true,
|
|
|
|
"before": true,
|
2021-02-01 14:21:25 +00:00
|
|
|
"beforeEach": true,
|
2021-07-13 07:47:19 +00:00
|
|
|
"onScan": true,
|
2021-07-25 14:53:20 +00:00
|
|
|
"html2canvas": true,
|
2021-07-13 07:47:19 +00:00
|
|
|
"extend_cscript": true,
|
|
|
|
"localforage": true
|
2017-06-16 07:42:47 +00:00
|
|
|
}
|
|
|
|
}
|