Skip to content

Commit 79c5953

Browse files
fix: removing rxdb from our main bundle, linting and test improvements (#433)
Signed-off-by: Francisco Javier Ribo Labrador <[email protected]> Co-authored-by: Roberto Carvajal <[email protected]>
1 parent 1723d46 commit 79c5953

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

+7577
-6565
lines changed

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 57 deletions
This file was deleted.

.yarn/install-state.gz

858 KB
Binary file not shown.

eslint.config.mjs

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import { defineConfig } from "eslint/config";
2+
import js from "@eslint/js";
3+
import tseslint from "@typescript-eslint/eslint-plugin";
4+
import tsParser from "@typescript-eslint/parser";
5+
6+
export const disabledRules = {
7+
"@typescript-eslint/ban-ts-comment": "off",
8+
"@typescript-eslint/no-explicit-any": "off",
9+
"@typescript-eslint/no-unused-vars": "off",
10+
"react/display-name": "off",
11+
"no-unused-vars": "off",
12+
"no-undef": "off",
13+
"@typescript-eslint/no-empty-object-type": "off",
14+
"@typescript-eslint/no-unused-vars": "off",
15+
"@typescript-eslint/explicit-function-return-type": "off",
16+
"@typescript-eslint/no-explicit-any": "off",
17+
"@typescript-eslint/no-unnecessary-type-assertion": "off",
18+
'@typescript-eslint/no-namespace': 'warn',
19+
'no-redeclare': 'warn'
20+
}
21+
22+
export default defineConfig([
23+
{
24+
ignores: [
25+
"dist",
26+
"node_modules",
27+
".eslintrc.js",
28+
"build",
29+
"coverage",
30+
'build/*',
31+
'build/**/*',
32+
'/**/*.d.ts',
33+
'integration-tests',
34+
'externals',
35+
'generated',
36+
"src/castor/protos"
37+
]
38+
},
39+
// Base JS config for all files
40+
{
41+
files: ["src/**/*.{js,mjs,cjs,ts}"],
42+
plugins: { js },
43+
rules: {
44+
...js.configs.recommended.rules,
45+
...disabledRules,
46+
"@typescript-eslint/no-require-imports": "off",
47+
},
48+
},
49+
// TypeScript specific configuration
50+
{
51+
files: ["src/**/*.ts"],
52+
languageOptions: {
53+
parser: tsParser,
54+
parserOptions: {
55+
ecmaVersion: "latest",
56+
sourceType: "module",
57+
project: "./tsconfig.json"
58+
},
59+
},
60+
plugins: {
61+
"@typescript-eslint": tseslint
62+
},
63+
rules: {
64+
...tseslint.configs.recommended.rules,
65+
...disabledRules,
66+
"@typescript-eslint/no-require-imports": "off",
67+
},
68+
}
69+
]);

integration-tests/node/assertions.cjs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ const runTests = (describe, test, assert, SDK) => {
5353
// ?? should be in Castor
5454
assert("PeerDID" in SDK);
5555
assert("PeerDIDService" in SDK);
56-
57-
// ?? should be in Pluto
58-
assert("Store" in SDK);
5956
});
6057

6158
describe("Modules", () => {

0 commit comments

Comments
 (0)