Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions apps/example/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// eslint.config.js
import wcandillon from "eslint-config-react-native-wcandillon";
import prettierPlugin from "eslint-plugin-prettier";

export default [
{
Expand All @@ -9,9 +8,6 @@ export default [
...wcandillon,
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
prettier: prettierPlugin
},
languageOptions: {
parserOptions: {
ecmaVersion: "latest",
Expand All @@ -30,4 +26,4 @@ export default [
]
}
}
];
];
4 changes: 2 additions & 2 deletions apps/example/macos/Podfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
ws_dir = Pathname.new(__dir__)
ws_dir = ws_dir.parent until
File.exist?("#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb") ||
File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
ws_dir.expand_path.to_s == '/'
require "#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb"
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"

workspace 'Example.xcworkspace'

Expand Down
2 changes: 1 addition & 1 deletion apps/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@webgpu/types": "0.1.51",
"babel-jest": "^29.6.3",
"eslint": "9.35.0",
"eslint-config-react-native-wcandillon": "4.0.0",
"eslint-config-react-native-wcandillon": "4.0.1",
"eslint-plugin-prettier": "^5.4.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
Expand Down
1 change: 0 additions & 1 deletion apps/example/src/ShadowMapping/Shaders.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
export const vertexShadowWGSL = /* wgsl */ `struct Scene {
lightViewProjMatrix: mat4x4f,
cameraViewProjMatrix: mat4x4f,
Expand Down
4 changes: 2 additions & 2 deletions apps/example/src/ThreeJS/components/Matrix4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ type Transformations = {
[Name in Transform3dName]: Name extends "matrix"
? Matrix4
: Name extends "translate"
? Vec3 | Vec2
: number;
? Vec3 | Vec2
: number;
};

type Transform3d =
Expand Down
2 changes: 1 addition & 1 deletion apps/example/src/ThreeJS/components/OrbitControl.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable react-hooks/exhaustive-deps */
/* eslint-disable prefer-destructuring */
/* eslint-disable max-len */

import type { Matrix4, OrthographicCamera, PerspectiveCamera } from "three";
import { Quaternion, Spherical, Vector2, Vector3 } from "three";
import type { GestureResponderEvent, LayoutChangeEvent } from "react-native";
Expand Down
4 changes: 0 additions & 4 deletions packages/webgpu/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// eslint.config.js
import wcandillon from "eslint-config-react-native-wcandillon";
import prettierPlugin from "eslint-plugin-prettier";

export default [
{
Expand All @@ -9,9 +8,6 @@ export default [
...wcandillon,
{
files: ["**/*.{js,jsx,ts,tsx}"],
plugins: {
prettier: prettierPlugin
},
languageOptions: {
parserOptions: {
ecmaVersion: "latest",
Expand Down
4 changes: 1 addition & 3 deletions packages/webgpu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@
"@types/react": "^18.2.44",
"@types/seedrandom": "^3.0.8",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"@webgpu/types": "0.1.51",
"clang-format": "^1.8.0",
"del-cli": "^5.1.0",
"eslint": "9.35.0",
"eslint-config-react-native-wcandillon": "4.0.0",
"eslint-config-react-native-wcandillon": "4.0.1",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-jest": "^28.8.2",
"eslint-plugin-prettier": "^5.2.1",
Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/scripts/build/dawn-configuration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
import { checkDuplicateHeaders } from "../codegen/util";

import { $, checkFileExists, runAsync } from "./util";
Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/scripts/build/dawn.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
/* eslint-disable camelcase */

import { chdir } from "process";
Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/scripts/build/download-artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
import fs from "fs";
import path from "path";

Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/scripts/codegen/Descriptors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
/* eslint-disable prefer-destructuring */
import type {
InterfaceDeclaration,
Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/scripts/codegen/templates/HybridObject.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
import type { InterfaceDeclaration } from "ts-morph";
import _ from "lodash";

Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/src/__tests__/setup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/no-explicit-any */

import fs from "fs";
Expand Down
1 change: 0 additions & 1 deletion packages/webgpu/src/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ type Unsubscribe = () => void;
export const warnIfNotHardwareAccelerated = (adapter: GPUAdapter) => {
if (adapter.isFallbackAdapter) {
console.warn(
// eslint-disable-next-line max-len
"GPUAdapter is not hardware accelerated. This is common on Android emulators. Rendering will be slow. Some features may be unavailable.",
);
}
Expand Down
145 changes: 70 additions & 75 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,13 @@ __metadata:
languageName: node
linkType: hard

"@pkgr/core@npm:^0.2.9":
version: 0.2.9
resolution: "@pkgr/core@npm:0.2.9"
checksum: bb2fb86977d63f836f8f5b09015d74e6af6488f7a411dcd2bfdca79d76b5a681a9112f41c45bdf88a9069f049718efc6f3900d7f1de66a2ec966068308ae517f
languageName: node
linkType: hard

"@puppeteer/browsers@npm:2.3.0":
version: 2.3.0
resolution: "@puppeteer/browsers@npm:2.3.0"
Expand Down Expand Up @@ -4233,27 +4240,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^8.4.0":
version: 8.32.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.32.0"
dependencies:
"@eslint-community/regexpp": ^4.10.0
"@typescript-eslint/scope-manager": 8.32.0
"@typescript-eslint/type-utils": 8.32.0
"@typescript-eslint/utils": 8.32.0
"@typescript-eslint/visitor-keys": 8.32.0
graphemer: ^1.4.0
ignore: ^5.3.1
natural-compare: ^1.4.0
ts-api-utils: ^2.1.0
peerDependencies:
"@typescript-eslint/parser": ^8.0.0 || ^8.0.0-alpha.0
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.9.0"
checksum: 64fc7e08b3cfadfc3aa0036b88fbd195b4faef4f77891bd3bbdb43ea13de6c4e71f816580b5b6fe1324f6b5045408dee651059de424c850d0be93d25c8fcc152
languageName: node
linkType: hard

"@typescript-eslint/eslint-plugin@npm:^8.44.0":
version: 8.44.0
resolution: "@typescript-eslint/eslint-plugin@npm:8.44.0"
Expand Down Expand Up @@ -4310,22 +4296,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^8.4.0":
version: 8.32.0
resolution: "@typescript-eslint/parser@npm:8.32.0"
dependencies:
"@typescript-eslint/scope-manager": 8.32.0
"@typescript-eslint/types": 8.32.0
"@typescript-eslint/typescript-estree": 8.32.0
"@typescript-eslint/visitor-keys": 8.32.0
debug: ^4.3.4
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.9.0"
checksum: 4409bae9a84fcc74fc2edf34167a5a3b4bb6a28419207a7fbf8ad75418eae7c09810648d9831193bd5a841d3058fb146640afce2c51bb204e20e51e7252a1d63
languageName: node
linkType: hard

"@typescript-eslint/parser@npm:^8.44.0":
version: 8.44.0
resolution: "@typescript-eslint/parser@npm:8.44.0"
Expand Down Expand Up @@ -4438,21 +4408,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:8.32.0":
version: 8.32.0
resolution: "@typescript-eslint/type-utils@npm:8.32.0"
dependencies:
"@typescript-eslint/typescript-estree": 8.32.0
"@typescript-eslint/utils": 8.32.0
debug: ^4.3.4
ts-api-utils: ^2.1.0
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.9.0"
checksum: 4de285e2ccf814d71a6ef47ab815e8e5e186cbfa1a5a8deb3fe8bb4e0a8e40f632ac2c121b39d5c05d7fc08d9725e969f86c134e54d7c916551cca052f18bcc5
languageName: node
linkType: hard

"@typescript-eslint/type-utils@npm:8.44.0":
version: 8.44.0
resolution: "@typescript-eslint/type-utils@npm:8.44.0"
Expand Down Expand Up @@ -4604,21 +4559,6 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.32.0, @typescript-eslint/utils@npm:^6.0.0 || ^7.0.0 || ^8.0.0":
version: 8.32.0
resolution: "@typescript-eslint/utils@npm:8.32.0"
dependencies:
"@eslint-community/eslint-utils": ^4.7.0
"@typescript-eslint/scope-manager": 8.32.0
"@typescript-eslint/types": 8.32.0
"@typescript-eslint/typescript-estree": 8.32.0
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.9.0"
checksum: 4894f06956dbf9bbb67ada849733cc82f93ad181d00e072297eb5770b4915d2e358c7a72cd0b5fb7279f56fd91bfe18a1008bbe538493e387039f216a0a27a9b
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:8.44.0":
version: 8.44.0
resolution: "@typescript-eslint/utils@npm:8.44.0"
Expand All @@ -4634,6 +4574,21 @@ __metadata:
languageName: node
linkType: hard

"@typescript-eslint/utils@npm:^6.0.0 || ^7.0.0 || ^8.0.0":
version: 8.32.0
resolution: "@typescript-eslint/utils@npm:8.32.0"
dependencies:
"@eslint-community/eslint-utils": ^4.7.0
"@typescript-eslint/scope-manager": 8.32.0
"@typescript-eslint/types": 8.32.0
"@typescript-eslint/typescript-estree": 8.32.0
peerDependencies:
eslint: ^8.57.0 || ^9.0.0
typescript: ">=4.8.4 <5.9.0"
checksum: 4894f06956dbf9bbb67ada849733cc82f93ad181d00e072297eb5770b4915d2e358c7a72cd0b5fb7279f56fd91bfe18a1008bbe538493e387039f216a0a27a9b
languageName: node
linkType: hard

"@typescript-eslint/visitor-keys@npm:5.62.0":
version: 5.62.0
resolution: "@typescript-eslint/visitor-keys@npm:5.62.0"
Expand Down Expand Up @@ -4843,7 +4798,7 @@ __metadata:
"@webgpu/types": 0.1.51
babel-jest: ^29.6.3
eslint: 9.35.0
eslint-config-react-native-wcandillon: 4.0.0
eslint-config-react-native-wcandillon: 4.0.1
eslint-plugin-prettier: ^5.4.0
fast-text-encoding: ^1.0.6
jest: ^29.6.3
Expand Down Expand Up @@ -7372,6 +7327,17 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-prettier@npm:^10.1.8":
version: 10.1.8
resolution: "eslint-config-prettier@npm:10.1.8"
peerDependencies:
eslint: ">=7.0.0"
bin:
eslint-config-prettier: bin/cli.js
checksum: 9140e19f78f0dbc888b160bb72b85f8043bada7b12a548faa56cea0ba74f8ef16653250ffd014d85d9a376a88c4941c96a3cdc9d39a07eb3def6967166635bd8
languageName: node
linkType: hard

"eslint-config-prettier@npm:^8.5.0":
version: 8.10.0
resolution: "eslint-config-prettier@npm:8.10.0"
Expand All @@ -7383,22 +7349,24 @@ __metadata:
languageName: node
linkType: hard

"eslint-config-react-native-wcandillon@npm:4.0.0":
version: 4.0.0
resolution: "eslint-config-react-native-wcandillon@npm:4.0.0"
"eslint-config-react-native-wcandillon@npm:4.0.1":
version: 4.0.1
resolution: "eslint-config-react-native-wcandillon@npm:4.0.1"
dependencies:
"@react-native-community/eslint-config": ^3.2.0
"@typescript-eslint/eslint-plugin": ^8.44.0
"@typescript-eslint/parser": ^8.44.0
eslint-config-prettier: ^10.1.8
eslint-import-resolver-typescript: ^3.6.3
eslint-plugin-import: ^2.32.0
eslint-plugin-jest: ^28.9.0
eslint-plugin-prettier: ^5.5.4
eslint-plugin-react: ^7.37.2
eslint-plugin-react-hooks: ^5.0.0
eslint-plugin-react-native: ^4.1.0
prettier: ^3.6.2
typescript: ^5.9.2
checksum: 8de869f1867a146251078adc6266f9e3cf11fa62af0ca32501436e66f690936cdb0d2ec5834833430743f2b0731868c8764bdffe76231c0e5e35ccfd13c683ed
checksum: 880e2460fdb1e3606276c8d2f2f8634d7dfeea7e1bacb35f676c4434c6894767b5389f1e4b4eec1915d590f729182c5d2e253e41cdbf08490d30577b5e062c77
languageName: node
linkType: hard

Expand Down Expand Up @@ -7609,6 +7577,26 @@ __metadata:
languageName: node
linkType: hard

"eslint-plugin-prettier@npm:^5.5.4":
version: 5.5.4
resolution: "eslint-plugin-prettier@npm:5.5.4"
dependencies:
prettier-linter-helpers: ^1.0.0
synckit: ^0.11.7
peerDependencies:
"@types/eslint": ">=8.0.0"
eslint: ">=8.0.0"
eslint-config-prettier: ">= 7.0.0 <10.0.0 || >=10.1.0"
prettier: ">=3.0.0"
peerDependenciesMeta:
"@types/eslint":
optional: true
eslint-config-prettier:
optional: true
checksum: 0dd05ed85018ab0e98da80325b7bd4c4ab6dd684398f1270a7c8cf4261df714dd4502ba4c7f85f651aade9989da0a7d2adda03af8873b73b52014141abf385de
languageName: node
linkType: hard

"eslint-plugin-react-hooks@npm:^4.6.0":
version: 4.6.2
resolution: "eslint-plugin-react-hooks@npm:4.6.2"
Expand Down Expand Up @@ -12720,13 +12708,11 @@ __metadata:
"@types/react": ^18.2.44
"@types/seedrandom": ^3.0.8
"@types/ws": ^8.5.10
"@typescript-eslint/eslint-plugin": ^8.4.0
"@typescript-eslint/parser": ^8.4.0
"@webgpu/types": 0.1.51
clang-format: ^1.8.0
del-cli: ^5.1.0
eslint: 9.35.0
eslint-config-react-native-wcandillon: 4.0.0
eslint-config-react-native-wcandillon: 4.0.1
eslint-plugin-import: 2.32.0
eslint-plugin-jest: ^28.8.2
eslint-plugin-prettier: ^5.2.1
Expand Down Expand Up @@ -14069,6 +14055,15 @@ __metadata:
languageName: node
linkType: hard

"synckit@npm:^0.11.7":
version: 0.11.11
resolution: "synckit@npm:0.11.11"
dependencies:
"@pkgr/core": ^0.2.9
checksum: bc896d4320525501495654766e6b0aa394e522476ea0547af603bdd9fd7e9b65dcd6e3a237bc7eb3ab7e196376712f228bf1bf6ed1e1809f4b32dc9baf7ad413
languageName: node
linkType: hard

"tar-fs@npm:^3.0.6":
version: 3.0.8
resolution: "tar-fs@npm:3.0.8"
Expand Down