Skip to content

Commit 4b776ab

Browse files
authored
chore(πŸ’„): minor linting improvements (#265)
1 parent 377208e commit 4b776ab

File tree

16 files changed

+78
-101
lines changed

16 files changed

+78
-101
lines changed

β€Žapps/example/eslint.config.mjsβ€Ž

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// eslint.config.js
22
import wcandillon from "eslint-config-react-native-wcandillon";
3-
import prettierPlugin from "eslint-plugin-prettier";
43

54
export default [
65
{
@@ -9,9 +8,6 @@ export default [
98
...wcandillon,
109
{
1110
files: ["**/*.{js,jsx,ts,tsx}"],
12-
plugins: {
13-
prettier: prettierPlugin
14-
},
1511
languageOptions: {
1612
parserOptions: {
1713
ecmaVersion: "latest",
@@ -30,4 +26,4 @@ export default [
3026
]
3127
}
3228
}
33-
];
29+
];

β€Žapps/example/macos/Podfileβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
ws_dir = Pathname.new(__dir__)
22
ws_dir = ws_dir.parent until
3-
File.exist?("#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb") ||
3+
File.exist?("#{ws_dir}/node_modules/react-native-test-app/test_app.rb") ||
44
ws_dir.expand_path.to_s == '/'
5-
require "#{ws_dir}/node_modules/react-native-test-app/macos/test_app.rb"
5+
require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
66

77
workspace 'Example.xcworkspace'
88

β€Žapps/example/package.jsonβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@webgpu/types": "0.1.51",
5454
"babel-jest": "^29.6.3",
5555
"eslint": "9.35.0",
56-
"eslint-config-react-native-wcandillon": "4.0.0",
56+
"eslint-config-react-native-wcandillon": "4.0.1",
5757
"eslint-plugin-prettier": "^5.4.0",
5858
"jest": "^29.6.3",
5959
"prettier": "2.8.8",

β€Žapps/example/src/ShadowMapping/Shaders.tsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
export const vertexShadowWGSL = /* wgsl */ `struct Scene {
32
lightViewProjMatrix: mat4x4f,
43
cameraViewProjMatrix: mat4x4f,

β€Žapps/example/src/ThreeJS/components/Matrix4.tsβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ type Transformations = {
5656
[Name in Transform3dName]: Name extends "matrix"
5757
? Matrix4
5858
: Name extends "translate"
59-
? Vec3 | Vec2
60-
: number;
59+
? Vec3 | Vec2
60+
: number;
6161
};
6262

6363
type Transform3d =

β€Žapps/example/src/ThreeJS/components/OrbitControl.tsxβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable react-hooks/exhaustive-deps */
22
/* eslint-disable prefer-destructuring */
3-
/* eslint-disable max-len */
3+
44
import type { Matrix4, OrthographicCamera, PerspectiveCamera } from "three";
55
import { Quaternion, Spherical, Vector2, Vector3 } from "three";
66
import type { GestureResponderEvent, LayoutChangeEvent } from "react-native";

β€Žpackages/webgpu/eslint.config.mjsβ€Ž

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// eslint.config.js
22
import wcandillon from "eslint-config-react-native-wcandillon";
3-
import prettierPlugin from "eslint-plugin-prettier";
43

54
export default [
65
{
@@ -9,9 +8,6 @@ export default [
98
...wcandillon,
109
{
1110
files: ["**/*.{js,jsx,ts,tsx}"],
12-
plugins: {
13-
prettier: prettierPlugin
14-
},
1511
languageOptions: {
1612
parserOptions: {
1713
ecmaVersion: "latest",

β€Žpackages/webgpu/package.jsonβ€Ž

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,11 @@
6363
"@types/react": "^18.2.44",
6464
"@types/seedrandom": "^3.0.8",
6565
"@types/ws": "^8.5.10",
66-
"@typescript-eslint/eslint-plugin": "^8.4.0",
67-
"@typescript-eslint/parser": "^8.4.0",
6866
"@webgpu/types": "0.1.51",
6967
"clang-format": "^1.8.0",
7068
"del-cli": "^5.1.0",
7169
"eslint": "9.35.0",
72-
"eslint-config-react-native-wcandillon": "4.0.0",
70+
"eslint-config-react-native-wcandillon": "4.0.1",
7371
"eslint-plugin-import": "2.32.0",
7472
"eslint-plugin-jest": "^28.8.2",
7573
"eslint-plugin-prettier": "^5.2.1",

β€Žpackages/webgpu/scripts/build/dawn-configuration.tsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
import { checkDuplicateHeaders } from "../codegen/util";
32

43
import { $, checkFileExists, runAsync } from "./util";

β€Žpackages/webgpu/scripts/build/dawn.tsβ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
/* eslint-disable camelcase */
32

43
import { chdir } from "process";

0 commit comments

Comments
Β (0)