Skip to content

Commit baa29a2

Browse files
committed
remove tsconfig dependency from examples
1 parent 2b1c15e commit baa29a2

File tree

6 files changed

+260
-77
lines changed

6 files changed

+260
-77
lines changed

examples/basic-with-apply/README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# Basic with apply button
22

3-
This example is the same as the basic example, but it adds a button to apply the focal point changes to the image.
3+
This example is the same as the [basic example](https://github.com/Lemoncode/react-image-focal-point/tree/main/examples/basic), but it adds a button to apply the focal point changes to the image.
44

5-
<img
6-
src="https://developer.stackblitz.com/img/open_in_stackblitz.svg"
7-
alt="Edit on StackBlitz"
8-
title="Edit on StackBlitz"
9-
height="36"
10-
href="https://stackblitz.com/github/Lemoncode/react-image-focal-point/tree/master/examples/basic-with-apply"
11-
/> <img
12-
src="https://codesandbox.io/static/img/play-codesandbox.svg"
13-
alt="Edit on StackBlitz"
14-
title="Edit on StackBlitz"
15-
height="36"
16-
href="https://codesandbox.io/s/github/Lemoncode/react-image-focal-point/tree/master/examples/basic-with-apply"
5+
<a href="https://stackblitz.com/github/Lemoncode/react-image-focal-point/tree/main/examples/basic-with-apply">
6+
<img
7+
src="https://developer.stackblitz.com/img/open_in_stackblitz.svg"
8+
alt="Edit on StackBlitz"
9+
title="Edit on StackBlitz"
10+
height="36"
1711
/>
12+
</a> <a href="https://codesandbox.io/s/github/Lemoncode/react-image-focal-point/tree/main/examples/basic-with-apply">
13+
<img
14+
src="https://codesandbox.io/static/img/play-codesandbox.svg"
15+
alt="Edit on StackBlitz"
16+
title="Edit on StackBlitz"
17+
height="36"
18+
/>
19+
</a>

examples/basic-with-apply/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"author": "Lemoncode",
1111
"homepage": "https://github.com/Lemoncode/react-image-focal-point/tree/main/examples#readme",
1212
"devDependencies": {
13-
"@lemoncode/tsconfig": "^0.0.0",
1413
"@types/react": "^18.0.27",
1514
"@types/react-dom": "^18.0.10",
1615
"@vitejs/plugin-react": "^3.1.0",
1716
"typescript": "^4.9.5",
1817
"vite": "^4.1.1"
1918
},
2019
"dependencies": {
21-
"@lemoncode/react-image-focal-point": "^0.0.0",
20+
"@lemoncode/react-image-focal-point": "*",
2221
"react": "^18.2.0",
2322
"react-dom": "^18.2.0"
2423
}
Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
2-
"extends": "@lemoncode/tsconfig/react.json",
2+
"compilerOptions": {
3+
"composite": false,
4+
"declaration": true,
5+
"declarationMap": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"inlineSources": false,
9+
"isolatedModules": true,
10+
"moduleResolution": "node",
11+
"noUnusedLocals": false,
12+
"noUnusedParameters": false,
13+
"preserveWatchOutput": true,
14+
"skipLibCheck": true,
15+
"strict": true,
16+
"allowSyntheticDefaultImports": true,
17+
"noImplicitAny": false,
18+
"jsx": "react-jsx",
19+
"lib": ["ESNext", "DOM"],
20+
"module": "ESNext",
21+
"target": "ESNext",
22+
"baseUrl": "./src"
23+
},
324
"include": ["src", "./vite-env.d.ts"],
425
"exclude": ["node_modules"]
526
}

examples/basic/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"author": "Lemoncode",
1111
"homepage": "https://github.com/Lemoncode/react-image-focal-point/tree/main/examples#readme",
1212
"devDependencies": {
13-
"@lemoncode/tsconfig": "^0.0.0",
1413
"@types/react": "^18.0.27",
1514
"@types/react-dom": "^18.0.10",
1615
"@vitejs/plugin-react": "^3.1.0",
1716
"typescript": "^4.9.5",
1817
"vite": "^4.1.1"
1918
},
2019
"dependencies": {
21-
"@lemoncode/react-image-focal-point": "^0.0.0",
20+
"@lemoncode/react-image-focal-point": "*",
2221
"react": "^18.2.0",
2322
"react-dom": "^18.2.0"
2423
}

examples/basic/tsconfig.json

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
{
2-
"extends": "@lemoncode/tsconfig/react.json",
2+
"compilerOptions": {
3+
"composite": false,
4+
"declaration": true,
5+
"declarationMap": true,
6+
"esModuleInterop": true,
7+
"forceConsistentCasingInFileNames": true,
8+
"inlineSources": false,
9+
"isolatedModules": true,
10+
"moduleResolution": "node",
11+
"noUnusedLocals": false,
12+
"noUnusedParameters": false,
13+
"preserveWatchOutput": true,
14+
"skipLibCheck": true,
15+
"strict": true,
16+
"allowSyntheticDefaultImports": true,
17+
"noImplicitAny": false,
18+
"jsx": "react-jsx",
19+
"lib": ["ESNext", "DOM"],
20+
"module": "ESNext",
21+
"target": "ESNext",
22+
"baseUrl": "./src"
23+
},
324
"include": ["src", "./vite-env.d.ts"],
425
"exclude": ["node_modules"]
526
}

0 commit comments

Comments
 (0)