-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
3,111 additions
and
6,244 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// eslint.config.mjs | ||
|
||
import { config as xylabsConfig, rulesConfig, importConfig } from '@xylabs/eslint-config-flat' | ||
|
||
export default [ | ||
{ | ||
ignores: ['.yarn/**', 'jest.config.cjs', '**/dist/**', 'dist', 'build/**', 'node_modules/**'], | ||
}, | ||
...xylabsConfig, | ||
{ | ||
rules: { | ||
'no-restricted-imports': [ | ||
'warn', | ||
{ | ||
paths: [ | ||
...rulesConfig.rules['no-restricted-imports'][1].paths, | ||
'@types/node', | ||
'@xyo-network/archivist', | ||
'@xyo-network/bridge', | ||
'@xyo-network/core', | ||
'@xyo-network/diviner', | ||
'@xyo-network/module', | ||
'@xyo-network/modules', | ||
'@xyo-network/node', | ||
'@xyo-network/sdk', | ||
'@xyo-network/plugins', | ||
'@xyo-network/protocol', | ||
'@xyo-network/sentinel', | ||
'@xyo-network/witness', | ||
'@xyo-network/core-payload-plugins', | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
{ | ||
...importConfig, | ||
rules: { | ||
...importConfig.rules, | ||
'import-x/no-cycle': ['warn', { maxDepth: 5 }] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"exclude": [".yarn", "dist", "**/dist", "./**/docs"], | ||
"extends": "@xylabs/tsconfig" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true | ||
}, | ||
"extends": "@xylabs/tsconfig-dom-jest", | ||
"include": ["**/*.spec.ts", "**/*.d.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import dotenv from 'dotenv' | ||
// eslint-disable-next-line import-x/no-internal-modules | ||
import { defineConfig } from 'vitest/config' | ||
|
||
dotenv.config() | ||
|
||
export default defineConfig({ | ||
test: { | ||
globals: true, | ||
setupFiles: ['./vitest.startup.ts'], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as matchers from 'jest-extended' | ||
import { expect, vi } from 'vitest' | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
(globalThis as any).jest = vi // replace jest with vi | ||
|
||
// Extend Vitest's expect with jest-extended matchers | ||
expect.extend(matchers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3' | ||
const config: XyTsupConfig = { | ||
compile: { | ||
browser: { src: true }, | ||
neutral: {}, | ||
node: {}, | ||
}, | ||
} | ||
|
||
export default config |
Oops, something went wrong.