forked from johwes/jspaint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
126 lines (122 loc) · 3.18 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
module.exports = {
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly",
"ClipboardItem": "readonly",
// libraries
"$": "readonly",
"jQuery": "readonly",
"libtess": "readonly",
"firebase": "readonly",
"GIF": "readonly",
"saveAs": "readonly",
"Konami": "readonly",
"YT": "readonly",
"FontDetective": "readonly",
"Palette": "readonly",
/*
// const
"TAU": "writable",
"is_pride_month": "writable",
"default_tool": "writable",
"default_canvas_width": "writable",
"default_canvas_height": "writable",
// global state: options
"brush_shape": "writable",
"brush_size": "writable",
"pencil_size": "writable",
"eraser_size": "writable",
"airbrush_size": "writable",
"stroke_size": "writable",
"tool_transparent_mode": "writable",
"magnification": "writable",
"transparency": "writable",
"aliasing": "writable",
"monochrome": "writable",
"colors": "writable",
"palette": "writable",
"polychrome_palette": "writable",
"monochrome_palette": "writable",
// global state: history
"undos": "writable",
"redos": "writable",
"current_history_node": "writable",
"root_history_node": "writable",
"history_node_to_cancel_to": "writable",
// global state
"selection": "writable",
"textbox": "writable",
"pointer": "writable", // bad
"pointer_start": "writable",
"pointer_previous": "writable",
"pointers": "writable",
"saved": "writable",
"file_name": "writable",
"document_file_path": "writable",
"selected_tool": "writable",
"selected_tools": "writable",
"default_tool": "writable",
"shift": "writable",
"ctrl": "writable",
"my_canvas_width": "writable",
"my_canvas_height": "writable",
"pointer": "writable",
// references that may contain state in some ways
"canvas": "writable", // really bad
"ctx": "writable", // really bad
"helper_layer": "writable",
"menus": "writable",
"tools": "writable",
"extra_tools": "writable",
"$G": "writable",
"$canvas": "writable",
"$canvas_area": "writable",
"$top": "writable",
"$bottom": "writable",
"$left": "writable",
"$right": "writable",
"$toolbox": "writable",
"$colorbox": "writable",
"$MenuBar": "writable",
"$ToolBox": "writable",
"$ColorBox": "writable",
"$Window": "writable",
"$FormWindow": "writable",
"$Handles": "writable",
"OnCanvasSelection": "writable",
"OnCanvasTextBox": "writable",
// functions
"E": "writable",
"make_canvas": "writable",
"debounce": "writable",
"memoize_synchronous_function": "writable",
"invert_rgb": "off",
"get_theme": "writable",
"get_tool_by_name": "writable",
"redo": "writable",
"undo": "writable",
"undoable": "writable",
"cancel": "writable",
"deselect": "writable",
"update_helper_layer": "writable",
"show_error_message": "writable",
"to_canvas_coords": "writable",
"update_title": "writable",
"get_help_folder_icon": "writable",
"get_icon_for_tool": "writable",
"draw_polygon": "writable",
*/
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-undef": 0, // FOR NOW OKAY? there are just tons of globals at the moment
"no-unused-vars": 0, // ditto
}
};