Skip to content

Commit 7ae0c30

Browse files
committed
starting migration to pnpm
1 parent f77b6ba commit 7ae0c30

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4367
-9787
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ yarn-error.log
44
coverage/
55
t.py
66
*.tgz
7+
.tgz
8+
.DS_Store
9+
.vscode/
10+
package-lock.json
711

812
.next/
913
.git.

runtime/LICENSE renamed to LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright 2025 Austin1serb <[email protected]>
3+
Copyright (c) 2025 Serbyte Development LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of
66
this software and associated documentation files (the "Software"), to deal in

eslint.config.js

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// eslint.config.js - ESLint 9 flat-config, JS + CJS
2+
import js from '@eslint/js';
3+
import nodePlugin from 'eslint-plugin-node';
4+
5+
const nodeGlobals = {
6+
require: 'readonly',
7+
module: 'readonly',
8+
exports: 'readonly',
9+
__dirname: 'readonly',
10+
__filename: 'readonly',
11+
process: 'readonly',
12+
console: 'readonly',
13+
Buffer: 'readonly',
14+
setTimeout: 'readonly',
15+
setInterval: 'readonly',
16+
clearTimeout: 'readonly',
17+
clearInterval: 'readonly',
18+
};
19+
20+
const browserGlobals = {
21+
window: 'readonly',
22+
document: 'readonly',
23+
navigator: 'readonly',
24+
requestAnimationFrame: 'readonly',
25+
cancelAnimationFrame: 'readonly',
26+
setTimeout: 'readonly',
27+
setInterval: 'readonly',
28+
clearTimeout: 'readonly',
29+
clearInterval: 'readonly',
30+
console: 'readonly',
31+
};
32+
33+
export default [
34+
/* 1 - never lint generated / vendor files */
35+
{
36+
ignores: [
37+
'**/node_modules/**',
38+
'**/dist/**',
39+
'**/.next/**',
40+
'**/*.test.*',
41+
'**/*.spec.*',
42+
'tests/**',
43+
'eslint.config.js',
44+
],
45+
},
46+
47+
/* 2 - baseline rules */
48+
js.configs.recommended,
49+
50+
/* 3 - CommonJS (*.cjs) */
51+
{
52+
files: ['**/*.cjs'],
53+
plugins: { node: nodePlugin },
54+
languageOptions: {
55+
ecmaVersion: 'latest',
56+
sourceType: 'script',
57+
globals: nodeGlobals,
58+
},
59+
rules: {
60+
'node/no-unsupported-features/es-syntax': 'off',
61+
},
62+
},
63+
64+
/* 4 - ES-module / browser (*.js) */
65+
{
66+
files: ['**/*.js'],
67+
plugins: { node: nodePlugin },
68+
languageOptions: {
69+
ecmaVersion: 'latest',
70+
sourceType: 'module',
71+
globals: { ...nodeGlobals, ...browserGlobals },
72+
},
73+
rules: {
74+
'node/no-unsupported-features/es-syntax': 'off',
75+
},
76+
},
77+
];

0 commit comments

Comments
 (0)