Add sqlite3
This commit is contained in:
parent
623639f1ac
commit
d85efdaf2a
|
@ -19,6 +19,8 @@ extends:
|
||||||
- plugin:prettier/recommended
|
- plugin:prettier/recommended
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
prettier/prettier: ['error', {semi: true}]
|
||||||
|
|
||||||
quotes:
|
quotes:
|
||||||
- error
|
- error
|
||||||
- single
|
- single
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"arrowParens": "avoid",
|
"arrowParens": "avoid",
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"semi": false,
|
"semi": true,
|
||||||
"printWidth": 80,
|
"printWidth": 80,
|
||||||
"trailingComma": "all",
|
"trailingComma": "all",
|
||||||
"bracketSpacing": false
|
"bracketSpacing": false
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,7 +11,8 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"next": "12.0.1",
|
"next": "12.0.1",
|
||||||
"react": "17.0.2",
|
"react": "17.0.2",
|
||||||
"react-dom": "17.0.2"
|
"react-dom": "17.0.2",
|
||||||
|
"sqlite3": "^5.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "16.11.6",
|
"@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) {
|
function App({Component, pageProps}: AppProps) {
|
||||||
return <Component {...pageProps} />
|
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 = () => {
|
const Home: NextPage = () => {
|
||||||
return (
|
return <main>I am a book</main>;
|
||||||
<main>I am a book</main>
|
};
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Home
|
export default Home;
|
||||||
|
|
|
@ -5,11 +5,7 @@
|
||||||
"target": "ES6",
|
"target": "ES6",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"lib": [
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
"dom",
|
|
||||||
"dom.iterable",
|
|
||||||
"esnext"
|
|
||||||
],
|
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
@ -38,12 +34,6 @@
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
"allowJs": true
|
"allowJs": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": ["next-env.d.ts", "types.d.ts", "**/*.ts", "**/*.tsx"],
|
||||||
"next-env.d.ts",
|
"exclude": ["node_modules"]
|
||||||
"**/*.ts",
|
|
||||||
"**/*.tsx"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
declare module 'sqlite3';
|
Loading…
Reference in New Issue