-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use vite/vitest in place of esbuild/karma+jasmine
Neuroglancer can now be used as a regular NPM dependency with vite, parcel, or webpack as the bundler (but unfortunately not esbuild due to evanw/esbuild#795), and can be installed as a dependency via a git URL. Node.js import/export conditions are now used to enable/disable layer types and datasources, which can be configured by dependent projects rather than when Neuroglancer itself is built/published. The Python tests accept a `--build-client` option to run the dev server automatically rather than requiring a pre-built Python Neuroglancer client.
- Loading branch information
Showing
558 changed files
with
41,983 additions
and
16,613 deletions.
There are no files selected for viewing
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,67 @@ | ||
root: true | ||
parser: "@typescript-eslint/parser" | ||
plugins: | ||
- "@typescript-eslint" | ||
- "import" | ||
settings: | ||
"import/parsers": | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
"import/resolver": | ||
"typescript": | ||
"node": | ||
extends: | ||
- "eslint:recommended" | ||
- "plugin:@typescript-eslint/eslint-recommended" | ||
- "plugin:@typescript-eslint/recommended" | ||
- "plugin:import/recommended" | ||
rules: | ||
"@typescript-eslint/no-explicit-any": "off" | ||
"@typescript-eslint/explicit-module-boundary-types": "off" | ||
"@typescript-eslint/no-non-null-assertion": "off" | ||
"@typescript-eslint/no-inferrable-types": "off" | ||
"@typescript-eslint/no-this-alias": "off" | ||
"@typescript-eslint/no-empty-function": "off" | ||
"@typescript-eslint/no-empty-interface": "off" | ||
"prefer-const": | ||
- "error" | ||
- destructuring: "all" | ||
"no-constant-condition": "off" | ||
"@typescript-eslint/no-unused-vars": | ||
- "error" | ||
- argsIgnorePattern: "^_" | ||
ignoreRestSiblings: true | ||
"@typescript-eslint/ban-types": | ||
- "error" | ||
- types: | ||
# unban Function | ||
"Function": false | ||
extendDefaults: true | ||
"no-unsafe-finally": "off" | ||
"require-yield": "off" | ||
"no-inner-declarations": "off" | ||
"import/no-named-as-default-member": "off" | ||
"import/no-cycle": "error" | ||
"@typescript-eslint/consistent-type-imports": "error" | ||
"import/no-unresolved": "error" | ||
"import/no-extraneous-dependencies": "error" | ||
"import/first": "error" | ||
"import/order": | ||
- "error" | ||
- groups: | ||
- "builtin" | ||
- "external" | ||
- "internal" | ||
alphabetize: | ||
order: "asc" | ||
orderImportKind: "asc" | ||
overrides: | ||
- files: | ||
- "src/**/*" | ||
rules: | ||
"no-restricted-imports": | ||
- "error" | ||
- patterns: | ||
- group: | ||
- "./" | ||
- "../" | ||
message: "Relative imports are not allowed." |
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 |
---|---|---|
|
@@ -2,3 +2,6 @@ | |
/python/ | ||
/third_party/jpgjs/jpg.js | ||
/testdata/*.json | ||
.parcel-cache | ||
dist | ||
/lib |
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 @@ | ||
overrides: | ||
- files: ".parcelrc" | ||
options: | ||
parser: "json5" |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.