Add sqlite3

pull/10/head
Jared He 1 year ago
parent 623639f1ac
commit d85efdaf2a
  1. 4
      .eslintrc.yml
  2. 4
      .prettierrc
  3. 1752
      package-lock.json
  4. 3
      package.json
  5. 8
      pages/_app.tsx
  6. 12
      pages/index.tsx
  7. 16
      tsconfig.json
  8. 1
      types.d.ts

@ -19,6 +19,8 @@ extends:
- plugin:prettier/recommended
rules:
prettier/prettier: ['error', {semi: true}]
quotes:
- error
- single
@ -50,4 +52,4 @@ rules:
# Enabled in tsconfig
'@typescript-eslint/no-unused-vars': off
import/no-unresolved: off
import/no-unresolved: off

@ -1,8 +1,8 @@
{
"arrowParens": "avoid",
"singleQuote": true,
"semi": false,
"semi": true,
"printWidth": 80,
"trailingComma": "all",
"bracketSpacing": false
}
}

1752
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -11,7 +11,8 @@
"dependencies": {
"next": "12.0.1",
"react": "17.0.2",
"react-dom": "17.0.2"
"react-dom": "17.0.2",
"sqlite3": "^5.0.2"
},
"devDependencies": {
"@types/node": "16.11.6",

@ -1,7 +1,7 @@
import type { AppProps } from 'next/app'
import type {AppProps} from 'next/app';
function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
function App({Component, pageProps}: AppProps) {
return <Component {...pageProps} />;
}
export default App
export default App;

@ -1,11 +1,7 @@
import type { NextPage } from 'next'
import type {NextPage} from 'next';
const Home: NextPage = () => {
return (
<main>I am a book</main>
)
}
return <main>I am a book</main>;
};
export default Home
export default Home;

@ -5,11 +5,7 @@
"target": "ES6",
"module": "esnext",
"moduleResolution": "node",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"lib": ["dom", "dom.iterable", "esnext"],
"sourceMap": true,
"outDir": "./dist",
"noEmit": true,
@ -38,12 +34,6 @@
"forceConsistentCasingInFileNames": true,
"allowJs": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "types.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}

1
types.d.ts vendored

@ -0,0 +1 @@
declare module 'sqlite3';
Loading…
Cancel
Save