Skip to content

Commit

Permalink
Fix extraneous dependency linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir committed Nov 13, 2024
1 parent 7d97fdb commit 9cdfc85
Show file tree
Hide file tree
Showing 23 changed files with 166 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
9 changes: 9 additions & 0 deletions example/multi-user-3d-web-experience/client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
9 changes: 9 additions & 0 deletions example/multi-user-3d-web-experience/server/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
9 changes: 9 additions & 0 deletions example/web-avatar-editor/client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
9 changes: 9 additions & 0 deletions example/web-avatar-editor/server/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../../"]}]
}
}
9 changes: 9 additions & 0 deletions packages/3d-web-avatar-editor-ui/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-avatar-editor-ui/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down
9 changes: 9 additions & 0 deletions packages/3d-web-avatar-selection-ui/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-avatar-selection-ui/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down
9 changes: 9 additions & 0 deletions packages/3d-web-avatar/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-avatar/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down
9 changes: 9 additions & 0 deletions packages/3d-web-client-core/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
9 changes: 9 additions & 0 deletions packages/3d-web-experience-client/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
9 changes: 9 additions & 0 deletions packages/3d-web-experience-server/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
9 changes: 9 additions & 0 deletions packages/3d-web-standalone-avatar-editor/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-standalone-avatar-editor/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down
9 changes: 9 additions & 0 deletions packages/3d-web-text-chat/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-text-chat/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down
9 changes: 9 additions & 0 deletions packages/3d-web-user-networking/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
9 changes: 9 additions & 0 deletions packages/3d-web-voice-chat/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": ["../../.eslintrc"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true, "packageDir": [".", "../../"]}]
}
}
5 changes: 3 additions & 2 deletions packages/3d-web-voice-chat/build.ts
Original file line number Diff line number Diff line change
@@ -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,
}),
Expand Down

0 comments on commit 9cdfc85

Please sign in to comment.