File tree Expand file tree Collapse file tree 5 files changed +5893
-9658
lines changed
Expand file tree Collapse file tree 5 files changed +5893
-9658
lines changed Original file line number Diff line number Diff line change @@ -2,25 +2,24 @@ all: lint format test # build
22
33.PHONY : init
44init :
5- rm yarn.lock
6- yarn install
5+ npm install
76
87.PHONY : test
98test :
10- yarn run testcafe chrome tests/
9+ npx testcafe chrome tests/
1110
1211.PHONY : format
1312format :
14- yarn run prettier -w popout.js
13+ npx prettier -w popout.js
1514
1615.PHONY : lint
1716lint :
18- yarn run eslint popout.js
17+ npx eslint popout.js
1918
2019.PHONY :
2120clean :
2221 rm node_modules
2322 rm dist/popout.dist.js
2423
2524build : popout.js
26- yarn run swc popout.js -o dist/popout.dist.js
25+ npx swc popout.js -o dist/popout.dist.js
Original file line number Diff line number Diff line change 1+ import globals from "globals" ;
2+
3+ export default [
4+ {
5+ languageOptions : {
6+ ecmaVersion : 2021 ,
7+ sourceType : "script" ,
8+ globals : {
9+ ...globals . browser ,
10+ ...globals . jquery ,
11+ // Foundry VTT globals
12+ game : "readonly" ,
13+ ui : "readonly" ,
14+ foundry : "readonly" ,
15+ CONFIG : "readonly" ,
16+ tinyMCE : "readonly" ,
17+ randomID : "readonly" ,
18+ duplicate : "readonly" ,
19+ Application : "readonly" ,
20+ Dialog : "readonly" ,
21+ FontConfig : "readonly" ,
22+ Hooks : "readonly" ,
23+ $ : "readonly" ,
24+ jQuery : "readonly"
25+ }
26+ } ,
27+ rules : {
28+ // Add any custom rules here
29+ }
30+ }
31+ ] ;
You can’t perform that action at this time.
0 commit comments