|
5 | 5 | "license": "MIT", |
6 | 6 | "repository": "sindresorhus/globals", |
7 | 7 | "funding": "https://github.com/sponsors/sindresorhus", |
8 | | - "author": { |
9 | | - "name": "Sindre Sorhus", |
10 | | - |
11 | | - "url": "https://sindresorhus.com" |
12 | | - }, |
| 8 | + "author": "Sindre Sorhus <[email protected]> (https://sindresorhus.com)", |
13 | 9 | "sideEffects": false, |
14 | 10 | "engines": { |
15 | 11 | "node": ">=18" |
16 | 12 | }, |
17 | 13 | "scripts": { |
18 | | - "test": "npm run build && xo && ava && tsd", |
| 14 | + "test": "npm run build && xo && node --test", |
19 | 15 | "prepare": "npm run build", |
20 | 16 | "update": "node scripts/update.mjs", |
21 | 17 | "update:browser": "node scripts/update.mjs --job=browser", |
|
36 | 32 | "build:types": "node scripts/generate-types.mjs" |
37 | 33 | }, |
38 | 34 | "files": [ |
| 35 | + "globals.json", |
39 | 36 | "index.js", |
40 | | - "index.d.ts", |
41 | | - "globals.json" |
| 37 | + "index.d.ts" |
42 | 38 | ], |
43 | 39 | "keywords": [ |
44 | | - "globals", |
45 | 40 | "global", |
46 | 41 | "identifiers", |
47 | 42 | "variables", |
|
51 | 46 | "environments" |
52 | 47 | ], |
53 | 48 | "devDependencies": { |
54 | | - "@vitest/eslint-plugin": "^1.1.44", |
55 | | - "ava": "^6.3.0", |
56 | | - "cheerio": "^1.0.0", |
57 | | - "eslint-plugin-jest": "^28.11.0", |
58 | | - "get-port": "^7.1.0", |
59 | | - "is-identifier": "^1.0.1", |
60 | | - "nano-spawn": "^0.2.0", |
61 | | - "npm-run-all2": "^8.0.1", |
| 49 | + "@vitest/eslint-plugin": "^1.6.27", |
| 50 | + "cheerio": "^1.2.0", |
| 51 | + "eslint-plugin-jest": "^29.16.6", |
| 52 | + "get-port": "^7.2.0", |
| 53 | + "is-identifier": "^1.1.0", |
| 54 | + "nano-spawn": "^2.1.0", |
| 55 | + "npm-run-all2": "^9.0.3", |
62 | 56 | "outdent": "^0.8.0", |
63 | 57 | "puppeteer": "^25.16.0", |
64 | | - "shelljs": "^0.9.2", |
65 | | - "tsd": "^0.32.0", |
66 | | - "type-fest": "^4.41.0", |
67 | | - "xo": "^0.60.0" |
| 58 | + "shelljs": "^0.10.0", |
| 59 | + "type-fest": "^5.10.0", |
| 60 | + "xo": "^5.0.1" |
68 | 61 | }, |
69 | | - "xo": { |
70 | | - "rules": { |
71 | | - "unicorn/prefer-module": "off" |
| 62 | + "xo": [ |
| 63 | + { |
| 64 | + "ignores": [ |
| 65 | + "scripts/browser/index.html" |
| 66 | + ] |
| 67 | + }, |
| 68 | + { |
| 69 | + "rules": { |
| 70 | + "unicorn/prefer-module": "off" |
| 71 | + } |
72 | 72 | }, |
73 | | - "overrides": [ |
74 | | - { |
75 | | - "files": [ |
76 | | - "data/*.mjs" |
77 | | - ], |
78 | | - "rules": { |
79 | | - "import/no-anonymous-default-export": "off", |
80 | | - "camelcase": "off", |
81 | | - "unicorn/filename-case": [ |
82 | | - "error", |
83 | | - { |
84 | | - "cases": { |
85 | | - "camelCase": true, |
86 | | - "kebabCase": true |
87 | | - } |
| 73 | + { |
| 74 | + "files": [ |
| 75 | + "**/package.json" |
| 76 | + ], |
| 77 | + "rules": { |
| 78 | + "package-json/prefer-type-module": "off", |
| 79 | + "package-json/require-entry-point": "off" |
| 80 | + } |
| 81 | + }, |
| 82 | + { |
| 83 | + "files": [ |
| 84 | + "data/*.mjs" |
| 85 | + ], |
| 86 | + "rules": { |
| 87 | + "import-x/no-anonymous-default-export": "off", |
| 88 | + "camelcase": "off", |
| 89 | + "unicorn/filename-case": [ |
| 90 | + "error", |
| 91 | + { |
| 92 | + "cases": { |
| 93 | + "camelCase": true, |
| 94 | + "kebabCase": true |
88 | 95 | } |
89 | | - ] |
90 | | - } |
91 | | - }, |
92 | | - { |
93 | | - "files": [ |
94 | | - "scripts/*.mjs" |
95 | | - ], |
96 | | - "rules": { |
97 | | - "n/no-unsupported-features/node-builtins": "off" |
| 96 | + } |
| 97 | + ] |
| 98 | + } |
| 99 | + }, |
| 100 | + { |
| 101 | + "files": [ |
| 102 | + "scripts/*.mjs" |
| 103 | + ], |
| 104 | + "rules": { |
| 105 | + "n/no-unsupported-features/node-builtins": "off" |
| 106 | + } |
| 107 | + }, |
| 108 | + { |
| 109 | + "files": [ |
| 110 | + "scripts/browser/assets/**/*.mjs" |
| 111 | + ], |
| 112 | + "languageOptions": { |
| 113 | + "globals": { |
| 114 | + "AudioContext": "readonly", |
| 115 | + "AudioWorkletNode": "readonly", |
| 116 | + "AudioWorkletProcessor": "readonly", |
| 117 | + "CSS": "readonly", |
| 118 | + "alert": "readonly", |
| 119 | + "document": "readonly", |
| 120 | + "registerProcessor": "readonly", |
| 121 | + "SharedWorker": "readonly", |
| 122 | + "Worker": "readonly" |
98 | 123 | } |
99 | 124 | }, |
100 | | - { |
101 | | - "files": [ |
102 | | - "scripts/browser/assets/**/*.mjs" |
103 | | - ], |
104 | | - "envs": [ |
105 | | - "browser", |
106 | | - "worker", |
107 | | - "serviceworker" |
108 | | - ], |
109 | | - "rules": { |
110 | | - "n/no-unsupported-features/node-builtins": "off", |
111 | | - "unicorn/prefer-add-event-listener": "off" |
112 | | - } |
| 125 | + "rules": { |
| 126 | + "n/no-unsupported-features/node-builtins": "off", |
| 127 | + "unicorn/prefer-add-event-listener": "off", |
| 128 | + "unicorn/no-global-object-property-assignment": "off" |
113 | 129 | } |
114 | | - ] |
115 | | - }, |
116 | | - "tsd": { |
117 | | - "compilerOptions": { |
118 | | - "resolveJsonModule": true |
119 | 130 | } |
120 | | - } |
| 131 | + ] |
121 | 132 | } |
0 commit comments