Skip to content

Commit d251ac4

Browse files
committed
cleanup
1 parent ffb6d99 commit d251ac4

File tree

5 files changed

+5893
-9658
lines changed

5 files changed

+5893
-9658
lines changed

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,24 @@ all: lint format test # build
22

33
.PHONY: init
44
init:
5-
rm yarn.lock
6-
yarn install
5+
npm install
76

87
.PHONY: test
98
test:
10-
yarn run testcafe chrome tests/
9+
npx testcafe chrome tests/
1110

1211
.PHONY: format
1312
format:
14-
yarn run prettier -w popout.js
13+
npx prettier -w popout.js
1514

1615
.PHONY: lint
1716
lint:
18-
yarn run eslint popout.js
17+
npx eslint popout.js
1918

2019
.PHONY:
2120
clean:
2221
rm node_modules
2322
rm dist/popout.dist.js
2423

2524
build: popout.js
26-
yarn run swc popout.js -o dist/popout.dist.js
25+
npx swc popout.js -o dist/popout.dist.js

eslint.config.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
];

0 commit comments

Comments
 (0)