From 9d21ee63d3fcb34d7279dac1593c55066387955c Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 25 Aug 2022 23:21:59 +1000 Subject: [PATCH] maybe i don't need tsconfig --- client/size-plugin.json | 2 +- client/src/components/bundle.tsx | 5 --- client/tsconfig.json | 64 -------------------------------- 3 files changed, 1 insertion(+), 70 deletions(-) delete mode 100644 client/tsconfig.json diff --git a/client/size-plugin.json b/client/size-plugin.json index 5796d75..dfe54d8 100644 --- a/client/size-plugin.json +++ b/client/size-plugin.json @@ -1 +1 @@ -[{"timestamp":1661431753270,"files":[{"filename":"ssr-build/ssr-bundle.ef330.css","previous":2019,"size":0,"diff":-2019},{"filename":"ssr-build/ssr-bundle.js","previous":22949,"size":0,"diff":-22949},{"filename":"bundle.ef330.css","previous":0,"size":1868,"diff":1868},{"filename":"bundle.*****.esm.js","previous":0,"size":15222,"diff":15222},{"filename":"polyfills.*****.esm.js","previous":0,"size":2180,"diff":2180},{"filename":"route-acp.chunk.*****.esm.js","previous":0,"size":552,"diff":552},{"filename":"route-bundles.chunk.*****.esm.js","previous":0,"size":4902,"diff":4902},{"filename":"route-home.chunk.*****.esm.js","previous":0,"size":4365,"diff":4365},{"filename":"route-list.chunk.*****.esm.js","previous":0,"size":452,"diff":452},{"filename":"route-login.chunk.*****.esm.js","previous":0,"size":736,"diff":736},{"filename":"route-search.chunk.*****.esm.js","previous":0,"size":4771,"diff":4771},{"filename":"sw-esm.js","previous":0,"size":10826,"diff":10826},{"filename":"sw.js","previous":0,"size":10822,"diff":10822},{"filename":"bundle.6000f.js","previous":0,"size":15909,"diff":15909},{"filename":"polyfills.70985.js","previous":0,"size":2282,"diff":2282},{"filename":"route-acp.chunk.78b6f.js","previous":0,"size":1205,"diff":1205},{"filename":"route-bundles.chunk.3c859.js","previous":0,"size":5648,"diff":5648},{"filename":"route-home.chunk.bf349.js","previous":0,"size":5029,"diff":5029},{"filename":"route-list.chunk.af41a.js","previous":0,"size":1106,"diff":1106},{"filename":"route-login.chunk.9e192.js","previous":0,"size":1453,"diff":1453},{"filename":"route-search.chunk.9a85f.js","previous":0,"size":5403,"diff":5403},{"filename":"index.html","previous":0,"size":1247,"diff":1247},{"filename":"200.html","previous":0,"size":1141,"diff":1141}]}] +[{"timestamp":1661433603176,"files":[{"filename":"ssr-build/ssr-bundle.ef330.css","previous":2019,"size":0,"diff":-2019},{"filename":"ssr-build/ssr-bundle.js","previous":22949,"size":0,"diff":-22949},{"filename":"bundle.ef330.css","previous":0,"size":1868,"diff":1868},{"filename":"bundle.*****.esm.js","previous":0,"size":15223,"diff":15223},{"filename":"polyfills.*****.esm.js","previous":0,"size":2180,"diff":2180},{"filename":"route-acp.chunk.*****.esm.js","previous":0,"size":552,"diff":552},{"filename":"route-bundles.chunk.*****.esm.js","previous":0,"size":4903,"diff":4903},{"filename":"route-home.chunk.*****.esm.js","previous":0,"size":4365,"diff":4365},{"filename":"route-list.chunk.*****.esm.js","previous":0,"size":452,"diff":452},{"filename":"route-login.chunk.*****.esm.js","previous":0,"size":736,"diff":736},{"filename":"route-search.chunk.*****.esm.js","previous":0,"size":4771,"diff":4771},{"filename":"sw-esm.js","previous":0,"size":10827,"diff":10827},{"filename":"sw.js","previous":0,"size":10820,"diff":10820},{"filename":"bundle.83635.js","previous":0,"size":15909,"diff":15909},{"filename":"polyfills.70985.js","previous":0,"size":2282,"diff":2282},{"filename":"route-acp.chunk.78b6f.js","previous":0,"size":1205,"diff":1205},{"filename":"route-bundles.chunk.a14b5.js","previous":0,"size":5647,"diff":5647},{"filename":"route-home.chunk.bf349.js","previous":0,"size":5029,"diff":5029},{"filename":"route-list.chunk.af41a.js","previous":0,"size":1106,"diff":1106},{"filename":"route-login.chunk.9e192.js","previous":0,"size":1453,"diff":1453},{"filename":"route-search.chunk.9a85f.js","previous":0,"size":5403,"diff":5403},{"filename":"index.html","previous":0,"size":1247,"diff":1247},{"filename":"200.html","previous":0,"size":1141,"diff":1141}]}] diff --git a/client/src/components/bundle.tsx b/client/src/components/bundle.tsx index 9559267..277944a 100644 --- a/client/src/components/bundle.tsx +++ b/client/src/components/bundle.tsx @@ -1,5 +1,3 @@ -//@ts-nocheck - import { h } from 'preact'; import { Square, CheckSquare } from 'react-feather'; import { useState, useReducer } from 'preact/hooks'; @@ -48,9 +46,6 @@ export default function Bundle(bundle) { const items = bundle.items.map(item => Item(item, state, dispatch)); - // 100.71 - // 33.08 - async function submit(e) { e.preventDefault(); const [error, offers] = await actions.postOffers(state.checkedIds, shipping, baseShipping); diff --git a/client/tsconfig.json b/client/tsconfig.json deleted file mode 100644 index f419968..0000000 --- a/client/tsconfig.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "compilerOptions": { - /* Basic Options */ - "target": "ES5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */ - "module": "ESNext", /* Specify module code generation: 'none', commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - // "lib": [], /* Specify library files to be included in the compilation: */ - "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - "jsx": "react", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - "jsxFactory": "h", /* Specify the JSX factory function to use when targeting react JSX emit, e.g. React.createElement or h. */ - "jsxFragmentFactory": "Fragment", /* Specify the JSX fragment factory function to use when targeting react JSX emit with jsxFactory compiler option is specified, e.g. Fragment. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - // "outDir": "./", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "removeComments": true, /* Do not emit comments to output. */ - "noEmit": true, /* Do not emit outputs. */ - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": false, /* Enable all strict type-checking options. */ - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* Enable strict null checks. */ - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - /* Additional Checks */ - // "noUnusedLocals": true, /* Report errors on unused locals. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - - /* Module Resolution Options */ - "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - "esModuleInterop": true, /* */ - "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - "paths": { /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - "react": ["./node_modules/preact/compat"], - "react-dom": ["./node_modules/preact/compat"] - }, - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - - /* Source Map Options */ - // "sourceRoot": "./", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "./", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - - /* Advanced Options */ - "skipLibCheck": true /* Skip type checking of declaration files. */ - }, - "include": ["src/**/*"] -}