forked from CrazyTim/spin-wheel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
106 lines (106 loc) · 3.38 KB
/
package.json
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
{
"name": "spin-wheel",
"version": "4.3.0",
"description": "An easy to use, themeable component for randomising choices and prizes.",
"keywords": [
"spinner",
"wheel",
"random",
"picker",
"prize",
"spinning",
"roulette",
"fortune"
],
"type": "module",
"scripts": {
"start": "node scripts/build.js -entryPoint=src/wheel.js -servePath=examples/themes/",
"test": "NODE_OPTIONS=--experimental-vm-modules npx jest --testPathPattern=src",
"lint": "eslint src examples scripts --fix",
"build": "npm run lint && npm run test && npm run build-esm && npm run build-iife",
"build-esm": "node scripts/build.js -entryPoint=src/wheel.js -esm",
"build-iife": "node scripts/build.js -entryPoint=src/wheel.js -iife"
},
"eslintConfig": {
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"sourceType": "module"
},
"rules": {
"brace-style": ["error"],
"comma-dangle": ["error", {"objects": "always-multiline", "arrays": "always-multiline"}],
"comma-spacing": ["error", {"before": false, "after": true}],
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
"curly": ["error", "multi-line", "consistent"],
"eqeqeq": ["error"],
"func-call-spacing": ["error"],
"guard-for-in": ["error"],
"keyword-spacing": ["error"],
"linebreak-style": ["error", "unix"],
"max-statements-per-line": ["error", {"max": 1}],
"new-cap": ["error"],
"no-alert": ["error"],
"no-cond-assign": ["error", "always"],
"no-console": ["error"],
"no-dupe-args": ["error"],
"no-dupe-keys": ["error"],
"no-else-return": ["error"],
"no-extend-native": ["error"],
"no-floating-decimal": ["error"],
"no-labels": ["error"],
"no-mixed-spaces-and-tabs": ["error"],
"no-multi-spaces": ["error", {"ignoreEOLComments": true}],
"no-multiple-empty-lines": ["error"],
"no-octal": ["error"],
"no-return-assign": ["error", "always"],
"no-sparse-arrays": ["error"],
"no-throw-literal": ["error"],
"no-trailing-spaces": ["error"],
"no-unneeded-ternary": ["error"],
"no-use-before-define": ["error", {"functions": false, "classes": false}],
"no-useless-concat": ["error"],
"no-var": ["error"],
"no-with": ["error"],
"object-property-newline": ["error", {"allowAllPropertiesOnSameLine": true}],
"prefer-const": ["error"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": ["error", "never"],
"valid-typeof": ["error"]
}
},
"jest": {
"verbose": true,
"injectGlobals": true,
"silent": false,
"testEnvironment": "jsdom",
"setupFiles": ["jest-canvas-mock"]
},
"repository": {
"type": "git",
"url": "git+https://github.com/CrazyTim/spin-wheel.git"
},
"author": "CrazyTim",
"license": "MIT",
"homepage": "https://github.com/CrazyTim/spin-wheel#readme",
"engines": {
"node": ">=14.8.0"
},
"devDependencies": {
"browser-sync": "^2.27.5",
"canvas": "^2.11.2",
"esbuild": "^0.15.11",
"eslint": "^8.25.0",
"jest": "^27.4.3",
"jest-canvas-mock": "^2.5.1"
}
}