diff --git a/.eslintrc b/.eslintrc index de7b38cc..059d2985 100644 --- a/.eslintrc +++ b/.eslintrc @@ -12,9 +12,9 @@ "plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript", - 'plugin:react/recommended', - 'plugin:react/jsx-runtime', - 'plugin:react-hooks/recommended' + "plugin:react/recommended", + "plugin:react/jsx-runtime", + "plugin:react-hooks/recommended" ], "plugins": ["@typescript-eslint", "prettier"], "rules": { @@ -34,7 +34,7 @@ "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-empty-interface": "off", "@typescript-eslint/no-unused-expressions": "off", - "import/no-extraneous-dependencies": "error", + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}], "import/extensions": "off" }, "overrides": [ diff --git a/example/local-only-multi-user-3d-web-experience/client/.eslintrc b/example/local-only-multi-user-3d-web-experience/client/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/local-only-multi-user-3d-web-experience/client/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/example/local-only-multi-user-3d-web-experience/server/.eslintrc b/example/local-only-multi-user-3d-web-experience/server/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/local-only-multi-user-3d-web-experience/server/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/example/multi-user-3d-web-experience/client/.eslintrc b/example/multi-user-3d-web-experience/client/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/multi-user-3d-web-experience/client/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/example/multi-user-3d-web-experience/server/.eslintrc b/example/multi-user-3d-web-experience/server/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/multi-user-3d-web-experience/server/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/example/web-avatar-editor/client/.eslintrc b/example/web-avatar-editor/client/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/web-avatar-editor/client/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/example/web-avatar-editor/server/.eslintrc b/example/web-avatar-editor/server/.eslintrc new file mode 100644 index 00000000..24f7595b --- /dev/null +++ b/example/web-avatar-editor/server/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}] + } +} diff --git a/packages/3d-web-avatar-editor-ui/.eslintrc b/packages/3d-web-avatar-editor-ui/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-avatar-editor-ui/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-avatar-editor-ui/build.ts b/packages/3d-web-avatar-editor-ui/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-avatar-editor-ui/build.ts +++ b/packages/3d-web-avatar-editor-ui/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }), diff --git a/packages/3d-web-avatar-selection-ui/.eslintrc b/packages/3d-web-avatar-selection-ui/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-avatar-selection-ui/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-avatar-selection-ui/build.ts b/packages/3d-web-avatar-selection-ui/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-avatar-selection-ui/build.ts +++ b/packages/3d-web-avatar-selection-ui/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }), diff --git a/packages/3d-web-avatar/.eslintrc b/packages/3d-web-avatar/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-avatar/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-avatar/build.ts b/packages/3d-web-avatar/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-avatar/build.ts +++ b/packages/3d-web-avatar/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }), diff --git a/packages/3d-web-client-core/.eslintrc b/packages/3d-web-client-core/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-client-core/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-experience-client/.eslintrc b/packages/3d-web-experience-client/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-experience-client/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-experience-server/.eslintrc b/packages/3d-web-experience-server/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-experience-server/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-standalone-avatar-editor/.eslintrc b/packages/3d-web-standalone-avatar-editor/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-standalone-avatar-editor/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-standalone-avatar-editor/build.ts b/packages/3d-web-standalone-avatar-editor/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-standalone-avatar-editor/build.ts +++ b/packages/3d-web-standalone-avatar-editor/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }), diff --git a/packages/3d-web-text-chat/.eslintrc b/packages/3d-web-text-chat/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-text-chat/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-text-chat/build.ts b/packages/3d-web-text-chat/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-text-chat/build.ts +++ b/packages/3d-web-text-chat/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }), diff --git a/packages/3d-web-user-networking/.eslintrc b/packages/3d-web-user-networking/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-user-networking/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-voice-chat/.eslintrc b/packages/3d-web-voice-chat/.eslintrc new file mode 100644 index 00000000..3ba1f521 --- /dev/null +++ b/packages/3d-web-voice-chat/.eslintrc @@ -0,0 +1,9 @@ +{ + "extends": ["../../.eslintrc"], + "parserOptions": { + "project": "./tsconfig.json" + }, + "rules": { + "import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}] + } +} diff --git a/packages/3d-web-voice-chat/build.ts b/packages/3d-web-voice-chat/build.ts index 6e3aa3be..723e559b 100644 --- a/packages/3d-web-voice-chat/build.ts +++ b/packages/3d-web-voice-chat/build.ts @@ -1,10 +1,11 @@ -import cssModulesPlugin from "esbuild-css-modules-plugin"; +// @ts-ignore +import CssModulesPlugin from "esbuild-css-modules-plugin"; import { handleLibraryBuild } from "../../utils/build-library"; handleLibraryBuild({ plugins: [ - cssModulesPlugin({ + CssModulesPlugin({ inject: true, emitDeclarationFile: true, }),