@@ -73,7 +72,7 @@ function Template() {
This means you can resize anything, to any expected 12 column layout, where some buttons, you want wider than others, try resizing the browser to see the effect and see the cards swapping sizes!
@@ -82,7 +81,7 @@ function Template() {
diff --git a/stories/6.typescriptSync.stories.tsx b/stories/6.typescriptSync.stories.tsx
index bf0d0f01..538d0eff 100644
--- a/stories/6.typescriptSync.stories.tsx
+++ b/stories/6.typescriptSync.stories.tsx
@@ -37,7 +37,7 @@ function TypeSync(props: TypeSyncOptions) {
function Template() {
const [value, setValue] = useState(0);
- const handleChange = (event: React.SyntheticEvent, newValue: number) => {
+ const handleChange = (_: React.SyntheticEvent, newValue: number) => {
setValue(newValue);
};
return <>
diff --git a/stories/tsconfig.json b/stories/tsconfig.json
new file mode 100644
index 00000000..109c5ec6
--- /dev/null
+++ b/stories/tsconfig.json
@@ -0,0 +1,5 @@
+{
+ "extends": "../tsconfig",
+ "include": ["./*"],
+ "exclude": ["node_modules"]
+}
\ No newline at end of file
diff --git a/tsconfig-type-check.json b/tsconfig-type-check.json
new file mode 100644
index 00000000..d955ee44
--- /dev/null
+++ b/tsconfig-type-check.json
@@ -0,0 +1,9 @@
+{
+ "extends": "./tsconfig",
+ "compilerOptions": {
+ "noEmit": true,
+ "skipLibCheck": true,
+ },
+ "include": ["./packages/core/src", ".d.ts"],
+ "exclude": ["node_modules", "dist"]
+}
\ No newline at end of file
diff --git a/tsconfig.json b/tsconfig.json
index 88fe5f14..f8c5d7fa 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,6 @@
{
"compilerOptions": {
- "target": "es5",
+ "target": "ES2020",
"useDefineForClassFields": true,
"lib": ["es2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
@@ -33,6 +33,5 @@
"@mocks/*": ["hass-connect-fake/mocks/*"]
}
},
- "include": ["./stories", "./hass-connect-fake", ".d.ts"],
- "exclude": ["**/*./", "**/node_modules"]
+ "exclude": ["node_modules", "node_modules/**", "dist"]
}
\ No newline at end of file